From eb9bfcf820689e26fa9b737b879dedae33a565fb Mon Sep 17 00:00:00 2001 From: SGCMarkus Date: Tue, 15 Feb 2022 14:13:18 +0100 Subject: [PATCH] sm8250-common: add A/B partitions and scripts --- BoardConfigCommon.mk | 13 +++++++++++++ sm8250.mk | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 45 insertions(+) create mode 100644 sm8250.mk diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index a31385a..7a782ef 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -62,6 +62,19 @@ TARGET_KERNEL_CONFIG := vendor/kona-perf_defconfig BOARD_USES_QCOM_HARDWARE := true TARGET_BOARD_PLATFORM := kona +# A/B +AB_OTA_UPDATER := true + +AB_OTA_PARTITIONS += \ + boot \ + dtbo \ + product \ + system \ + system_ext \ + vbmeta \ + vbmeta_system \ + vendor + # Metadata BOARD_USES_METADATA_PARTITION := true diff --git a/sm8250.mk b/sm8250.mk new file mode 100644 index 0000000..8be8553 --- /dev/null +++ b/sm8250.mk @@ -0,0 +1,32 @@ +# +# Copyright (C) 2022 The LineageOS Project +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. +# + +# A/B +AB_OTA_POSTINSTALL_CONFIG += \ + RUN_POSTINSTALL_system=true \ + POSTINSTALL_PATH_system=system/bin/otapreopt_script \ + 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 + +PRODUCT_PACKAGES += \ + checkpoint_gc \ + otapreopt_script \ No newline at end of file