taimen: defined product & system_ext as A/B partitions

This is done to distribute the system space more evenly thanks to product partitions.
This commit is contained in:
JarlPenguin
2022-03-25 10:44:54 -07:00
committed by Asriadi
parent 91ad8f37da
commit 1508c80e7a
3 changed files with 12 additions and 2 deletions

View File

@@ -22,8 +22,12 @@ BOARD_KERNEL_CMDLINE += console=ttyMSM0,115200,n8 earlycon=msm_serial_dm,0xc1b00
include device/google/wahoo/BoardConfig.mk
BOARD_BOOTIMAGE_PARTITION_SIZE := 41943040
BOARD_SYSTEM_EXTIMAGE_PARTITION_SIZE := 524288000
BOARD_SYSTEM_EXTIMAGE_FILE_SYSTEM_TYPE := ext4
BOARD_AVB_ENABLE := true
TARGET_COPY_OUT_SYSTEM_EXT := system_ext
# sepolicy
BOARD_VENDOR_SEPOLICY_DIRS += device/google/taimen/sepolicy
@@ -107,4 +111,6 @@ AB_OTA_PARTITIONS += \
system \
vbmeta \
dtbo \
vendor
vendor \
product \
system_ext

View File

@@ -84,7 +84,7 @@ extern "C" {
"cmnlib64", "devcfg", "dtbo", "hosd", "hyp", "laf", "keymaster", \
"lockbooter", "msadp", "pmic", "rpm", "storsec", \
"trusty", "tz", "vbmeta"
#define AB_PTN_LIST PTN_SWAP_LIST, "boot", "system", "vendor", "modem"
#define AB_PTN_LIST PTN_SWAP_LIST, "boot", "system", "vendor", "modem", "product", "system_ext"
#define BOOT_DEV_DIR "/dev/block/bootdevice/by-name"
/******************************************************************************

View File

@@ -4,6 +4,10 @@
/dev/block/bootdevice/by-name/vendor_a
/dev/block/bootdevice/by-name/vendor_b
/dev/block/bootdevice/by-name/userdata
/dev/block/bootdevice/by-name/product_a
/dev/block/bootdevice/by-name/product_b
/dev/block/bootdevice/by-name/system_ext_a
/dev/block/bootdevice/by-name/system_ext_b
# Wipe the boot partitions last so that all partitions will be wiped
# correctly even if the wiping process gets interrupted by a force boot.
/dev/block/bootdevice/by-name/boot_a