summaryrefslogtreecommitdiff
path: root/cpu/arm946es/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/arm946es/config.mk')
-rw-r--r--cpu/arm946es/config.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/cpu/arm946es/config.mk b/cpu/arm946es/config.mk
index 81ca2885e..6190e16cb 100644
--- a/cpu/arm946es/config.mk
+++ b/cpu/arm946es/config.mk
@@ -25,3 +25,11 @@ PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \
-msoft-float
PLATFORM_CPPFLAGS += -march=armv4
+# =========================================================================
+#
+# Supply options according to compiler version
+#
+# =========================================================================
+PLATFORM_CPPFLAGS +=$(call cc-option,-mapcs-32,-mabi=apcs-gnu)
+PLATFORM_CPPFLAGS +=$(call cc-option,-mno-thumb-interwork,)
+PLATFORM_RELFLAGS +=$(call cc-option,-mshort-load-bytes,$(call cc-option,-malignment-traps,))