diff mbox

[U-Boot,v4,3/4] kirkwood: support CONFIG_SYS_THUMB_BUILD

Message ID 1436109227-10790-4-git-send-email-albert.u.boot@aribaud.net
State Superseded
Delegated to: Albert ARIBAUD
Headers show

Commit Message

Albert ARIBAUD July 5, 2015, 3:13 p.m. UTC
Kirkwood files cpu.c and cache.c cannot build in Thumb state;
force them in ARM state even under CONFIG_SYS_THUMB_BUILD.

Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
---

Changes in v4: None
New in v3

 arch/arm/mach-kirkwood/Makefile | 6 ++++++
 1 file changed, 6 insertions(+)

Comments

Albert ARIBAUD July 6, 2015, 11:49 a.m. UTC | #1
On Sun,  5 Jul 2015 17:13:46 +0200, Albert ARIBAUD <albert.u.boot@aribaud.net> wrote:
> Kirkwood files cpu.c and cache.c cannot build in Thumb state;
> force them in ARM state even under CONFIG_SYS_THUMB_BUILD.
> 
> Signed-off-by: Albert ARIBAUD <albert.u.boot@aribaud.net>
> ---
> 
> Changes in v4: None
> New in v3
> 
>  arch/arm/mach-kirkwood/Makefile | 6 ++++++
>  1 file changed, 6 insertions(+)
> 
> diff --git a/arch/arm/mach-kirkwood/Makefile b/arch/arm/mach-kirkwood/Makefile
> index df4756e..5abcf70 100644
> --- a/arch/arm/mach-kirkwood/Makefile
> +++ b/arch/arm/mach-kirkwood/Makefile
> @@ -9,3 +9,9 @@
>  obj-y	= cpu.o
>  obj-y	+= cache.o
>  obj-y	+= mpp.o
> +
> +# cpu.o and cache.o contain CP15 instructions which cannot be run in
> +# Thumb state, so build them for ARM state even with CONFIG_SYS_THUMB_BUILD
> +
> +CFLAGS_cpu.o := -marm
> +CFLAGS_cache.o := -marm
> -- 
> 2.1.0
> 

Applied to u-boot-arm/master.

Amicalement,
diff mbox

Patch

diff --git a/arch/arm/mach-kirkwood/Makefile b/arch/arm/mach-kirkwood/Makefile
index df4756e..5abcf70 100644
--- a/arch/arm/mach-kirkwood/Makefile
+++ b/arch/arm/mach-kirkwood/Makefile
@@ -9,3 +9,9 @@ 
 obj-y	= cpu.o
 obj-y	+= cache.o
 obj-y	+= mpp.o
+
+# cpu.o and cache.o contain CP15 instructions which cannot be run in
+# Thumb state, so build them for ARM state even with CONFIG_SYS_THUMB_BUILD
+
+CFLAGS_cpu.o := -marm
+CFLAGS_cache.o := -marm