aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorJonas Gorski <jogo@openwrt.org>2012-10-22 22:16:19 +0000
committerJonas Gorski <jogo@openwrt.org>2012-10-22 22:16:19 +0000
commit23586bad08c6220ba93606d690c684e623fdb3da (patch)
tree13117393a7ca9d53a3c029f95e10663318ec6dff /scripts
parent5c5fd69faa8132b32ba7730881cc264b9c02c39f (diff)
downloadupstream-23586bad08c6220ba93606d690c684e623fdb3da.tar.gz
upstream-23586bad08c6220ba93606d690c684e623fdb3da.tar.bz2
upstream-23586bad08c6220ba93606d690c684e623fdb3da.zip
scrips/metadata.pl: fix broken targets with subtargets being selectable
r26926 moved all target features to subtargets if present, which had the side effect that broken targets are available for selection, just without any available subtargets (since they are still marked as broken). Fix this by explicitly letting the top level target also depend on broken. git-svn-id: svn://svn.openwrt.org/openwrt/trunk@33892 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/metadata.pl1
1 files changed, 1 insertions, 0 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index 7afc388927..b04cd8cc3d 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -233,6 +233,7 @@ EOF
}
if (@{$target->{subtargets}} > 0) {
$confstr .= "\tselect HAS_SUBTARGETS\n";
+ grep { /broken/ } @{$target->{features}} and $confstr .= "\tdepends BROKEN\n";
} else {
$confstr .= $features;
}