Revert "kernel: fix KERNEL_TOOLCHAIN_PATH_gcc and usage"
This reverts commit 13f4c837feb1b5cba0e6585acf8394ca5431cde8.
Reason for revert: reeet. I broke stuff.
Change-Id: If8518aaa409d9afeaf20c689405fd21900fa5e74
diff --git a/build/tasks/kernel.mk b/build/tasks/kernel.mk
index 8092193..36352a5 100644
--- a/build/tasks/kernel.mk
+++ b/build/tasks/kernel.mk
@@ -188,7 +188,7 @@
$(error TARGET_KERNEL_MODULES is no longer supported!)
endif
-PATH_OVERRIDE += PATH=$(KERNEL_TOOLCHAIN_PATH_gcc):$$PATH
+PATH_OVERRIDE += PATH=$(KERNEL_TOOLCHAIN_PATH_gcc)/bin:$$PATH
# System tools are no longer allowed on 10+
PATH_OVERRIDE += $(TOOLS_PATH_OVERRIDE)
diff --git a/config/BoardConfigKernel.mk b/config/BoardConfigKernel.mk
index 57cf1fe..05fa7d7 100644
--- a/config/BoardConfigKernel.mk
+++ b/config/BoardConfigKernel.mk
@@ -79,7 +79,7 @@
# 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_PATH_gcc := $(KERNEL_TOOLCHAIN_$(KERNEL_ARCH))/$(KERNEL_TOOLCHAIN_PREFIX_$(KERNEL_ARCH))
ifneq ($(USE_CCACHE),)
ifneq ($(CCACHE_EXEC),)