sm6225-common: Configure partitions

Change-Id: Ied40e73e1b1f831f34f0b726d31247bf4e5bd948
This commit is contained in:
Dhina17 2022-12-31 17:13:01 +05:30
parent 856a68d016
commit a6f1ade160
2 changed files with 36 additions and 0 deletions

View file

@ -33,6 +33,31 @@ TARGET_KERNEL_SOURCE := kernel/motorola/sm6225
# Kernel - Prebuilt
include device/motorola/sm6225-kernel/prebuilt_kernel.mk
# Partitions
BOARD_FLASH_BLOCK_SIZE := 262144 # (BOARD_KERNEL_PAGESIZE * 64)
BOARD_USES_METADATA_PARTITION := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 98304000
BOARD_USERDATAIMAGE_PARTITION_SIZE := 52983788000
BOARD_SUPER_PARTITION_SIZE := 7405568000
BOARD_SUPER_PARTITION_GROUPS := moto_dynamic_partitions
BOARD_MOTO_DYNAMIC_PARTITIONS_PARTITION_LIST := system system_ext product vendor
BOARD_MOTO_DYNAMIC_PARTITIONS_SIZE := 7401568000 # BOARD_SUPER_PARTITION_SIZE - 4MB
BOARD_PRODUCTIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs
BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4
TARGET_USERIMAGES_USE_EXT4 := true
TARGET_USERIMAGES_USE_F2FS := true
TARGET_COPY_OUT_PRODUCT := product
TARGET_COPY_OUT_SYSTEM_EXT := system_ext
TARGET_COPY_OUT_VENDOR := vendor
# Platform
BOARD_USES_QCOM_HARDWARE := true
TARGET_BOARD_PLATFORM := bengal

View file

@ -9,6 +9,13 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota/launch_with_ven
AB_OTA_UPDATER := true
AB_OTA_PARTITIONS += \
boot \
product \
system \
system_ext \
vendor
PRODUCT_PACKAGES += \
update_engine \
update_engine_sideload \
@ -23,6 +30,10 @@ AB_OTA_POSTINSTALL_CONFIG += \
PRODUCT_PACKAGES += \
otapreopt_script
# Partitions
PRODUCT_BUILD_SUPER_PARTITION := false
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# Shipping API level
BOARD_API_LEVEL := 30
BOARD_SHIPPING_API_LEVEL := 30