]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - arch/arm/mach-orion5x/Makefile
arm: support Thumb-1 with CONFIG_SYS_THUMB_BUILD
[people/ms/u-boot.git] / arch / arm / mach-orion5x / Makefile
index 546ebcb52e589a55c2c7f002323f8b7405fa5b83..33dcad40f26d4fb21e81742493950cbb2e084853 100644 (file)
@@ -16,3 +16,13 @@ obj-y        += timer.o
 ifndef CONFIG_SKIP_LOWLEVEL_INIT
 obj-y  += lowlevel_init.o
 endif
+
+# some files can only build in ARM or THUMB2, not THUMB1
+
+ifdef CONFIG_SYS_THUMB_BUILD
+ifndef CONFIG_HAS_THUMB2
+
+CFLAGS_cpu.o := -marm
+
+endif
+endif