kernel: Add GCC toolchains to the path
Tools like `as` only exist in the GCC toolchain, so we need that
Change-Id: I025d0d9bdf6eda94a538d2d6ddafbecc8830f471
diff --git a/config/BoardConfigKernel.mk b/config/BoardConfigKernel.mk
index 23bf60d..de749ce 100644
--- a/config/BoardConfigKernel.mk
+++ b/config/BoardConfigKernel.mk
@@ -77,6 +77,10 @@
KERNEL_TOOLCHAIN_PATH := $(KERNEL_TOOLCHAIN)/$(KERNEL_TOOLCHAIN_PREFIX)
endif
+# We need to add GCC toolchain to the path no matter what
+# for tools like `as`
+KERNEL_TOOLCHAIN_PATH_gcc := $(KERNEL_TOOLCHAIN_$(KERNEL_ARCH))/$(KERNEL_TOOLCHAIN_PREFIX_$(KERNEL_ARCH))
+
ifneq ($(USE_CCACHE),)
ifneq ($(CCACHE_EXEC),)
# Android 10+ deprecates use of a build ccache. Only system installed ones are now allowed