mirror of
https://github.com/hak5/wifipineapple-openwrt.git
synced 2025-10-29 16:57:19 +00:00
scripts: change metadata.pm and metadata.pl to not emit "default m if ALL" Kconfig instructions for hidden packages
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@37397 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
866af699fe
commit
2df2035f95
@ -548,8 +548,13 @@ sub print_package_config_category($) {
|
||||
$pkg->{hidden} and $title = "";
|
||||
print "\t\t".($pkg->{tristate} ? 'tristate' : 'bool')." $title\n";
|
||||
print "\t\tdefault y if DEFAULT_".$pkg->{name}."\n";
|
||||
foreach my $default (split /\s*,\s*/, $pkg->{default}) {
|
||||
print "\t\tdefault $default\n";
|
||||
unless ($pkg->{hidden}) {
|
||||
$pkg->{default} ||= "m if ALL";
|
||||
}
|
||||
if ($pkg->{default}) {
|
||||
foreach my $default (split /\s*,\s*/, $pkg->{default}) {
|
||||
print "\t\tdefault $default\n";
|
||||
}
|
||||
}
|
||||
print mconf_depends($pkg->{name}, $pkg->{depends}, 0);
|
||||
print mconf_depends($pkg->{name}, $pkg->{mdepends}, 0);
|
||||
|
||||
@ -64,7 +64,6 @@ sub parse_package_metadata($) {
|
||||
$pkg->{makefile} = $makefile;
|
||||
$pkg->{name} = $1;
|
||||
$pkg->{title} = "";
|
||||
$pkg->{default} = "m if ALL";
|
||||
$pkg->{depends} = [];
|
||||
$pkg->{mdepends} = [];
|
||||
$pkg->{builddepends} = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user