mirror of
git://projects.qi-hardware.com/openwrt-xburst.git
synced 2024-11-27 20:04:05 +02:00
allow more complex defaults in menuconfig
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3848 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
cedc89370f
commit
5bc57a98e3
@ -24,7 +24,9 @@ sub print_category($) {
|
|||||||
$pkg->{menu} and print "menu";
|
$pkg->{menu} and print "menu";
|
||||||
print "config PACKAGE_".$pkg->{name}."\n";
|
print "config PACKAGE_".$pkg->{name}."\n";
|
||||||
print "\t\ttristate \"$title\"\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}}) {
|
foreach my $depend (@{$pkg->{depends}}) {
|
||||||
my $m = "depends";
|
my $m = "depends";
|
||||||
$depend =~ s/^([@\+])//;
|
$depend =~ s/^([@\+])//;
|
||||||
|
Loading…
Reference in New Issue
Block a user