summaryrefslogtreecommitdiff
Diffstat
-rw-r--r--BoardConfig.mk8
-rw-r--r--Kernel.mk4
2 files changed, 11 insertions, 1 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index 8d4dd92..63e3b96 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -102,6 +102,12 @@ BOARD_ODMIMAGE_PARTITION_SIZE := 134217728
BOARD_PRODUCTIMAGE_PARTITION_SIZE := 134217728
endif
+# DTBO partition definitions
+BOARD_PREBUILT_DTBOIMAGE := device/amlogic/einstein-kernel/dtbo.img
+BOARD_DTBOIMG_PARTITION_SIZE := 8388608
+
+BOARD_KERNEL_CMDLINE += androidboot.dtbo_idx=0
+
ifneq ($(USE_USB_AS_HOST),true)
BOARD_KERNEL_CMDLINE += --cmdline "otg_device=1"
endif
@@ -162,3 +168,5 @@ DEVICE_MANIFEST_FILE := device/amlogic/einstein/manifest.xml
BOARD_HAS_ADTV := true
BOARD_VNDK_VERSION := current
+BOARD_BOOTIMG_HEADER_VERSION := 1
+BOARD_INCLUDE_RECOVERY_DTBO := true
diff --git a/Kernel.mk b/Kernel.mk
index 8b3a75f..591967d 100644
--- a/Kernel.mk
+++ b/Kernel.mk
@@ -5,7 +5,7 @@ KERNEL_KO_OUT := $(PRODUCT_OUT)/obj/lib_vendor
INSTALLED_KERNEL_TARGET := $(PRODUCT_OUT)/kernel
-BOARD_MKBOOTIMG_ARGS := --kernel_offset $(BOARD_KERNEL_OFFSET)
+BOARD_MKBOOTIMG_ARGS := --kernel_offset $(BOARD_KERNEL_OFFSET) --header_version $(BOARD_BOOTIMG_HEADER_VERSION)
INSTALLED_2NDBOOTLOADER_TARGET := $(PRODUCT_OUT)/2ndbootloader
@@ -60,6 +60,8 @@ KERNEL_DEVICETREE := txlx_t962x_r311_2g
KERNEL_DEFCONFIG := meson64_defconfig
KERNEL_ARCH := arm64
+DTBO_DEVICETREE := common_overlay_dt
+
WIFI_MODULE := multiwifi
KERNEL_OUT := $(TARGET_OUT_INTERMEDIATES)/KERNEL_OBJ