diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2013-07-18 13:11:46 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2013-07-18 13:11:46 +0000 |
commit | b2f22333065a90ee2d1771d8edde14bade2cabe0 (patch) | |
tree | 692c4c963aa894b40407774a820643a3cbcca38c /scripts | |
parent | a842efc8cdaab4945a512cb4a5692a7dd010ef8d (diff) | |
download | upstream-b2f22333065a90ee2d1771d8edde14bade2cabe0.tar.gz upstream-b2f22333065a90ee2d1771d8edde14bade2cabe0.tar.bz2 upstream-b2f22333065a90ee2d1771d8edde14bade2cabe0.zip |
scripts: change metadata.pm and metadata.pl to not emit "default m if ALL" Kconfig instructions for hidden packages
SVN-Revision: 37397
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/metadata.pl | 9 | ||||
-rw-r--r-- | scripts/metadata.pm | 1 |
2 files changed, 7 insertions, 3 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl index 41f4690f2d..f26d8fa5e5 100755 --- a/scripts/metadata.pl +++ b/scripts/metadata.pl @@ -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); diff --git a/scripts/metadata.pm b/scripts/metadata.pm index 5efef46924..6f86e67eaf 100644 --- a/scripts/metadata.pm +++ b/scripts/metadata.pm @@ -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} = []; |