From 9989300c1726935b5db45b36ad8dbd382cf1e6f8 Mon Sep 17 00:00:00 2001 From: Ramii Ahmed Date: Thu, 31 Mar 2022 11:35:07 +0000 Subject: [PATCH] sm6375-common: Add kernel flags Change-Id: I8ca24b4bfb172ae6eafb5d524471ab56c9d2a314 --- BoardConfigCommon.mk | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index a2a17cd..7a7bdc2 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -25,5 +25,36 @@ TARGET_2ND_CPU_VARIANT_RUNTIME := cortex-a75 TARGET_BOOTLOADER_BOARD_NAME := holi TARGET_NO_BOOTLOADER := true +# Kernel +BOARD_INCLUDE_DTB_IN_BOOTIMG := true +BOARD_KERNEL_BASE := 0x00000000 +BOARD_KERNEL_IMAGE_NAME := Image +BOARD_KERNEL_PAGESIZE := 4096 +BOARD_KERNEL_SEPARATED_DTBO := true +KERNEL_LD := LD=ld.lld + +BOARD_BOOT_HEADER_VERSION := 3 +BOARD_MKBOOTIMG_ARGS += --header_version $(BOARD_BOOT_HEADER_VERSION) + +TARGET_KERNEL_ADDITIONAL_FLAGS := DTC_EXT=$(shell pwd)/prebuilts/misc/linux-x86/dtc/dtc LLVM=1 +TARGET_KERNEL_CLANG_COMPILE := true +TARGET_KERNEL_SOURCE := kernel/xiaomi/sm6375 + +BOARD_KERNEL_CMDLINE += androidboot.console=ttyMSM0 +BOARD_KERNEL_CMDLINE += androidboot.hardware=qcom +BOARD_KERNEL_CMDLINE += androidboot.memcg=1 +BOARD_KERNEL_CMDLINE += androidboot.usbcontroller=4e00000.dwc3 +BOARD_KERNEL_CMDLINE += cgroup.memory=nokmem,nosocket +BOARD_KERNEL_CMDLINE += console=ttyMSM0,115200n8 +BOARD_KERNEL_CMDLINE += earlycon=msm_geni_serial,0x04C8C000 +BOARD_KERNEL_CMDLINE += loop.max_part=7 +BOARD_KERNEL_CMDLINE += msm_rtb.filter=0x237 +BOARD_KERNEL_CMDLINE += service_locator.enable=1 +BOARD_KERNEL_CMDLINE += swiotlb=0 +BOARD_KERNEL_CMDLINE += pcie_ports=compat +BOARD_KERNEL_CMDLINE += iptable_raw.raw_before_defrag=1 +BOARD_KERNEL_CMDLINE += ip6table_raw.raw_before_defrag=1 +BOARD_KERNEL_CMDLINE += video=vfb:640x400,bpp=32,memsize=3072000 + # Inherit the proprietary files include vendor/xiaomi/sm6375-common/BoardConfigVendor.mk