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!)
|
$(error TARGET_KERNEL_MODULES is no longer supported!)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# 5.10+ can fully compile without gcc
|
ifeq ($(TARGET_KERNEL_LLVM_BINUTILS), false)
|
||||||
ifeq (,$(filter 5.10, $(TARGET_KERNEL_VERSION)))
|
# 5.10+ can fully compile without gcc
|
||||||
PATH_OVERRIDE += PATH=$(KERNEL_TOOLCHAIN_PATH_gcc):$$PATH
|
ifeq (,$(filter 5.10, $(TARGET_KERNEL_VERSION)))
|
||||||
|
PATH_OVERRIDE += PATH=$(KERNEL_TOOLCHAIN_PATH_gcc):$$PATH
|
||||||
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
# System tools are no longer allowed on 10+
|
# System tools are no longer allowed on 10+
|
||||||
|
Reference in New Issue
Block a user