kconfig: make oldconfig work "non-strict"

oldconfig is regularly used to clean up templates that sometimes contain
duplicates or old symbols.
Since it cleans up the config, it doesn't need to fail on issues.

Change-Id: Ife0e9e3b9bfdde1eb6be0e2e38e81b9042cb7950
Signed-off-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-on: https://review.coreboot.org/13687
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Paul Menzel <paulepanter@users.sourceforge.net>
This commit is contained in:
Patrick Georgi 2016-02-11 22:04:55 +01:00 committed by Patrick Georgi
parent 13a2e949d5
commit 4ed5cb3fb3
1 changed files with 3 additions and 1 deletions

View File

@ -34,8 +34,10 @@ config: $(objk)/conf
nconfig: $(objk)/nconf nconfig: $(objk)/nconf
$< $(Kconfig) $< $(Kconfig)
# Disable strict mode because oldconfig is typically used to clean up
# templates and the like. The second invocation should already have sane data.
oldconfig: $(objk)/conf oldconfig: $(objk)/conf
$< --$@ $(Kconfig) KCONFIG_STRICT= $< --$@ $(Kconfig)
$< --silentoldconfig $(Kconfig) $< --silentoldconfig $(Kconfig)
silentoldconfig: $(objk)/conf silentoldconfig: $(objk)/conf