kernel: Fix clang version override
Change-Id: I18fceeeeab5426f55a73d0cb8d72abd5f40c67ec
This commit is contained in:
@@ -31,10 +31,6 @@
|
||||
#
|
||||
# TARGET_KERNEL_CLANG_COMPILE = Compile kernel with clang, defaults to true
|
||||
#
|
||||
# TARGET_KERNEL_CLANG_VERSION = Clang prebuilts version, optional, defaults to clang-stable
|
||||
#
|
||||
# TARGET_KERNEL_CLANG_PATH = Clang prebuilts path, optional
|
||||
#
|
||||
# BOARD_KERNEL_IMAGE_NAME = Built image name
|
||||
# for ARM use: zImage
|
||||
# for ARM64 use: Image.gz
|
||||
@@ -231,13 +227,6 @@ ifeq ($(or $(FULL_RECOVERY_KERNEL_BUILD), $(FULL_KERNEL_BUILD)),true)
|
||||
# Add host bin out dir to path
|
||||
PATH_OVERRIDE := PATH=$(KERNEL_BUILD_OUT_PREFIX)$(HOST_OUT_EXECUTABLES):$$PATH
|
||||
ifneq ($(TARGET_KERNEL_CLANG_COMPILE),false)
|
||||
ifneq ($(TARGET_KERNEL_CLANG_VERSION),)
|
||||
KERNEL_CLANG_VERSION := clang-$(TARGET_KERNEL_CLANG_VERSION)
|
||||
else
|
||||
# Use the default version of clang if TARGET_KERNEL_CLANG_VERSION hasn't been set by the device config
|
||||
KERNEL_CLANG_VERSION := $(LLVM_PREBUILTS_VERSION)
|
||||
endif
|
||||
TARGET_KERNEL_CLANG_PATH ?= $(BUILD_TOP)/prebuilts/clang/host/$(HOST_PREBUILT_TAG)/$(KERNEL_CLANG_VERSION)
|
||||
ifeq (,$(filter 5.10, $(TARGET_KERNEL_VERSION)))
|
||||
ifeq ($(KERNEL_ARCH),arm64)
|
||||
KERNEL_CLANG_TRIPLE ?= CLANG_TRIPLE=aarch64-linux-gnu-
|
||||
|
Reference in New Issue
Block a user