mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-12-24 02:23:21 +02:00
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
This commit is contained in:
parent
b67c49aee3
commit
4c3545851b
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user