scrips/metadata.pl: fix broken targets with subtargets being selectable
[openwrt/svn-archive/archive.git] / scripts / metadata.pl
index 7afc3889270158df98afbc88875f16081b5780ea..b04cd8cc3d943c470a952b7bce79b42d9b36caef 100755 (executable)
@@ -233,6 +233,7 @@ EOF
        }
        if (@{$target->{subtargets}} > 0) {
                $confstr .= "\tselect HAS_SUBTARGETS\n";
        }
        if (@{$target->{subtargets}} > 0) {
                $confstr .= "\tselect HAS_SUBTARGETS\n";
+               grep { /broken/ } @{$target->{features}} and $confstr .= "\tdepends BROKEN\n";
        } else {
                $confstr .= $features;
        }
        } else {
                $confstr .= $features;
        }