]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - cpu/ixp/config.mk
Make sure only supported compiler options are used
[karo-tx-uboot.git] / cpu / ixp / config.mk
index 667adfc25d05e292bed0a6cfe68be9f0c48a0ad7..2f735c552cc7d7aa956433bb5cd08d9c5da22c30 100644 (file)
 BIG_ENDIAN = y
 
 PLATFORM_RELFLAGS += -fno-strict-aliasing  -fno-common -ffixed-r8 \
-       -mshort-load-bytes -msoft-float -mbig-endian
+       -msoft-float -mbig-endian
+
+PLATFORM_CPPFLAGS += -mbig-endian -march=armv4 -mtune=strongarm1100
+# =========================================================================
+#
+# 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,))
 
-PLATFORM_CPPFLAGS += -mbig-endian -mapcs-32 -march=armv4 -mtune=strongarm1100