kernel: Only add GCC to PATH when using GNU binutils
Change-Id: Ia842ed409145a81a92077dde5d6e9749a057f047
This commit is contained in:
@@ -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+
|
||||
|
Reference in New Issue
Block a user