]> git.ipfire.org Git - people/ms/u-boot.git/commitdiff
arm: Add Kconfig symbols used for Linux asm compatibility
authorPhil Edworthy <PHIL.EDWORTHY@renesas.com>
Thu, 1 Jun 2017 06:33:28 +0000 (07:33 +0100)
committerTom Rini <trini@konsulko.com>
Mon, 5 Jun 2017 18:13:13 +0000 (14:13 -0400)
Rather than change asm files that come from Linux, add the symbols
to Kconfig. Since one of the symbols is for thumb2 builds, make
CPU_V7M always select them.

Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
arch/arm/Kconfig
arch/arm/lib/Makefile

index deb7b246823a8a843f35c57470eeb83ebdcd2b09..dce41055619bae5ce28e97970513c69a7f203b73 100644 (file)
@@ -19,6 +19,15 @@ config HAS_VBAR
 config HAS_THUMB2
        bool
 
+# Used for compatibility with asm files copied from the kernel
+config ARM_ASM_UNIFIED
+       bool
+       default y
+
+# Used for compatibility with asm files copied from the kernel
+config THUMB2_KERNEL
+       bool
+
 # If set, the workarounds for these ARM errata are applied early during U-Boot
 # startup. Note that in general these options force the workarounds to be
 # applied; no CPU-type/version detection exists, unlike the similar options in
@@ -128,6 +137,7 @@ config CPU_V7
 config CPU_V7M
        bool
        select HAS_THUMB2
+       select THUMB2_KERNEL
        select SYS_CACHE_SHIFT_5
 
 config CPU_PXA
index f162c1428c856381a85b1ea26c6d4c698d34e08e..6e1c43693340f3a59b465f24be600b56aa837092 100644 (file)
@@ -72,8 +72,6 @@ ifneq (,$(findstring -mabi=aapcs-linux,$(PLATFORM_CPPFLAGS)))
 extra-y        += eabi_compat.o
 endif
 
-asflags-y += -DCONFIG_ARM_ASM_UNIFIED
-
 # some files can only build in ARM or THUMB2, not THUMB1
 
 ifdef CONFIG_$(SPL_)SYS_THUMB_BUILD