projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add global make download target
[openwrt-10.03/.git]
/
scripts
/
gen_menuconfig.pl
diff --git
a/scripts/gen_menuconfig.pl
b/scripts/gen_menuconfig.pl
index a7f939ff52d38e0cf13b7d8f4f6895bb956b39ea..eff78dcd90e37c4d0e994f56562121c78abe8493 100755
(executable)
--- a/
scripts/gen_menuconfig.pl
+++ b/
scripts/gen_menuconfig.pl
@@
-24,10
+24,12
@@
sub print_category($) {
$pkg->{menu} and print "menu";
print "config PACKAGE_".$pkg->{name}."\n";
print "\t\ttristate \"$title\"\n";
$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";
foreach my $depend (@{$pkg->{depends}}) {
my $m = "depends";
- $depend =~ s/^([@\+])//;
+ $depend =~ s/^([@\+]
+
)//;
my $flags = $1;
$flags =~ /@/ or $depend = "PACKAGE_$depend";
$flags =~ /\+/ and $m = "select";
my $flags = $1;
$flags =~ /@/ or $depend = "PACKAGE_$depend";
$flags =~ /\+/ and $m = "select";