mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2025-04-21 12:27:27 +03:00
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
This commit is contained in:
@@ -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";
|
||||
|
||||
@@ -114,6 +114,7 @@ sub parse_package_metadata($) {
|
||||
};
|
||||
/^Menu-Depends: \s*(.+)\s*$/ and $pkg->{mdepends} = [ split /\s+/, $1 ];
|
||||
/^Depends: \s*(.+)\s*$/ and $pkg->{depends} = [ split /\s+/, $1 ];
|
||||
/^Hidden: \s*(.+)\s*$/ and $pkg->{hidden} = 1;
|
||||
/^Build-Variant: \s*([\w\-]+)\s*/ and $pkg->{variant} = $1;
|
||||
/^Build-Only: \s*(.+)\s*$/ and $pkg->{buildonly} = 1;
|
||||
/^Build-Depends: \s*(.+)\s*$/ and $pkg->{builddepends} = [ split /\s+/, $1 ];
|
||||
|
||||
Reference in New Issue
Block a user