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
commitbcf4757508f03f7b3e0c5b3b2d15627dbacbd4bd (patch)
tree853ef5de5bda45931420971b00a6843de62568ae /scripts/metadata.pl
parent701543d3efead0050eafb9f8f2626f3dc9260c63 (diff)
downloadupstream-bcf4757508f03f7b3e0c5b3b2d15627dbacbd4bd.tar.gz
upstream-bcf4757508f03f7b3e0c5b3b2d15627dbacbd4bd.tar.bz2
upstream-bcf4757508f03f7b3e0c5b3b2d15627dbacbd4bd.zip
add support for hidden packages that get selected/built but do not show up in menuconfig
SVN-Revision: 27344
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";