tools/Unix.mk: allow defconfig to overwrite old config

When using include command in defconfig, it is necessary to support overwriting the configuration in other files

kconfig-conf only prints warnings, but does not return errors

Signed-off-by: yinshengkai <yinshengkai@xiaomi.com>
This commit is contained in:
yinshengkai 2024-09-14 17:46:17 +08:00 committed by Xiang Xiao
parent e4129d7f70
commit 656baa2a12
1 changed files with 3 additions and 1 deletions

View File

@ -657,7 +657,9 @@ define kconfig_tweak_disable
kconfig-tweak --file $1 -u $2
endef
else
KCONFIG_WARNING = 2> >(tee kwarning) | cat && if [ -s kwarning ]; \
OVERWRITE_WARNING = "set more than once"
KCONFIG_WARNING = 2> >(grep -v ${OVERWRITE_WARNING} | tee kwarning) | \
cat && if [ -s kwarning ]; \
then rm kwarning; \
exit 1; \
else \