kernel: Only add GCC to PATH when using GNU binutils

Change-Id: Ia842ed409145a81a92077dde5d6e9749a057f047
This commit is contained in:
Michael Bestas
2022-11-01 14:57:41 +02:00
committed by nebrassy
parent 5a5867bf3f
commit 35252a6767
+5 -3
View File
@@ -239,9 +239,11 @@ ifneq ($(TARGET_KERNEL_MODULES),)
$(error TARGET_KERNEL_MODULES is no longer supported!)
endif
# 5.10+ can fully compile without gcc
ifeq (,$(filter 5.10, $(TARGET_KERNEL_VERSION)))
PATH_OVERRIDE += PATH=$(KERNEL_TOOLCHAIN_PATH_gcc):$$PATH
ifeq ($(TARGET_KERNEL_LLVM_BINUTILS), false)
# 5.10+ can fully compile without gcc
ifeq (,$(filter 5.10, $(TARGET_KERNEL_VERSION)))
PATH_OVERRIDE += PATH=$(KERNEL_TOOLCHAIN_PATH_gcc):$$PATH
endif
endif
# System tools are no longer allowed on 10+