From 49a9f8d820ff98cad52b89531902d5cf8ff20409 Mon Sep 17 00:00:00 2001 From: GhostMaster69-dev Date: Sat, 1 Jul 2023 16:51:18 +0530 Subject: [PATCH] sm7125-common: Override default C Compiler for Kernel compilation Override $KERNEL_CC to bypass source side fixes for disabling LLVM CUDA and LLVM HIP which breaks kernel compilation for us. clang: warning: argument unused during compilation: '--cuda-path=/dev/null' [-Wunused-command-line-argument] clang: warning: argument unused during compilation: '--hip-path=/dev/null' [-Wunused-command-line-argument] Change-Id: Ied235ab18c869f200b6d181fcd9ee6d67787066e Signed-off-by: GhostMaster69-dev Signed-off-by: adi8900 --- BoardConfigCommon.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 70e4168..55793ea 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -62,6 +62,7 @@ TARGET_KERNEL_SOURCE := kernel/samsung/sm7125 TARGET_KERNEL_ARCH := arm64 TARGET_KERNEL_HEADER_ARCH := arm64 TARGET_LINUX_KERNEL_VERSION := 4.14 +KERNEL_CC := CC=clang # Kernel flags BOARD_KERNEL_CMDLINE += console=null androidboot.hardware=qcom androidboot.memcg=1 lpm_levels.sleep_disabled=1 video=vfb:640x400,bpp=32,memsize=3072000 msm_rtb.filter=0x237 service_locator.enable=1 swiotlb=1 androidboot.usbcontroller=a600000.dwc3 printk.devkmsg=on firmware_class.path=/vendor/firmware_mnt/image