]> git.sur5r.net Git - u-boot/blobdiff - examples/standalone/Makefile
arm: support Thumb-1 with CONFIG_SYS_THUMB_BUILD
[u-boot] / examples / standalone / Makefile
index 0863a8cda205b14d54584d73f22cf3ee8de15e72..5a6ae0013c1db3963e73cd6b54bed9d0f21767e0 100644 (file)
@@ -73,3 +73,13 @@ $(obj)/%.srec: $(obj)/% FORCE
 $(obj)/%.bin: OBJCOPYFLAGS := -O binary
 $(obj)/%.bin: $(obj)/% FORCE
        $(call if_changed,objcopy)
+
+# some files can only build in ARM or THUMB2, not THUMB1
+
+ifdef CONFIG_SYS_THUMB_BUILD
+ifndef CONFIG_HAS_THUMB2
+
+CFLAGS_stubs.o := -marm
+
+endif
+endif