QcomModulePkg: Add support for product name in fastboot variable
Add support to print the product name from Android configuration instead
of hard string defined in the board.
Change-Id: I403c72b564678141503051b477105b64362d163b
diff --git a/AndroidBoot.mk b/AndroidBoot.mk
index f3f28f6..aaa072a 100644
--- a/AndroidBoot.mk
+++ b/AndroidBoot.mk
@@ -43,6 +43,12 @@
USER_BUILD_VARIANT := USER_BUILD_VARIANT=0
endif
+ifneq ($(TARGET_BOOTLOADER_BOARD_NAME),)
+ BOARD_BOOTLOADER_PRODUCT_NAME := $(TARGET_BOOTLOADER_BOARD_NAME)
+else
+ BOARD_BOOTLOADER_PRODUCT_NAME := QC_Reference_Phone
+endif
+
# For most platform, abl needed always be built
# in aarch64 arthitecture to run.
# Specify BOOTLOADER_ARCH if needed to built with
@@ -87,5 +93,6 @@
CLANG_PREFIX=$(CLANG35_PREFIX)\
ABL_USE_SDLLVM=$(ABL_USE_SDLLVM) \
CLANG_GCC_TOOLCHAIN=$(CLANG35_GCC_TOOLCHAIN)\
- TARGET_ARCHITECTURE=$(TARGET_ARCHITECTURE)
+ TARGET_ARCHITECTURE=$(TARGET_ARCHITECTURE) \
+ BOARD_BOOTLOADER_PRODUCT_NAME=$(BOARD_BOOTLOADER_PRODUCT_NAME)