X6833B: Add partitions configuration

Signed-off-by: Woomymy <woomy@woomy.be>
Change-Id: I9e08db2236376b1132aa3bd8a7abf19aa70ba48c
Signed-off-by: dodyirawan85 <40514988+dodyirawan85@users.noreply.github.com>
This commit is contained in:
Woomymy 2023-02-27 15:31:40 +01:00 committed by dodyirawan85
parent da948b70ac
commit dde543333f
2 changed files with 26 additions and 0 deletions

View file

@ -57,6 +57,29 @@ LOCAL_KERNEL := $(KERNEL_PATH)/Image.gz
PRODUCT_COPY_FILES += \
$(LOCAL_KERNEL):kernel
# Partitions
BOARD_FLASH_BLOCK_SIZE := 262144 # BOARD_KERNEL_PAGESIZE * 64
BOARD_DTBOIMG_PARTITION_SIZE := 33554432
BOARD_BOOTIMAGE_PARTITION_SIZE := 67108864
BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 67108864
BOARD_SUPER_PARTITION_SIZE := 9126805504
BOARD_SUPER_PARTITION_GROUPS := mtk_dynamic_partitions
BOARD_MTK_DYNAMIC_PARTITIONS_PARTITION_LIST := system vendor product
BOARD_MTK_DYNAMIC_PARTITIONS_SIZE := 9122611200
BOARD_EROFS_PCLUSTER_SIZE := 262144
BOARD_USES_METADATA_PARTITION := true
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := erofs
BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := erofs
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := erofs
TARGET_COPY_OUT_PRODUCT := product
TARGET_COPY_OUT_VENDOR := vendor
# Platform
TARGET_BOARD_PLATFORM := mt6789
BOARD_HAS_MTK_HARDWARE := true

View file

@ -4,6 +4,9 @@
# SPDX-License-Identifier: Apache-2.0
#
# Dynamic partitions
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# Shipping API level
PRODUCT_SHIPPING_API_LEVEL := 31