mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-29 10:08:59 +00:00
allow more complex defaults in menuconfig
SVN-Revision: 3848
This commit is contained in:
parent
c34681eec3
commit
04fbcf5b01
@ -24,7 +24,9 @@ sub print_category($) {
|
||||
$pkg->{menu} and print "menu";
|
||||
print "config PACKAGE_".$pkg->{name}."\n";
|
||||
print "\t\ttristate \"$title\"\n";
|
||||
print "\t\tdefault ".$pkg->{default}."\n";
|
||||
foreach my $default (split /\s*,\s*/, $pkg->{default}) {
|
||||
print "\t\tdefault $default\n";
|
||||
}
|
||||
foreach my $depend (@{$pkg->{depends}}) {
|
||||
my $m = "depends";
|
||||
$depend =~ s/^([@\+])//;
|
||||
|
Loading…
Reference in New Issue
Block a user