From: Felix Fietkau Date: Sun, 29 Mar 2015 04:31:15 +0000 (+0000) Subject: scripts/metadata.pl: do not emit ARCH selection for a target if it has subtargets X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=2900f6984f1477d0f9986a24d095957349675507;p=openwrt%2Fstaging%2Fblocktrron.git scripts/metadata.pl: do not emit ARCH selection for a target if it has subtargets Signed-off-by: Felix Fietkau SVN-Revision: 45112 --- diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 92923ea07a..54341c458f 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -205,11 +205,11 @@ EOF grep { /broken/ } @{$target->{features}} and $confstr .= "\tdepends on BROKEN\n"; } else { $confstr .= $features; + if ($target->{arch} =~ /\w/) { + $confstr .= "\tselect $target->{arch}\n"; + } } - if ($target->{arch} =~ /\w/) { - $confstr .= "\tselect $target->{arch}\n"; - } foreach my $dep (@{$target->{depends}}) { my $mode = "depends on"; my $flags;