summaryrefslogtreecommitdiff
path: root/tools/moveconfig.py
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2015-05-19 13:21:18 -0500
committerMasahiro Yamada <yamada.masahiro@socionext.com>2015-05-27 08:39:15 +0900
commit7740f653e6b3634383603e31ad2f3decac8becf1 (patch)
tree40f9214554eeb50c93ecb2d0a30ea058018ec92b /tools/moveconfig.py
parent96464badc794556d28ce34624d24da944b5716db (diff)
downloadu-boot-imx-7740f653e6b3634383603e31ad2f3decac8becf1.zip
u-boot-imx-7740f653e6b3634383603e31ad2f3decac8becf1.tar.gz
u-boot-imx-7740f653e6b3634383603e31ad2f3decac8becf1.tar.bz2
moveconfig: Ignore duplicate configs when moving
When moving configs, it is important to know what was defined in the config header even if it duplicates the configs coming from Kconfig. This is specifically needed for the case where a config is set to default 'y' in the Kconfig. This would previously cause the actual value from the include config to be filtered out, and moveconfig.py would think that it was 'n'... This means that the value that should be 'y' is now (in every defconfig) set to 'not set'. tools/moveconfig.py now defines KCONFIG_IGNORE_DUPLICATES to prevent the filtering from happening and selecting wrong values for the defconfig. Signed-off-by: Joe Hershberger <joe.hershberger@ni.com> Acked-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'tools/moveconfig.py')
-rwxr-xr-xtools/moveconfig.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/moveconfig.py b/tools/moveconfig.py
index 24fc281..87ced5c 100755
--- a/tools/moveconfig.py
+++ b/tools/moveconfig.py
@@ -628,6 +628,7 @@ class Slot:
cmd = list(self.make_cmd)
if cross_compile:
cmd.append('CROSS_COMPILE=%s' % cross_compile)
+ cmd.append('KCONFIG_IGNORE_DUPLICATES=1')
cmd.append('include/config/auto.conf')
self.ps = subprocess.Popen(cmd, stdout=self.devnull)
self.state = STATE_AUTOCONF