From cc038a56581fcda8ab38f27b331fdafa33a89730 Mon Sep 17 00:00:00 2001 From: itsshashanksp <9945shashank@gmail.com> Date: Mon, 26 Aug 2024 12:05:13 +0530 Subject: [PATCH] sm6150-common: Cleanup Kernel Signed-off-by: Shashank Patil <9945shashank@gmail.com> Signed-off-by: donjohanliebert --- BoardConfigCommon.mk | 31 ++++++++++++++++++++++--------- 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index e4d9520..76435ec 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -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)