Author: nbd
Date: 2015-03-29 06:31:15 +0200 (Sun, 29 Mar 2015)
New Revision: 45112

Modified:
   trunk/scripts/metadata.pl
Log:
scripts/metadata.pl: do not emit ARCH selection for a target if it has 
subtargets

Signed-off-by: Felix Fietkau <[email protected]>

Modified: trunk/scripts/metadata.pl
===================================================================
--- trunk/scripts/metadata.pl   2015-03-29 04:30:12 UTC (rev 45111)
+++ trunk/scripts/metadata.pl   2015-03-29 04:31:15 UTC (rev 45112)
@@ -205,11 +205,11 @@
                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;
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to