From: Bruno Martins Date: Sun, 17 Dec 2023 11:39:14 +0000 (+0000) Subject: g12-common: Do not limit inodes on all partitions with reserved size X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d59f5cf15f54af65ead520b6a528db5f5c01fad8;p=GitHub%2FLineageOS%2FG12%2Fandroid_device_amlogic_g12-common.git g12-common: Do not limit inodes on all partitions with reserved size Change-Id: Ib0ce6c5dbf204d715fd13f9d204ea3c657b6a852 --- diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index e170f83..5a11515 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -22,9 +22,9 @@ TARGET_KERNEL_SOURCE := kernel/amlogic/linux-4.9 TARGET_KERNEL_VARIANT_CONFIG ?= g12a_variant_defconfig ## Partitions -CORE_PARTITIONS := system vendor -ADDITIONAL_PARTITIONS := odm product system_ext -ALL_PARTITIONS := $(CORE_PARTITIONS) $(ADDITIONAL_PARTITIONS) +SSI_PARTITIONS := product system system_ext +TREBLE_PARTITIONS := odm vendor +ALL_PARTITIONS := $(SSI_PARTITIONS) $(TREBLE_PARTITIONS) BOARD_AMLOGIC_DYNAMIC_PARTITIONS_PARTITION_LIST := $(ALL_PARTITIONS) BOARD_AMLOGIC_DYNAMIC_PARTITIONS_SIZE := $(shell echo $$(($(BOARD_SUPER_PARTITION_SIZE) - 4194304))) # (BOARD_SUPER_PARTITION_SIZE - "reasonable overhead of 4 MiB" 4194304) @@ -33,8 +33,9 @@ BOARD_SUPER_PARTITION_GROUPS := amlogic_dynamic_partitions BUILDING_SUPER_EMPTY_IMAGE := true ifneq ($(WITH_GMS),true) +$(foreach p, $(call to-upper, $(SSI_PARTITIONS)), \ + $(eval BOARD_$(p)IMAGE_EXTFS_INODE_COUNT := -1)) BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE := 420000000 -BOARD_PRODUCTIMAGE_EXTFS_INODE_COUNT := -1 BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 40000000 BOARD_SYSTEM_EXTIMAGE_PARTITION_RESERVED_SIZE := 20000000 endif