Author: luka Date: 2016-05-11 00:36:13 +0200 (Wed, 11 May 2016) New Revision: 49323
Modified: trunk/scripts/metadata.pl Log: scripts: metadata: add CONFIG_TARGET_SUBTARGET symbol Add a new string symbol "CONFIG_TARGET_SUBTARGET" which contains the name of the chosen subtarget or "generic" if there are no subtargets available. Signed-off-by: Jo-Philipp Wich <[email protected]> Modified: trunk/scripts/metadata.pl =================================================================== --- trunk/scripts/metadata.pl 2016-05-10 22:36:12 UTC (rev 49322) +++ trunk/scripts/metadata.pl 2016-05-10 22:36:13 UTC (rev 49323) @@ -321,6 +321,18 @@ $target->{subtarget} or print "\t\tdefault \"".$target->{board}."\" if TARGET_".$target->{conf}."\n"; } print <<EOF; +config TARGET_SUBTARGET + string + default "generic" if !HAS_SUBTARGETS + +EOF + + foreach my $target (@target) { + foreach my $subtarget (@{$target->{subtargets}}) { + print "\t\tdefault \"$subtarget\" if TARGET_".$target->{conf}."_$subtarget\n"; + } + } + print <<EOF; config TARGET_ARCH_PACKAGES string _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
