aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig.pl
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2012-07-22 21:00:07 +0000
committerFelix Fietkau <nbd@openwrt.org>2012-07-22 21:00:07 +0000
commite5ddfdef84992918489ae911c3dc0954d1a805b5 (patch)
tree1bf7bee3e102c76985b0d433ed4bc341afc0a5c5 /scripts/kconfig.pl
parent7da8fc992d778092da06f7346a633c0dd7c2e0a6 (diff)
downloadmaster-187ad058-e5ddfdef84992918489ae911c3dc0954d1a805b5.tar.gz
master-187ad058-e5ddfdef84992918489ae911c3dc0954d1a805b5.tar.bz2
master-187ad058-e5ddfdef84992918489ae911c3dc0954d1a805b5.zip
build: ensure that reordering of KCONFIG lines are handled properly and that the final result does not depend on the package scan order
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@32788 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'scripts/kconfig.pl')
-rwxr-xr-xscripts/kconfig.pl5
1 files changed, 4 insertions, 1 deletions
diff --git a/scripts/kconfig.pl b/scripts/kconfig.pl
index 8113273538..b91cdf397a 100755
--- a/scripts/kconfig.pl
+++ b/scripts/kconfig.pl
@@ -73,7 +73,10 @@ sub config_add($$$) {
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};
}
}