From a9df1f9e4b56865e40644ce4b9eda4d24f6b811f Mon Sep 17 00:00:00 2001 From: Dan Pasanen Date: Sat, 19 Oct 2019 00:06:11 -0500 Subject: [PATCH] sm6375-common: Reserve additional space on odm/product/system/system_ext/vendor This is a squash of the following: Author: Dan Pasanen Date: Sat Oct 19 00:06:11 2019 -0500 floral: Reserve additional space on system/product/vendor Change-Id: Iacd45444dd0d3f423314a8edb243370600f37cdb Author: Nolen Johnson Date: Sun Aug 16 03:27:34 2020 +0530 floral: Don't reserve space for gapps WITH_GMS Change-Id: Ie95b32654772622f7a061947c252b09a45db8fdd Author: LuK1337 Date: Sun Sep 6 14:51:31 2020 +0200 floral: Don't limit system inode count when !WITH_GMS Change-Id: I458edd755fa436feadeb9f5fb2aecb0da797b0ef Author: Eamon Powell Date: Fri Jan 1 11:59:38 2021 +1100 floral: Adjust reserved partition space * Increase reserved partition space for vendor and add reserved partition space for system_ext so both partitions can be written to, regardless of GMS presence. * Increase product reserved partition space so smaller addon packages that write to the product partition like MindTheGapps can be installed. * Increase the amount of available space on the system partition so the user can optionally choose to install other addon packages that write to the system partition such as OpenGapps. Change-Id: I8d3ecca3980d50621f960fd7dff22ba40f495fee [SebaUbuntu] Always reserve at least 30MB on each partition Change-Id: I0382f5070751ef4d1be0e48bb89c7abb7eba22c6 --- BoardConfigCommon.mk | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/BoardConfigCommon.mk b/BoardConfigCommon.mk index 521be1a..694ec2b 100644 --- a/BoardConfigCommon.mk +++ b/BoardConfigCommon.mk @@ -132,6 +132,18 @@ BOARD_SYSTEMIMAGE_FILE_SYSTEM_TYPE := ext4 BOARD_USERDATAIMAGE_FILE_SYSTEM_TYPE := f2fs BOARD_VENDORIMAGE_FILE_SYSTEM_TYPE := ext4 +ifeq ($(WITH_GMS),true) +BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE := 104857600 +BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 104857600 +else +BOARD_PRODUCTIMAGE_EXTFS_INODE_COUNT := -1 +BOARD_PRODUCTIMAGE_PARTITION_RESERVED_SIZE := 1887436800 +BOARD_SYSTEMIMAGE_EXTFS_INODE_COUNT := -1 +BOARD_SYSTEMIMAGE_PARTITION_RESERVED_SIZE := 1887436800 +endif +BOARD_SYSTEM_EXTIMAGE_PARTITION_RESERVED_SIZE := 104857600 +BOARD_VENDORIMAGE_PARTITION_RESERVED_SIZE := 104857600 + TARGET_COPY_OUT_ODM := odm TARGET_COPY_OUT_SYSTEM_EXT := system_ext TARGET_COPY_OUT_VENDOR := vendor