QcomModulePkg: Update Init command line for LE variant
Append Init command line through compilation flags and if INIT command is not
provided default to "/init"
Change-Id: Ic991001f00d3ca28e97a080d3f1cc5940bc503da
diff --git a/makefile b/makefile
index 2cd314b..beae335 100644
--- a/makefile
+++ b/makefile
@@ -63,6 +63,13 @@
SDLLVM_COMPILE_ANALYZE :=
SDLLVM_ANALYZE_REPORT :=
endif
+
+ifneq "$(INIT_BIN_LE)" ""
+ INIT_BIN := $(INIT_BIN_LE)
+else
+ INIT_BIN := \"/init\"
+endif
+
export SDLLVM_COMPILE_ANALYZE := $(SDLLVM_COMPILE_ANALYZE)
export SDLLVM_ANALYZE_REPORT := $(SDLLVM_ANALYZE_REPORT)
@@ -93,6 +100,7 @@
-D USER_BUILD_VARIANT=$(USER_BUILD_VARIANT) \
-D DISABLE_PARALLEL_DOWNLOAD_FLASH=$(DISABLE_PARALLEL_DOWNLOAD_FLASH) \
-D ENABLE_LE_VARIANT=$(ENABLE_LE_VARIANT) \
+ -D INIT_BIN=$(INIT_BIN) \
-D UBSAN_UEFI_GCC_FLAG_UNDEFINED=$(UBSAN_GCC_FLAG_UNDEFINED) \
-D UBSAN_UEFI_GCC_FLAG_ALIGNMENT=$(UBSAN_GCC_FLAG_ALIGNMENT) \
-j build_modulepkg.log $*