Merge tag 'rpi-next-2020.07.2' of https://gitlab.denx.de/u-boot/custodians/u-boot...
[oweals/u-boot.git] / arch / arm / config.mk
index 02f61fcc3cba247fce802f55b9398d1af6496ae4..f25603109e0081d581ab703d1236a2e5660a8e5a 100644 (file)
@@ -1,9 +1,7 @@
+# SPDX-License-Identifier: GPL-2.0+
 #
 # (C) Copyright 2000-2002
 # Wolfgang Denk, DENX Software Engineering, wd@denx.de.
-#
-# SPDX-License-Identifier:     GPL-2.0+
-#
 
 ifndef CONFIG_STANDALONE_LOAD_ADDR
 ifneq ($(CONFIG_ARCH_OMAP2PLUS),)
@@ -23,9 +21,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__
@@ -136,10 +133,12 @@ endif
 # limit ourselves to the sections we want in the .bin.
 ifdef CONFIG_ARM64
 OBJCOPYFLAGS += -j .text -j .secure_text -j .secure_data -j .rodata -j .data \
-               -j .u_boot_list -j .rela.dyn -j .got -j .got.plt
+               -j .u_boot_list -j .rela.dyn -j .got -j .got.plt \
+               -j .binman_sym_table -j .text_rest
 else
 OBJCOPYFLAGS += -j .text -j .secure_text -j .secure_data -j .rodata -j .hash \
-               -j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn
+               -j .data -j .got -j .got.plt -j .u_boot_list -j .rel.dyn \
+               -j .binman_sym_table -j .text_rest
 endif
 
 # if a dtb section exists we always have to include it