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
parent 0693b10516
commit 2adf74c191

View File

@@ -247,9 +247,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+