edk2: SDLLVM path update in AndroidBoot makefile
If SDLLVM path is defined as absolute path, do not append Android root path again.
Change-Id: Ic465fd47ac4226635b141049683f03c5408b9c01
diff --git a/AndroidBoot.mk b/AndroidBoot.mk
index 87b783d..6742041 100644
--- a/AndroidBoot.mk
+++ b/AndroidBoot.mk
@@ -1,7 +1,16 @@
#Android makefile to build bootloader as a part of Android Build
-CLANG_BIN := $(ANDROID_BUILD_TOP)/$(SDCLANG_PATH)/
+ifeq ($(shell echo $(SDCLANG_PATH) | head -c 1),/)
+ CLANG_BIN := $(SDCLANG_PATH)/
+else
+ CLANG_BIN := $(ANDROID_BUILD_TOP)/$(SDCLANG_PATH)/
+endif
+
ifneq ($(wildcard $(SDCLANG_PATH_2)),)
- CLANG_BIN := $(ANDROID_BUILD_TOP)/$(SDCLANG_PATH_2)/
+ ifeq ($(shell echo $(SDCLANG_PATH_2) | head -c 1),/)
+ CLANG_BIN := $(SDCLANG_PATH_2)/
+ else
+ CLANG_BIN := $(ANDROID_BUILD_TOP)/$(SDCLANG_PATH_2)/
+ endif
endif
ifeq ($(PRODUCTS.$(INTERNAL_PRODUCT).PRODUCT_SUPPORTS_VERITY),true)