diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-03-29 04:31:15 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-03-29 04:31:15 +0000 |
commit | 2900f6984f1477d0f9986a24d095957349675507 (patch) | |
tree | 23bb1f2e13f68b6fcf091d28a113cce92d8a01e0 /scripts/metadata.pl | |
parent | 4a7f1bb54c782ce426bfc49528dcc87b4f3d597f (diff) | |
download | upstream-2900f6984f1477d0f9986a24d095957349675507.tar.gz upstream-2900f6984f1477d0f9986a24d095957349675507.tar.bz2 upstream-2900f6984f1477d0f9986a24d095957349675507.zip |
scripts/metadata.pl: do not emit ARCH selection for a target if it has subtargets
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
SVN-Revision: 45112
Diffstat (limited to 'scripts/metadata.pl')
-rwxr-xr-x | scripts/metadata.pl | 6 |
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; |