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.
This commit is contained in:
Kyle Evans 2021-08-19 03:26:55 -05:00 committed by Franco Fichtner
parent cb0452bb17
commit 6a0d3a58e7

View file

@ -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