]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - cpu/lh7a40x/config.mk
Update ARM Integrator boards:
[people/ms/u-boot.git] / cpu / lh7a40x / config.mk
index cef7d26f1cb48b8c84642a58a80d050d3e3a756b..10e755bebe1ba1cadee3c5fba3e9a1e1003dba0c 100644 (file)
 #
 
 PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-       -mshort-load-bytes -msoft-float
+       -msoft-float
 
-PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4
+PLATFORM_CPPFLAGS += -march=armv4
+# =========================================================================
+#
+# Supply options according to compiler version
+#
+# ========================================================================
+PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)
+PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))