g12-common: Do not limit inodes on all partitions with reserved size
authorBruno Martins <bgcngm@gmail.com>
Sun, 17 Dec 2023 11:39:14 +0000 (11:39 +0000)
committerBruno Martins <bgcngm@gmail.com>
Tue, 26 Dec 2023 19:10:58 +0000 (19:10 +0000)
Change-Id: Ib0ce6c5dbf204d715fd13f9d204ea3c657b6a852

BoardConfigCommon.mk

index e170f836739247949d13ca8231029b66dd13c2a3..5a1151548691538c214315507b637c9c122aa6e3 100644 (file)
@@ -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