aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorYann Gautier <yann.gautier@st.com>2018-12-18 10:46:34 +0100
committerYann Gautier <yann.gautier@st.com>2018-12-18 10:46:34 +0100
commite2bfec0b8ddd08050fcc32b7e7f0a75b93aced5b (patch)
tree59b3b6502f5576be8f9ba52373ff3680bba5c164 /Makefile
parente01065472a588c4f7f52f88654c5b991498eb3dc (diff)
downloadtrusted-firmware-a-e2bfec0b8ddd08050fcc32b7e7f0a75b93aced5b.tar.gz
clang: 32 bit compilation should include march32-directive
This is done for other compilers, and without this some code does not compile, like inline assembly code. Fixes ARM-software/tf-issues#657. Signed-off-by: Yann Gautier <yann.gautier@st.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9525d411a3..50fdf895e0 100644
--- a/Makefile
+++ b/Makefile
@@ -162,7 +162,7 @@ AS = $(CC) -c -x assembler-with-cpp $(TF_CFLAGS_$(ARCH))
CPP = $(CC) -E $(TF_CFLAGS_$(ARCH))
PP = $(CC) -E $(TF_CFLAGS_$(ARCH))
else ifneq ($(findstring clang,$(notdir $(CC))),)
-TF_CFLAGS_aarch32 = $(target32-directive)
+TF_CFLAGS_aarch32 = $(target32-directive) $(march32-directive)
TF_CFLAGS_aarch64 = -target aarch64-elf
LD = $(LINKER)
AS = $(CC) -c -x assembler-with-cpp $(TF_CFLAGS_$(ARCH))