From: luka Date: Tue, 10 May 2016 22:36:13 +0000 (+0000) Subject: scripts: metadata: add CONFIG_TARGET_SUBTARGET symbol X-Git-Url: https://git.archive.openwrt.org/?p=openwrt.git;a=commitdiff_plain;h=26f38d61ba9f3092fc095dd72ddab9ada62e99a0 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 git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49323 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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 <