diff options
author | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-05-30 20:22:43 +0000 |
---|---|---|
committer | nbd <nbd@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2006-05-30 20:22:43 +0000 |
commit | 5bc57a98e306e8b404dda68c6ae6982a5d36937c (patch) | |
tree | 6adc47eeee77748c1342fb6284e55124a0cba933 /scripts | |
parent | cedc89370f5298e9d3acdf4a3736c3928f4629de (diff) |
allow more complex defaults in menuconfig
git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3848 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/gen_menuconfig.pl | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/scripts/gen_menuconfig.pl b/scripts/gen_menuconfig.pl index a7f939ff52..c40e1caedc 100755 --- a/scripts/gen_menuconfig.pl +++ b/scripts/gen_menuconfig.pl @@ -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/^([@\+])//; |