aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2006-05-30 20:22:43 +0000
committerFelix Fietkau <nbd@openwrt.org>2006-05-30 20:22:43 +0000
commit2c992488f70578353f89fc24453a4f8e42e30e1f (patch)
tree6adc47eeee77748c1342fb6284e55124a0cba933 /scripts
parent75a34113ce388c8f2c4fdd9a83d77e380f146c4b (diff)
downloadupstream-2c992488f70578353f89fc24453a4f8e42e30e1f.tar.gz
upstream-2c992488f70578353f89fc24453a4f8e42e30e1f.tar.bz2
upstream-2c992488f70578353f89fc24453a4f8e42e30e1f.zip
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-xscripts/gen_menuconfig.pl4
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/^([@\+])//;