sm6225-common: Setup kernel flags
Change-Id: I81eea76176f9c8e16f1998b34b9cd4d4d76a37d7
Signed-off-by: ReStranger <restranger@disroot.org>
diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk
index 14f1de3..f25eb1a 100644
--- a/BoardConfigCommon.mk
+++ b/BoardConfigCommon.mk
@@ -74,6 +74,32 @@
$(COMMON_PATH)/configs/vintf/manifest_radio.xml \
$(COMMON_PATH)/configs/vintf/manifest_xiaomi.xml
+# Kernel
+BOARD_INCLUDE_DTB_IN_BOOTIMG := true
+BOARD_RAMDISK_USE_LZ4 := true
+TARGET_NEEDS_DTBOIMAGE := true
+
+BOARD_KERNEL_BASE := 0x00000000
+BOARD_KERNEL_PAGESIZE := 4096
+BOARD_KERNEL_IMAGE_NAME := Image
+
+BOARD_BOOT_HEADER_VERSION := 4
+BOARD_MKBOOTIMG_ARGS := --header_version $(BOARD_BOOT_HEADER_VERSION)
+
+BOARD_INIT_BOOT_HEADER_VERSION := 4
+BOARD_MKBOOTIMG_INIT_ARGS += --header_version $(BOARD_INIT_BOOT_HEADER_VERSION)
+
+BOARD_KERNEL_CMDLINE := \
+ video=vfb:640x400,bpp=32,memsize=3072000 \
+ swinfo.fingerprint=$(LINEAGE_VERSION) \
+ mtdoops.fingerprint=$(LINEAGE_VERSION)
+
+BOARD_BOOTCONFIG := \
+ androidboot.hardware=qcom \
+ androidboot.memcg=1 \
+ androidboot.usbcontroller=4e00000.dwc3 \
+ androidboot.selinux=permissive
+
# Kernel prebuilt
TARGET_KERNEL_ARCH := arm64
TARGET_KERNEL_HEADER_ARCH := arm64
@@ -128,6 +154,9 @@
TARGET_SYSTEM_PROP += $(COMMON_PATH)/properties/system.prop
TARGET_VENDOR_PROP += $(COMMON_PATH)/properties/vendor.prop
+# Recovery
+BOARD_EXCLUDE_KERNEL_FROM_RECOVERY_IMAGE := true
+
# RIL
ENABLE_VENDOR_RIL_SERVICE := true