summaryrefslogtreecommitdiff
path: root/cpu/lh7a40x/config.mk
diff options
context:
space:
mode:
Diffstat (limited to 'cpu/lh7a40x/config.mk')
-rw-r--r--cpu/lh7a40x/config.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/cpu/lh7a40x/config.mk b/cpu/lh7a40x/config.mk
index cef7d26..5062ba2 100644
--- a/cpu/lh7a40x/config.mk
+++ b/cpu/lh7a40x/config.mk
@@ -22,6 +22,14 @@
#
PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \
- -mshort-load-bytes -msoft-float
+ -msoft-float
+
+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,))
-PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4