From 6a0d3a58e7c990396f1e990e4108e4a59ea92eb7 Mon Sep 17 00:00:00 2001 From: Kyle Evans Date: Thu, 19 Aug 2021 03:26:55 -0500 Subject: [PATCH] kernel: drop cross-build conditional for building kernel-toolchain It's actually non-trivial to determine if you need to build the kernel-toolchain or not -- host version not matching the target exactly is a valid reason, among others. Unconditionally build kernel-toolchain to err on the side of caution and towards prevention of confusing build failures. If the `base` target has already been built then no building really happens here, we simply walk through all of the bootstrap tools and determine they're all up to date. --- build/kernel.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/build/kernel.sh b/build/kernel.sh index 8546c48..3a7f749 100644 --- a/build/kernel.sh +++ b/build/kernel.sh @@ -58,9 +58,7 @@ __MAKE_CONF= ${MAKE_ARGS_DEV} " -if [ ${PRODUCT_HOST} != ${PRODUCT_ARCH} ]; then - ${ENV_FILTER} make -s -C${SRCDIR} -j${CPUS} kernel-toolchain ${MAKE_ARGS} -fi +${ENV_FILTER} make -s -C${SRCDIR} -j${CPUS} kernel-toolchain ${MAKE_ARGS} ${ENV_FILTER} make -s -C${SRCDIR} -j${CPUS} buildkernel ${MAKE_ARGS} NO_KERNELCLEAN=yes if [ "${1}" = "build" ]; then exit 0