sm6150-common: Cleanup Kernel

Signed-off-by: Shashank Patil <9945shashank@gmail.com>
Signed-off-by: donjohanliebert <donjohanliebert@gmail.com>
This commit is contained in:
itsshashanksp 2024-08-26 12:05:13 +05:30 committed by donjohanliebert
parent 26fc0b9dd8
commit af531167ac

View File

@ -77,27 +77,40 @@ DEVICE_MANIFEST_FILE += hardware/qcom-caf/sm8150/media/conf_files/sm6150/c2_mani
DEVICE_MATRIX_FILE := hardware/qcom-caf/common/compatibility_matrix.xml
# Kernel
TARGET_KERNEL_ARCH := $(TARGET_ARCH)
TARGET_KERNEL_HEADER_ARCH := $(TARGET_ARCH)
BOARD_KERNEL_BASE := 0x00000000
BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
BOARD_KERNEL_PAGESIZE := 4096
BOARD_KERNEL_IMAGE_NAME := Image.gz-dtb
BOARD_KERNEL_SEPARATED_DTBO := true
# Enable DTB in bootimage and set header version
BOARD_INCLUDE_DTB_IN_BOOTIMG := true
# Kernel Path
TARGET_KERNEL_SOURCE := kernel/xiaomi/sm6150
TARGET_KERNEL_CONFIG := vendor/sdmsteppe-perf_defconfig
# Kernel Compile with Clang version
TARGET_KERNEL_CLANG_VERSION := r530567
# Kernel Build with LLVM tools
KERNEL_SUPPORTS_LLVM_TOOLS := true
TARGET_KERNEL_ADDITIONAL_FLAGS := LLVM=1 LLVM_IAS=1
KERNEL_LD := LD=ld.lld
BOARD_KERNEL_CMDLINE := console=ttyMSM0,115200n8 earlycon=msm_geni_serial,0x880000
BOARD_KERNEL_CMDLINE += androidboot.hardware=qcom androidboot.console=ttyMSM0
BOARD_KERNEL_CMDLINE += androidboot.usbcontroller=a600000.dwc3
BOARD_KERNEL_CMDLINE += service_locator.enable=1
BOARD_KERNEL_CMDLINE += lpm_levels.sleep_disabled=1
BOARD_KERNEL_CMDLINE += loop.max_part=7
# Kernel Cmdline
BOARD_KERNEL_CMDLINE := \
console=ttyMSM0,115200n8 \
earlycon=msm_geni_serial,0x880000 \
androidboot.hardware=qcom \
androidboot.console=ttyMSM0 \
androidboot.usbcontroller=a600000.dwc3 \
service_locator.enable=1 \
lpm_levels.sleep_disabled=1 \
loop.max_part=7
# Enable DTB in bootimage and set header version
BOARD_INCLUDE_DTB_IN_BOOTIMG := true
# Enable set header version
BOARD_BOOTIMG_HEADER_VERSION := 2
BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOTIMG_HEADER_VERSION)