summaryrefslogtreecommitdiff
path: root/BoardConfig.mk
diff options
context:
space:
mode:
authorArusha Goyal <arushag@codeaurora.org>2017-05-19 11:17:06 +0530
committerArusha Goyal <arushag@codeaurora.org>2017-07-23 17:41:57 +0530
commit0810f45824981604d932600ea4739ad26a4f595d (patch)
tree9303ab0ab347ec7cb41eff7f68de89adc97ee410 /BoardConfig.mk
parent9a1b8b4bf9ecd2f7849a5f57ddcc194ce692b37f (diff)
Support the combinations of A/B and split.
This change introduces compile time flags based on which we can build combinations of A/B and split features. Based on the flags, appropriate settings are done in mk files, and appropriate fstab.qcom/recovery.fstab are picked. Change-Id: I55cbec9c280f95b043f31b833aef11c2cbe4ab00
Diffstat (limited to 'BoardConfig.mk')
-rwxr-xr-xBoardConfig.mk26
1 files changed, 20 insertions, 6 deletions
diff --git a/BoardConfig.mk b/BoardConfig.mk
index e7309ed..073b2a8 100755
--- a/BoardConfig.mk
+++ b/BoardConfig.mk
@@ -36,6 +36,7 @@ BOARD_USE_LEGACY_UI := true
TARGET_USERIMAGES_USE_EXT4 := true
BOARD_BOOTIMAGE_PARTITION_SIZE := 0x04000000
+ifeq ($(ENABLE_AB), true)
#A/B related defines
AB_OTA_UPDATER := true
# Full A/B partiton update set
@@ -45,14 +46,25 @@ AB_OTA_PARTITIONS ?= boot system
BOARD_BUILD_SYSTEM_ROOT_IMAGE := true
TARGET_NO_RECOVERY := true
BOARD_USES_RECOVERY_AS_BOOT := true
-ifeq ($(ENABLE_VENDOR_IMAGE), true)
-TARGET_RECOVERY_FSTAB := device/qcom/sdm660_64/recovery_vendor_variant.fstab
else
-TARGET_RECOVERY_FSTAB := device/qcom/sdm660_64/recovery.fstab
+BOARD_RECOVERYIMAGE_PARTITION_SIZE := 0x04000000
+BOARD_CACHEIMAGE_PARTITION_SIZE := 268435456
+BOARD_CACHEIMAGE_FILE_SYSTEM_TYPE := ext4
+#TARGET_RECOVERY_UPDATER_LIBS += librecovery_updater_msm
endif
-ifneq ($(AB_OTA_UPDATER),true)
- TARGET_RECOVERY_UPDATER_LIBS += librecovery_updater_msm
+ifeq ($(ENABLE_AB), true)
+ ifeq ($(ENABLE_VENDOR_IMAGE), true)
+ TARGET_RECOVERY_FSTAB := device/qcom/sdm660_64/recovery_AB_split_variant.fstab
+ else
+ TARGET_RECOVERY_FSTAB := device/qcom/sdm660_64/recovery_AB_non-split_variant.fstab
+ endif
+else
+ ifeq ($(ENABLE_VENDOR_IMAGE), true)
+ TARGET_RECOVERY_FSTAB := device/qcom/sdm660_64/recovery_non-AB_split_variant.fstab
+ else
+ TARGET_RECOVERY_FSTAB := device/qcom/sdm660_64/recovery_non-AB_non-split_variant.fstab
+ endif
endif
BOARD_SYSTEMIMAGE_PARTITION_SIZE := 3221225472
@@ -159,4 +171,6 @@ TARGET_USES_IMS := true
ADD_RADIO_FILES := true
TARGET_RECOVERY_UI_LIB := librecovery_ui_msm
-
+ifneq ($(AB_OTA_UPDATER),true)
+ TARGET_RECOVERY_UPDATER_LIBS += librecovery_updater_msm
+endif