axolotl: do not reserve space when building with GMS
Change-Id: I1ca6f839fc12e7864b2f01004d3b70602dfbb78a
Signed-off-by: Alexander Martinz <amartinz@shiftphones.com>
diff --git a/BoardConfig.mk b/BoardConfig.mk
index ca69094..ef2fdf2 100644
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -316,10 +316,12 @@
# system: 500 MB
# system_ext: 500 MB
# vendor: 250 MB
-BOARD_PRODUCTIMAGE_EXTFS_INODE_COUNT := -1
-BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE := 1572864000
-BOARD_SYSTEM_EXTIMAGE_EXTFS_INODE_COUNT := -1
-BOARD_SYSTEM_EXTIMAGE_PARTITION_RESERVED_SIZE := 524288000
-BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := -1
-BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 524288000
-BOARD_VENDORIMAGE_PARTITION_RESERVED_SIZE := 262144000
+ifneq ($(WITH_GMS),true)
+ BOARD_PRODUCTIMAGE_EXTFS_INODE_COUNT := -1
+ BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE := 1572864000
+ BOARD_SYSTEM_EXTIMAGE_EXTFS_INODE_COUNT := -1
+ BOARD_SYSTEM_EXTIMAGE_PARTITION_RESERVED_SIZE := 524288000
+ BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := -1
+ BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 524288000
+ BOARD_VENDORIMAGE_PARTITION_RESERVED_SIZE := 262144000
+endif