From: Albert ARIBAUD Date: Fri, 23 Oct 2015 16:06:42 +0000 (+0200) Subject: kirkwood: support CONFIG_SYS_THUMB_BUILD X-Git-Tag: v2016.01-rc1~79^2~9 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=e7de61b3e4a7335cd50f52b820d710f8bd50d684;p=oweals%2Fu-boot.git kirkwood: support CONFIG_SYS_THUMB_BUILD 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 --- diff --git a/arch/arm/mach-kirkwood/Makefile b/arch/arm/mach-kirkwood/Makefile index df4756e4bd..5abcf70b28 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