build: ensure that reordering of KCONFIG lines are handled properly and that the final result does not depend on the package scan order

SVN-Revision: 32788
This commit is contained in:
Felix Fietkau
2012-07-22 21:00:07 +00:00
parent b59bc92c6e
commit 2335304a08
2 changed files with 5 additions and 1 deletions

View File

@@ -115,6 +115,7 @@ sub gen_kconfig_overrides() {
$val = $2;
}
if ($config{"CONFIG_PACKAGE_$package"} and ($config ne 'n')) {
next if $kconfig{$config} eq 'y';
$kconfig{$config} = $val;
} elsif (!$override) {
$kconfig{$config} or $kconfig{$config} = 'n';