tools/Unix: treat kconfig warning as failure
The syntax check of kconfiglib is stricter than kconfig-frontends, but the warnings of kconfiglib are not catched by Makefile. Since kconfiglib is implemented by python, the return value of the shell is always zero($?), In this PR, I redirected the relevant standard errors to the file to check whether the kconfig warning is occurred Signed-off-by: chao an <anchao@xiaomi.com>
This commit is contained in:
parent
95ca613e98
commit
a3ddd4d27a
1 changed files with 8 additions and 1 deletions
|
|
@ -624,7 +624,14 @@ define kconfig_tweak_disable
|
|||
kconfig-tweak --file $1 -u $2
|
||||
endef
|
||||
else
|
||||
PURGE_MODULE_WARNING = 2> >(grep -v "warning: the 'modules' option is not supported")
|
||||
KCONFIG_WARNING = if [ -s kwarning ]; \
|
||||
then rm kwarning; \
|
||||
exit 1; \
|
||||
else \
|
||||
rm kwarning; \
|
||||
fi
|
||||
MODULE_WARNING = "warning: the 'modules' option is not supported"
|
||||
PURGE_MODULE_WARNING = 2> >(grep -v ${MODULE_WARNING} | tee kwarning) && ${KCONFIG_WARNING}
|
||||
KCONFIG_OLDCONFIG = oldconfig ${PURGE_MODULE_WARNING}
|
||||
KCONFIG_OLDDEFCONFIG = olddefconfig ${PURGE_MODULE_WARNING}
|
||||
KCONFIG_MENUCONFIG = menuconfig ${PURGE_MODULE_WARNING}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue