]> git.baikalelectronics.ru Git - arm-tf.git/commitdiff
fix(build): fix arch32 build issue for clang
authorArvind Ram Prakash <arvind.ramprakash@arm.com>
Wed, 19 Oct 2022 20:44:51 +0000 (15:44 -0500)
committerArvind Ram Prakash <arvind.ramprakash@arm.com>
Mon, 24 Oct 2022 17:06:41 +0000 (12:06 -0500)
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 <arvind.ramprakash@arm.com>
Change-Id: I09094a0912ee2d9d0e11f65135a352de8a135936

Makefile

index 8adc0d05b2916b04a6c29335b2de4e8ef44656d3..9dfd75b1a12222a1981353b4cd471fc8a17f738e 100644 (file)
--- 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)