FP4: Adjust partition reserved sizes to fit S gapps
* Reserve enough space so full MTG zip can be flashed.
* Set system size 90MB lower than maximum available space to avoid
near future breakage when our builds potentially grow in size.
Change-Id: I3a8b89b446d2d0183797cbcea6bd0b106119c4a9
diff --git a/BoardConfig.mk b/BoardConfig.mk
index fc15530..43de137 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -149,13 +149,17 @@
BOARD_QTI_DYNAMIC_PARTITIONS_PARTITION_LIST := odm product system system_ext vendor
BOARD_QTI_DYNAMIC_PARTITIONS_SIZE := 6438256640
-BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE:= 236870912
-BOARD_SYSTEM_EXTIMAGE_PARTITION_RESERVED_SIZE:= 236870912
-BOARD_VENDORIMAGE_PARTITION_RESERVED_SIZE:= 236870912
-BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE:= 236870912
-BOARD_ODMIMAGE_PARTITION_RESERVED_SIZE:= 236870912
-BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE:= 236870912
-BOARD_RECOVERYIMAGE_PARTITION_SIZE := 100663296
+# Reserve space for gapps install
+ifneq ($(WITH_GMS),true)
+BOARD_PRODUCTIMAGE_EXTFS_INODE_COUNT := -1
+BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE := 614400000
+BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := -1
+BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 3466620928
+BOARD_SYSTEM_EXTIMAGE_EXTFS_INODE_COUNT := -1
+BOARD_SYSTEM_EXTIMAGE_PARTITION_RESERVED_SIZE := 92160000
+endif
+BOARD_ODMIMAGE_PARTITION_RESERVED_SIZE:= 30720000
+BOARD_VENDORIMAGE_PARTITION_RESERVED_SIZE := 30720000
# Partitions (Other)
BOARD_ODMIMAGE_FILE_SYSTEM_TYPE := ext4