aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-03-29 04:31:15 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-03-29 04:31:15 +0000
commit629211cefab96f54128a6e917ffab16c490ac116 (patch)
tree8902877f0f3d271da3097f10e4733b7a0fb14764 /scripts
parentdf4ff466d61e2ab39d9fb43a84c038cf6d29650a (diff)
downloadmaster-187ad058-629211cefab96f54128a6e917ffab16c490ac116.tar.gz
master-187ad058-629211cefab96f54128a6e917ffab16c490ac116.tar.bz2
master-187ad058-629211cefab96f54128a6e917ffab16c490ac116.zip
scripts/metadata.pl: do not emit ARCH selection for a target if it has subtargets
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45112 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/metadata.pl6
1 files changed, 3 insertions, 3 deletions
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;