From: Felix Fietkau Date: Tue, 30 May 2006 20:22:43 +0000 (+0000) Subject: allow more complex defaults in menuconfig X-Git-Url: http://207.154.207.93/?a=commitdiff_plain;h=2c992488f70578353f89fc24453a4f8e42e30e1f;p=15.05%2Fopenwrt.git allow more complex defaults in menuconfig git-svn-id: svn://svn.openwrt.org/openwrt/branches/buildroot-ng/openwrt@3848 3c298f89-4303-0410-b956-a3cf2f4a3e73 --- 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/^([@\+])//;