Skip to content

Commit

Permalink
pdx215: move recovery to vendor_boot
Browse files Browse the repository at this point in the history
no more messing with boot image

Signed-off-by: Saran Thongplong <68327355+lolipuru@users.noreply.github.com>
  • Loading branch information
lolipuru committed Nov 8, 2022
1 parent e2f65c3 commit 771cdfb
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
6 changes: 4 additions & 2 deletions BoardConfig.mk
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ BOARD_PREBUILT_DTBOIMAGE := $(DEVICE_PATH)/prebuilt/$(PRODUCT_RELEASE_NAME)/dtbo
#TARGET_USE_SDCLANG := true

#A/B
BOARD_USES_RECOVERY_AS_BOOT := true
BOARD_MOVE_GSI_AVB_KEYS_TO_VENDOR_BOOT := true
BOARD_MOVE_RECOVERY_RESOURCES_TO_VENDOR_BOOT := true
TARGET_NO_RECOVERY := true
BOARD_BUILD_SYSTEM_ROOT_IMAGE := false

Expand All @@ -92,8 +93,9 @@ BOARD_AVB_RECOVERY_ROLLBACK_INDEX := $(PLATFORM_SECURITY_PATCH_TIMESTAMP)
BOARD_AVB_RECOVERY_ROLLBACK_INDEX_LOCATION := 1

# Partitions
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x06000000
BOARD_VENDOR_BOOTIMAGE_PARTITION_SIZE := 0x06000000
TARGET_RECOVERY_FSTAB := $(DEVICE_PATH)/recovery/root/system/etc/recovery.fstab
TARGET_RECOVERY_WIPE := $(DEVICE_PATH)/recovery/root/system/etc/recovery.wipe

# Dynamic Partition
BOARD_SUPER_PARTITION_SIZE := 12348030976
Expand Down
16 changes: 16 additions & 0 deletions recovery/root/system/etc/recovery.wipe
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# All the partitions to be wiped (in order) under recovery.
/dev/block/bootdevice/by-name/system_a
/dev/block/bootdevice/by-name/system_b
/dev/block/bootdevice/by-name/system_ext_a
/dev/block/bootdevice/by-name/system_ext_b
/dev/block/bootdevice/by-name/product_a
/dev/block/bootdevice/by-name/product_b
/dev/block/bootdevice/by-name/vendor_a
/dev/block/bootdevice/by-name/vendor_b
/dev/block/bootdevice/by-name/odm_a
/dev/block/bootdevice/by-name/odm_b
/dev/block/bootdevice/by-name/userdata
# 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
/dev/block/bootdevice/by-name/boot_b

0 comments on commit 771cdfb

Please sign in to comment.