]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/mach-orion5x/Makefile
Move dram_init_banksize() to a common header
[u-boot] / arch / arm / mach-orion5x / Makefile
index 546ebcb52e589a55c2c7f002323f8b7405fa5b83..5249aa8844cf2bb1be6d7a54a98c772a67356754 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_$(SPL_)SYS_THUMB_BUILD
+ifndef CONFIG_HAS_THUMB2
+
+CFLAGS_cpu.o := -marm
+
+endif
+endif