mirror of
https://github.com/Evolution-X-Devices/device_google_taimen
synced 2026-01-27 15:59:12 +00:00
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:
@@ -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
|
||||
|
||||
@@ -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"
|
||||
|
||||
/******************************************************************************
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user