From: Yann Gautier Date: Tue, 18 Dec 2018 09:46:34 +0000 (+0100) Subject: clang: 32 bit compilation should include march32-directive X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=e2bfec0b8ddd08050fcc32b7e7f0a75b93aced5b;p=project%2Fbcm63xx%2Fatf.git 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 --- diff --git a/Makefile b/Makefile index 9525d411..50fdf895 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))