From 89655add77d8d57c4274d65aee563cc19e841875 Mon Sep 17 00:00:00 2001 From: Shirayuki39 Date: Thu, 29 Aug 2024 10:01:53 +0800 Subject: [PATCH] LG8n: Add kernel flags * Kernel is built separatly and placed in device/tecno/LG8n-kernel Co-authored-by: Woomymy Co-authored-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com> Signed-off-by: Shirayuki39 --- BoardConfig.mk | 13 +++++++++++++ device.mk | 1 + 2 files changed, 14 insertions(+) diff --git a/BoardConfig.mk b/BoardConfig.mk index 44b9f28..bf38258 100644 --- a/BoardConfig.mk +++ b/BoardConfig.mk @@ -7,5 +7,18 @@ # Include the common OEM chipset BoardConfig. include device/tecno/pova4series-common/BoardConfigCommon.mk +# Boot image +BOARD_INCLUDE_DTB_IN_BOOTIMG := true + +# DTB +BOARD_PREBUILT_DTBOIMAGE := $(KERNEL_PATH)/dtbo.img +BOARD_PREBUILT_DTBIMAGE_DIR := $(KERNEL_PATH)/dtb + +# Kernel +TARGET_NO_KERNEL_OVERRIDE := true +LOCAL_KERNEL := $(KERNEL_PATH)/Image.gz +PRODUCT_COPY_FILES += \ + $(LOCAL_KERNEL):kernel + # Inherit the proprietary files include vendor/tecno/LG8n/BoardConfigVendor.mk diff --git a/device.mk b/device.mk index 77e3e65..dddb00d 100644 --- a/device.mk +++ b/device.mk @@ -5,6 +5,7 @@ # DEVICE_PATH := device/tecno/LG8n +KERNEL_PATH := $(DEVICE_PATH)-kernel # Shipping API level PRODUCT_SHIPPING_API_LEVEL := 31