]> git.sur5r.net Git - u-boot/blobdiff - arch/arm/cpu/arm926ejs/Makefile
ARM: uniphier: rework spl_boot_device() and related code
[u-boot] / arch / arm / cpu / arm926ejs / Makefile
index bd1ef8b7d46e38464f5a2e3a7c27e5e8679d14aa..fe78922170b8ffbd87bda7e9e6acdb3d9509b780 100644 (file)
@@ -14,4 +14,20 @@ extra-y      :=
 endif
 endif
 
-obj-y += $(if $(SOC),$(SOC)/)
+obj-$(CONFIG_ARMADA100) += armada100/
+obj-$(if $(filter lpc32xx,$(SOC)),y) += lpc32xx/
+obj-$(CONFIG_MX25) += mx25/
+obj-$(CONFIG_MX27) += mx27/
+obj-$(if $(filter mxs,$(SOC)),y) += mxs/
+obj-$(if $(filter spear,$(SOC)),y) += spear/
+
+# some files can only build in ARM or THUMB2, not THUMB1
+
+ifdef CONFIG_SYS_THUMB_BUILD
+ifndef CONFIG_HAS_THUMB2
+
+CFLAGS_cpu.o := -marm
+CFLAGS_cache.o := -marm
+
+endif
+endif