QcomModulePkg: Add support for Virtual A/B
For Virtual A/B OTA feature, change to
* add intial support for feature.
* parse misc partition for virtual a/b merge status.
* publish snapshot merge status in fastboot variables.
Change-Id: I9eff78c4f4727a500cece1f1ef5922ff366528c5
diff --git a/AndroidBoot.mk b/AndroidBoot.mk
index 0f34d1c..b8378a4 100644
--- a/AndroidBoot.mk
+++ b/AndroidBoot.mk
@@ -86,6 +86,12 @@
DYNAMIC_PARTITION_SUPPORT := DYNAMIC_PARTITION_SUPPORT=0
endif
+ifeq ($(PRODUCT_VIRTUAL_AB_OTA),true)
+ VIRTUAL_AB_OTA := VIRTUAL_AB_OTA=1
+else
+ VIRTUAL_AB_OTA := VIRTUAL_AB_OTA=0
+endif
+
ifeq ($(BOARD_USES_RECOVERY_AS_BOOT),true)
BUILD_USES_RECOVERY_AS_BOOT := BUILD_USES_RECOVERY_AS_BOOT=1
else
@@ -138,6 +144,7 @@
$(DISABLE_PARALLEL_DOWNLOAD_FLASH) \
$(AB_RETRYCOUNT_DISABLE) \
$(DYNAMIC_PARTITION_SUPPORT) \
+ $(VIRTUAL_AB_OTA) \
$(BUILD_USES_RECOVERY_AS_BOOT) \
CLANG_BIN=$(CLANG_BIN) \
CLANG_PREFIX=$(CLANG35_PREFIX)\