summaryrefslogtreecommitdiffstats
path: root/cpu/arm925t/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/arm925t/config.mk')
-rw-r--r--cpu/arm925t/config.mk9
1 files changed, 8 insertions, 1 deletions
diff --git a/cpu/arm925t/config.mk b/cpu/arm925t/config.mk
index 960df4c989..8db4adbe17 100644
--- a/cpu/arm925t/config.mk
+++ b/cpu/arm925t/config.mk
@@ -24,4 +24,11 @@
PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \
-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,))
OpenPOWER on IntegriCloud