[SQUASH] hiphi: Configure missing stuff for A/B

Co-authored-by: s4704 <igorkud00@gmail.com>
Co-authored-by: Arian <arian.kulmer@web.de>
Co-authored-by: brigudav <brigudav@gmail.com>
Co-authored-by: Sebastiano Barezzi <barezzisebastiano@gmail.com>
Signed-off-by: 7Soldier <reg.fm4@gmail.com>
This commit is contained in:
7Soldier 2022-10-30 23:59:11 +03:00
parent 808c22c144
commit 1e98a27606
3 changed files with 19 additions and 3 deletions

View file

@ -12,13 +12,19 @@ ALLOW_MISSING_DEPENDENCIES := true
# A/B
AB_OTA_UPDATER := true
BOARD_BUILD_SYSTEM_ROOT_IMAGE := false
AB_OTA_PARTITIONS += \
boot \
dtbo \
product \
system \
system_ext \
product \
recovery \
vbmeta \
vbmeta_system \
vendor \
odm
BOARD_USES_RECOVERY_AS_BOOT := true
vendor_dlkm \
vendor_boot
# Architecture
TARGET_ARCH := arm64

View file

@ -22,6 +22,12 @@ AB_OTA_POSTINSTALL_CONFIG += \
FILESYSTEM_TYPE_system=ext4 \
POSTINSTALL_OPTIONAL_system=true
AB_OTA_POSTINSTALL_CONFIG += \
RUN_POSTINSTALL_vendor=true \
POSTINSTALL_PATH_vendor=bin/checkpoint_gc \
FILESYSTEM_TYPE_vendor=ext4 \
POSTINSTALL_OPTIONAL_vendor=true
# Boot control HAL
PRODUCT_PACKAGES += \
android.hardware.boot@1.0-impl \
@ -43,6 +49,9 @@ PRODUCT_PACKAGES += \
update_verifier \
update_engine_sideload
# Dynamic partitions
PRODUCT_USE_DYNAMIC_PARTITIONS := true
# F2FS utilities
PRODUCT_PACKAGES += \
sg_write_buffer \

View file

@ -11,6 +11,7 @@ $(call inherit-product, $(SRC_TARGET_DIR)/product/core_64_bit_only.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/gsi_keys.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/updatable_apex.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/emulated_storage.mk)
$(call inherit-product, $(SRC_TARGET_DIR)/product/virtual_ab_ota.mk)
# Inherit some common TWRP stuff.
$(call inherit-product, vendor/twrp/config/common.mk)