lineage: config: Make LLVM kernel compile the default
* GCC was deprecated awhile ago, the large majority of devices should now be using this. Clang should be opt out as opposed to opt in. Change-Id: Ie388aff8eca189663f2f615f7d059e47eaf2dce3
This commit is contained in:
committed by
Nebrassy
parent
7a23f9e986
commit
ea442ffb45
@@ -26,7 +26,7 @@
|
||||
# TARGET_KERNEL_SELINUX_CONFIG = SELinux defconfig, optional
|
||||
# TARGET_KERNEL_ADDITIONAL_CONFIG = Additional defconfig, optional
|
||||
#
|
||||
# TARGET_KERNEL_CLANG_COMPILE = Compile kernel with clang, defaults to false
|
||||
# TARGET_KERNEL_CLANG_COMPILE = Compile kernel with clang, defaults to true
|
||||
#
|
||||
# TARGET_KERNEL_CLANG_VERSION = Clang prebuilts version, optional, defaults to clang-stable
|
||||
#
|
||||
@@ -186,7 +186,7 @@ $(INTERNAL_VENDOR_RAMDISK_TARGET): $(TARGET_PREBUILT_INT_KERNEL)
|
||||
|
||||
# Add host bin out dir to path
|
||||
PATH_OVERRIDE := PATH=$(KERNEL_BUILD_OUT_PREFIX)$(HOST_OUT_EXECUTABLES):$$PATH
|
||||
ifeq ($(TARGET_KERNEL_CLANG_COMPILE),true)
|
||||
ifneq ($(TARGET_KERNEL_CLANG_COMPILE),false)
|
||||
ifneq ($(TARGET_KERNEL_CLANG_VERSION),)
|
||||
KERNEL_CLANG_VERSION := clang-$(TARGET_KERNEL_CLANG_VERSION)
|
||||
else
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
# aarch64-linux-android- for arm64
|
||||
# x86_64-linux-android- for x86
|
||||
#
|
||||
# TARGET_KERNEL_CLANG_COMPILE = Compile kernel with clang, defaults to false
|
||||
# TARGET_KERNEL_CLANG_COMPILE = Compile kernel with clang, defaults to true
|
||||
#
|
||||
# KERNEL_TOOLCHAIN_PREFIX = Overrides TARGET_KERNEL_CROSS_COMPILE_PREFIX,
|
||||
# Set this var in shell to override
|
||||
@@ -96,7 +96,7 @@ ifneq ($(USE_CCACHE),)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(TARGET_KERNEL_CLANG_COMPILE),true)
|
||||
ifneq ($(TARGET_KERNEL_CLANG_COMPILE),false)
|
||||
KERNEL_CROSS_COMPILE := CROSS_COMPILE="$(KERNEL_TOOLCHAIN_PATH)"
|
||||
else
|
||||
KERNEL_CROSS_COMPILE := CROSS_COMPILE="$(CCACHE_BIN) $(KERNEL_TOOLCHAIN_PATH)"
|
||||
|
||||
Reference in New Issue
Block a user