summaryrefslogtreecommitdiffstats
path: root/cpu/arm720t/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/arm720t/config.mk')
-rw-r--r--cpu/arm720t/config.mk11
1 files changed, 9 insertions, 2 deletions
diff --git a/cpu/arm720t/config.mk b/cpu/arm720t/config.mk
index 2d79709055..641b91cd81 100644
--- a/cpu/arm720t/config.mk
+++ b/cpu/arm720t/config.mk
@@ -23,6 +23,13 @@
#
PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \
- -mshort-load-bytes -msoft-float
+ -msoft-float
-PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4 -mtune=arm7tdmi
+PLATFORM_CPPFLAGS += -march=armv4 -mtune=arm7tdmi
+# =========================================================================
+#
+# 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