metadata: do not emit feature flag selects for targets which have subtargets - fixes...
authornbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 17 May 2011 12:54:45 +0000 (12:54 +0000)
committernbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Tue, 17 May 2011 12:54:45 +0000 (12:54 +0000)
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@26926 3c298f89-4303-0410-b956-a3cf2f4a3e73

scripts/metadata.pl

index 9cb8465..3de4087 100755 (executable)
@@ -227,6 +227,8 @@ EOF
        }
        if (@{$target->{subtargets}} > 0) {
                $confstr .= "\tselect HAS_SUBTARGETS\n";
+       } else {
+               $confstr .= $features;
        }
 
        if ($target->{arch} =~ /\w/) {
@@ -246,7 +248,6 @@ EOF
                $flags =~ /\+/ and $mode = "select";
                $flags =~ /@/ and $confstr .= "\t$mode $name\n";
        }
-       $confstr .= $features;
        $confstr .= "$help\n\n";
        print $confstr;
 }
This page took 0.033179 seconds and 4 git commands to generate.