Unix.mk:replace process substitution to pipe avoid out of order

process substitution `>(..)` have different behaviors in different shells,unreliable execution order will lead to the problem of being unable to intercept errors.
pipe are used here to ensure that `kwarning` is generated before the if statement.

Signed-off-by: xuxin19 <xuxin19@xiaomi.com>
This commit is contained in:
xuxin19 2023-09-21 19:35:46 +08:00 committed by Xiang Xiao
parent d15a69a406
commit 8d1cb466f4
1 changed files with 1 additions and 1 deletions

View File

@ -648,7 +648,7 @@ 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}
PURGE_MODULE_WARNING = 2>&1 >/dev/null | 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}