From: Jo-Philipp Wich Date: Wed, 6 Apr 2016 19:47:04 +0000 (+0200) Subject: scripts: metadata: add CONFIG_TARGET_SUBTARGET symbol X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7322cca9fab00163778d5e44615ed05f01097851;p=openwrt%2Fstaging%2Fluka.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 --- 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 <