summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorVarun Wadekar <vwadekar@nvidia.com>2018-12-12 15:22:27 -0800
committerVarun Wadekar <vwadekar@nvidia.com>2018-12-12 15:22:27 -0800
commitfd18a8fcb8ec5d63f8eac9c0ea8077c48680a603 (patch)
tree80794729d34c38bd1852c63a71aa941bc18abf88 /Makefile
parentc0940083bc6e7d30fb8b0828adac5a3715d3e9f1 (diff)
build: find "armclang" string in the 'CC' variable
This patch modifies the search criteria to see if we are using 'armclang' as the compiler. Switch over to using 'findstring' which enables platforms to do fancy stuff using scripts e.g. check if armclang timed out and retry compilation. Change-Id: If2162ebadb9033f6457a4e8d4243345e711defe6 Signed-off-by: Kalyani Chidambaram Vaidyanathan <kalyanic@nvidia.com> Signed-off-by: Varun Wadekar <vwadekar@nvidia.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9525d411..18fdfe7d 100644
--- a/Makefile
+++ b/Makefile
@@ -154,7 +154,7 @@ target32-directive = -target armv8a-none-eabi
march32-directive = -march=armv8-a
endif
-ifeq ($(notdir $(CC)),armclang)
+ifneq ($(findstring armclang,$(notdir $(CC))),)
TF_CFLAGS_aarch32 = -target arm-arm-none-eabi $(march32-directive)
TF_CFLAGS_aarch64 = -target aarch64-arm-none-eabi -march=armv8-a
LD = $(LINKER)