summaryrefslogtreecommitdiff
path: root/arch/arm/config.mk
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2018-04-23 02:15:03 +0300
committerTom Rini <trini@konsulko.com>2018-04-27 21:54:49 +0300
commit3b6407b8ed95594de6ee4fddd3239e8841b4d2d6 (patch)
tree1d63fdae996ec5b9b230e65674a086de3794a10d /arch/arm/config.mk
parent4760fe26c72563d284cd620421dc8196006ce5e3 (diff)
downloadu-boot-3b6407b8ed95594de6ee4fddd3239e8841b4d2d6.tar.xz
clang: Update documentation
As of clang-5.0, things have changed a bit. First, we cannot automatically guess -target values as if we do not pass one with CC then cc-option will fail. Second, to disable movt/movw relocations the argument has become -mno-movt. Related to the target part, we cannot use arm-none-eabi as that ends up being too generic of an ARM target for things like say rpi_3_32b to work. Signed-off-by: Tom Rini <trini@konsulko.com>
Diffstat (limited to 'arch/arm/config.mk')
-rw-r--r--arch/arm/config.mk5
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/config.mk b/arch/arm/config.mk
index 9c213b897c..b448ed0b3e 100644
--- a/arch/arm/config.mk
+++ b/arch/arm/config.mk
@@ -23,9 +23,8 @@ PLATFORM_RELFLAGS += $(call cc-option, -msoft-float) \
$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))
# LLVM support
-LLVMS_RELFLAGS := $(call cc-option,-mllvm,) \
- $(call cc-option,-target arm-none-eabi,) \
- $(call cc-option,-arm-use-movt=0,)
+LLVM_RELFLAGS := $(call cc-option,-mllvm,) \
+ $(call cc-option,-mno-movt,)
PLATFORM_RELFLAGS += $(LLVM_RELFLAGS)
PLATFORM_CPPFLAGS += -D__ARM__