scripts/metadata.pl: do not emit ARCH selection for a target if it has subtargets
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 29 Mar 2015 04:31:15 +0000 (04:31 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Sun, 29 Mar 2015 04:31:15 +0000 (04:31 +0000)
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@45112 3c298f89-4303-0410-b956-a3cf2f4a3e73

scripts/metadata.pl

index 92923ea..54341c4 100755 (executable)
@@ -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;