From 37a686bf8a9c84948806953cba6c42200027c023 Mon Sep 17 00:00:00 2001 From: Roopesh Nataraja Date: Wed, 2 Mar 2022 15:02:17 -0800 Subject: [PATCH] sm8550-common: Enable compilation of init_boot partition Devices launching with Android 13 or higher and shipping with Android 13 must have an init_boot static partition. The generic ramdisk is no longer be contained in the boot.img file that goes in the boot partition. This generic ramdisk will be placed in a new init_boot.img to be installed in a new init_boot partition. Change-Id: I0434ef0cee209bb7709474c6db15b2c4fcb40a03 --- BoardConfigCommon.mk | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 0046069..b06f063 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -12,6 +12,7 @@ AB_OTA_UPDATER := true AB_OTA_PARTITIONS += \ boot \ dtbo \ + init_boot \ odm \ product \ recovery \ @@ -49,6 +50,10 @@ TARGET_BOOTLOADER_BOARD_NAME := kalama # DTB BOARD_INCLUDE_DTB_IN_BOOTIMG := true +# Init Boot +BOARD_INIT_BOOT_HEADER_VERSION := 4 +BOARD_MKBOOTIMG_INIT_ARGS += --header_version $(BOARD_INIT_BOOT_HEADER_VERSION) + # Kernel BOARD_BOOTCONFIG := \ androidboot.hardware=qcom \ @@ -67,6 +72,7 @@ BOARD_USES_METADATA_PARTITION := true # Partitions BOARD_BOOTIMAGE_PARTITION_SIZE := 100663296 BOARD_DTBOIMG_PARTITION_SIZE := 16777216 +BOARD_INIT_BOOT_IMAGE_PARTITION_SIZE := 8388608 BOARD_RECOVERYIMAGE_PARTITION_SIZE := 109051904 BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 100663296