From: Luka Perkov Date: Tue, 10 May 2016 22:36:13 +0000 (+0000) Subject: scripts: metadata: add CONFIG_TARGET_SUBTARGET symbol X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=14aba27b93e54f6a65d058d6cc9c8f8c5a6ba85c;p=openwrt%2Fsvn-archive%2Farchive.git 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 SVN-Revision: 49323 --- diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 99fdba1c81..6ad3c39f00 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -321,6 +321,18 @@ EOF $target->{subtarget} or print "\t\tdefault \"".$target->{board}."\" if TARGET_".$target->{conf}."\n"; } print <{subtargets}}) { + print "\t\tdefault \"$subtarget\" if TARGET_".$target->{conf}."_$subtarget\n"; + } + } + print <