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 <rathore6375@gmail.com>
Signed-off-by: adi8900 <adrianszymanski242@gmail.com>
GhostMaster69-dev 1 year ago committed by Jenna
parent 325c00acbc
commit d0d9a8337f
  1. 1
      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

Loading…
Cancel
Save