From: Nolen Johnson Date: Tue, 11 Jul 2023 20:54:28 +0000 (-0400) Subject: g12-common: Decommonize super partition size X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5d88d48d4000766450e7d76a54df131be8ade3b1;p=GitHub%2FLineageOS%2FG12%2Fandroid_device_amlogic_g12-common.git g12-common: Decommonize super partition size Calculate dynamic partition size based on the super partition size defined by the targets. Change-Id: I574742d5798338eb98c6f229977bd4aebf4e22f0 --- diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 480c86b..dbc0b07 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -1,5 +1,5 @@ # -# Copyright (C) 2021-2022 The LineageOS Project +# Copyright (C) 2021-2023 The LineageOS Project # # SPDX-License-Identifier: Apache-2.0 # @@ -27,10 +27,9 @@ ADDITIONAL_PARTITIONS := odm product system_ext ALL_PARTITIONS := $(CORE_PARTITIONS) $(ADDITIONAL_PARTITIONS) BOARD_AMLOGIC_DYNAMIC_PARTITIONS_PARTITION_LIST := $(ALL_PARTITIONS) -BOARD_AMLOGIC_DYNAMIC_PARTITIONS_SIZE := 1673527296 # (BOARD_SUPER_PARTITION_SIZE - "Reasonable Overhead of 4 MiB" 4194304) +BOARD_AMLOGIC_DYNAMIC_PARTITIONS_SIZE := $(shell echo $$(($(BOARD_SUPER_PARTITION_SIZE) - 4194304))) # (BOARD_SUPER_PARTITION_SIZE - "reasonable overhead of 4 MiB" 4194304) BOARD_BUILD_SUPER_IMAGE_BY_DEFAULT := true BOARD_SUPER_PARTITION_GROUPS := amlogic_dynamic_partitions -BOARD_SUPER_PARTITION_SIZE := 1677721600 BUILDING_SUPER_EMPTY_IMAGE := true ifneq ($(WITH_GMS),true)