endif
# LLVM support
-LLVM_RELFLAGS := $(call cc-option,-mllvm,) \
- $(call cc-option,-mno-movt,)
-PLATFORM_RELFLAGS += $(LLVM_RELFLAGS)
-
+LLVM_RELFLAGS := $(call cc-option,-mllvm,)
PLATFORM_CPPFLAGS += -D__ARM__
ifdef CONFIG_ARM64
PLATFORM_ELFFLAGS += -B aarch64 -O elf64-littleaarch64
else
PLATFORM_ELFFLAGS += -B arm -O elf32-littlearm
+# no-movt is only available when targeting AArch32
+LLVM_RELFLAGS += $(call cc-option,-mno-movt,)
endif
+PLATFORM_RELFLAGS += $(LLVM_RELFLAGS)
+
# Choose between ARM/Thumb instruction sets
ifeq ($(CONFIG_$(PHASE_)SYS_THUMB_BUILD),y)
AFLAGS_IMPLICIT_IT := $(call as-option,-Wa$(comma)-mimplicit-it=always)
$(call cc-option,-marm,)\
$(call cc-option,-mno-thumb-interwork,)\
)
-else
+else ifneq ($(CONFIG_ARM64),y)
PF_CPPFLAGS_ARM := $(call cc-option,-marm,) \
$(call cc-option,-mno-thumb-interwork,)
endif