projects
/
openwrt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
scripts/config: make wildcard include with no results non-fatal
[openwrt.git]
/
scripts
/
kconfig.pl
diff --git
a/scripts/kconfig.pl
b/scripts/kconfig.pl
index
8113273
..
45c565e
100755
(executable)
--- a/
scripts/kconfig.pl
+++ b/
scripts/kconfig.pl
@@
-29,7
+29,7
@@
sub load_config($$) {
my $mod_plus = shift;
my %config;
my $mod_plus = shift;
my %config;
- open FILE, "$file" or die "can't open file";
+ open FILE, "$file" or die "can't open file
'$file'
";
while (<FILE>) {
chomp;
/^$PREFIX(.+?)=(.+)/ and do {
while (<FILE>) {
chomp;
/^$PREFIX(.+?)=(.+)/ and do {
@@
-73,7
+73,10
@@
sub config_add($$$) {
my %cfg = %$_;
foreach my $config (keys %cfg) {
my %cfg = %$_;
foreach my $config (keys %cfg) {
- next if $mod_plus and $config{$config} and $config{$config} eq "y";
+ if ($mod_plus and $config{$config}) {
+ next if $config{$config} eq "y";
+ next if $cfg{$config} eq '#undef';
+ }
$config{$config} = $cfg{$config};
}
}
$config{$config} = $cfg{$config};
}
}