mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
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:
committed by
Petro Karashchenko
parent
95ca613e98
commit
a3ddd4d27a
+8
-1
@@ -624,7 +624,14 @@ define kconfig_tweak_disable
|
|||||||
kconfig-tweak --file $1 -u $2
|
kconfig-tweak --file $1 -u $2
|
||||||
endef
|
endef
|
||||||
else
|
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_OLDCONFIG = oldconfig ${PURGE_MODULE_WARNING}
|
||||||
KCONFIG_OLDDEFCONFIG = olddefconfig ${PURGE_MODULE_WARNING}
|
KCONFIG_OLDDEFCONFIG = olddefconfig ${PURGE_MODULE_WARNING}
|
||||||
KCONFIG_MENUCONFIG = menuconfig ${PURGE_MODULE_WARNING}
|
KCONFIG_MENUCONFIG = menuconfig ${PURGE_MODULE_WARNING}
|
||||||
|
|||||||
Reference in New Issue
Block a user