summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-kirkwood
diff options
context:
space:
mode:
authorAlbert ARIBAUD <albert.u.boot@aribaud.net>2015-10-23 18:06:42 +0200
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2015-11-10 15:04:01 +0100
commite7de61b3e4a7335cd50f52b820d710f8bd50d684 (patch)
tree1b436a8ca9a82f8b130501969f1e2da0f1a04fe4 /arch/arm/mach-kirkwood
parent44b0e47ac0ee4c725ef3581608ac10c3648ba415 (diff)
downloadblackbird-obmc-uboot-e7de61b3e4a7335cd50f52b820d710f8bd50d684.tar.gz
blackbird-obmc-uboot-e7de61b3e4a7335cd50f52b820d710f8bd50d684.zip
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 <albert.u.boot@aribaud.net>
Diffstat (limited to 'arch/arm/mach-kirkwood')
-rw-r--r--arch/arm/mach-kirkwood/Makefile6
1 files changed, 6 insertions, 0 deletions
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
OpenPOWER on IntegriCloud