From d83e3aaa9a883b7ec636965d19d697c496029c05 Mon Sep 17 00:00:00 2001 From: JarlPenguin Date: Fri, 25 Mar 2022 10:13:44 -0700 Subject: [PATCH] walleye: define product as A/B partitions This is done to distribute the system space more evenly thanks to product partitions. --- gpt-utils/gpt-utils.h | 2 +- recovery.wipe | 2 ++ walleye/BoardConfig.mk | 3 ++- 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/gpt-utils/gpt-utils.h b/gpt-utils/gpt-utils.h index d29fedc..28c1671 100644 --- a/gpt-utils/gpt-utils.h +++ b/gpt-utils/gpt-utils.h @@ -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" #define BOOT_DEV_DIR "/dev/block/bootdevice/by-name" /****************************************************************************** diff --git a/recovery.wipe b/recovery.wipe index 03e5e18..5eb2351 100644 --- a/recovery.wipe +++ b/recovery.wipe @@ -4,6 +4,8 @@ /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 # 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 diff --git a/walleye/BoardConfig.mk b/walleye/BoardConfig.mk index dfaa994..7d3b2a0 100644 --- a/walleye/BoardConfig.mk +++ b/walleye/BoardConfig.mk @@ -51,4 +51,5 @@ AB_OTA_PARTITIONS += \ system \ vbmeta \ dtbo \ - vendor + vendor \ + product