aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/metadata.pl
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-07-02 06:49:09 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-07-02 06:49:09 +0000
commitc163347f4b237de68e0fc431ee35912ce416d96d (patch)
treecea1f4f4bb7a945a031d18ade277564b4fbbbe8d /scripts/metadata.pl
parent5b13d0ebc8518e15c79315f91583903ed1c10917 (diff)
downloadmaster-187ad058-c163347f4b237de68e0fc431ee35912ce416d96d.tar.gz
master-187ad058-c163347f4b237de68e0fc431ee35912ce416d96d.tar.bz2
master-187ad058-c163347f4b237de68e0fc431ee35912ce416d96d.zip
add support for hidden packages that get selected/built but do not show up in menuconfig
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@27344 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/metadata.pl')
-rwxr-xr-xscripts/metadata.pl4
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/metadata.pl b/scripts/metadata.pl
index 246520bf78..3acdb16a82 100755
--- a/scripts/metadata.pl
+++ b/scripts/metadata.pl
@@ -525,10 +525,12 @@ sub print_package_config_category($) {
if ($c > 0) {
$title .= ("." x $c). " ". $pkg->{title};
}
+ $title = "\"$title\"";
print "\t";
$pkg->{menu} and print "menu";
print "config PACKAGE_".$pkg->{name}."\n";
- print "\t\t".($pkg->{tristate} ? 'tristate' : 'bool')." \"$title\"\n";
+ $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";