kumquat-buildroot/toolchain
Thomas Petazzoni 988b45e57e toolchain/helpers: make sure we bail out when kernel headers check fails
In commit 6136765b23 ("toolchain:
generate check-headers program under $(BUILD_DIR)"), the
check_kernel_headers_version function was simplified to not check the
return value of the check-kernel-headers.sh script, assuming that
"make" does bail out on the first failing command.

However, check_kernel_headers_version when used in $(2)_CONFIGURE_CMDS
from pkg-toolchain-external.mk, is called in a sequence of commands,
where the return value of each command is not checked. Therefore, a
failure of check-kernel-headers.sh no longer aborts the build.

Since all other macros are using this principle of calling "exit 1",
we revert back to the same for check_kernel_headers_version, as it was
done prior to 6136765b23.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Cc: Carlos Santos <unixmania@gmail.com>
Reviewed-by: Carlos Santos <unixmania@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit 68a0ec3758)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2019-11-19 08:55:24 +01:00
..
toolchain toolchain: move glibc nsswitch.conf handling to a post-target hook 2018-10-21 01:50:35 +02:00
toolchain-buildroot toolchain/toolchain-buildroot: enable glibc for all little-endian ARCs with atomic ops 2018-11-09 22:02:16 +01:00
toolchain-external toolchain/external: copy libssp.so if SSP is enabled 2019-10-30 13:42:04 +01:00
Config.in toolchain: introduce BR2_TOOLCHAIN_HAS_GCC_BUG_68485 2019-10-04 21:02:12 +02:00
helpers.mk toolchain/helpers: make sure we bail out when kernel headers check fails 2019-11-19 08:55:24 +01:00
toolchain-wrapper.c toolchain/toolchain-wrapper: add BR2_SSP_* support 2018-10-20 12:51:21 +02:00
toolchain-wrapper.mk toolchain/toolchain-wrapper: add BR2_SSP_* support 2018-10-20 12:51:21 +02:00
toolchain.mk toolchain: move glibc nsswitch.conf handling to a post-target hook 2018-10-21 01:50:35 +02:00