From 94eb127719881f39c7f235c887fb2c0b82341696 Mon Sep 17 00:00:00 2001 From: Arvind Ram Prakash Date: Wed, 19 Oct 2022 15:44:51 -0500 Subject: [PATCH] fix(build): fix arch32 build issue for clang Fixed the qemu 32 bit clang build fail caused because of no march32 directives in TF_CFLAGS_aarch32 variable march32_directive is initialized later in Makefile and since clang build uses Immediate set instead of Lazy set , TF_CFLAGS_aarch32 doesn't have mcpu variable. Signed-off-by: Arvind Ram Prakash Change-Id: I09094a0912ee2d9d0e11f65135a352de8a135936 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8adc0d05b..9dfd75b1a 100644 --- a/Makefile +++ b/Makefile @@ -274,7 +274,7 @@ ifneq ($(findstring clang,$(notdir $(CC))),) TF_CFLAGS_aarch64 := -target aarch64-arm-none-eabi $(march64-directive) LD := $(LINKER) else - TF_CFLAGS_aarch32 := $(target32-directive) $(march32-directive) + TF_CFLAGS_aarch32 = $(target32-directive) $(march32-directive) TF_CFLAGS_aarch64 := -target aarch64-elf $(march64-directive) LD := $(shell $(CC) --print-prog-name ld.lld)