QcomModulePkg: Disable Retrycount decrement based on Android flag
Disable retry count decrement with A/B feature during early phases of
chip for debugging in multiple reboots without Boot Success. Retry count
decrement will depend on Android flag.
Change-Id: Ie5f02dbd44af181efab94f27d4d68b7c731c5e7c
diff --git a/AndroidBoot.mk b/AndroidBoot.mk
index 87ef32c..9a3fd3a 100644
--- a/AndroidBoot.mk
+++ b/AndroidBoot.mk
@@ -54,6 +54,12 @@
VERIFIED_BOOT_LE := VERIFIED_BOOT_LE=0
endif
+ifeq ($(TARGET_AB_RETRYCOUNT_DISABLE),true)
+ AB_RETRYCOUNT_DISABLE := AB_RETRYCOUNT_DISABLE=1
+else
+ AB_RETRYCOUNT_DISABLE := AB_RETRYCOUNT_DISABLE=0
+endif
+
ifeq ($(TARGET_BUILD_VARIANT),user)
USER_BUILD_VARIANT := USER_BUILD_VARIANT=1
else
@@ -117,6 +123,7 @@
$(VERIFIED_BOOT_LE) \
$(USER_BUILD_VARIANT) \
$(DISABLE_PARALLEL_DOWNLOAD_FLASH) \
+ $(AB_RETRYCOUNT_DISABLE) \
CLANG_BIN=$(CLANG_BIN) \
CLANG_PREFIX=$(CLANG35_PREFIX)\
ABL_USE_SDLLVM=$(ABL_USE_SDLLVM) \