summaryrefslogtreecommitdiff
path: root/cpu/arm720t
diff options
context:
space:
mode:
authorWolfgang Denk <wd@pollux.denx.de>2005-10-04 22:38:24 +0200
committerWolfgang Denk <wd@pollux.denx.de>2005-10-04 22:38:24 +0200
commit1820d4c73b78ebe5d08921b0b6249c6f72e45215 (patch)
treea09e00683cd1636369c05556a94f14643a78f7e4 /cpu/arm720t
parent9a8d82fd3c7822effe3226f97f9ef1f643498c89 (diff)
downloadu-boot-imx-1820d4c73b78ebe5d08921b0b6249c6f72e45215.zip
u-boot-imx-1820d4c73b78ebe5d08921b0b6249c6f72e45215.tar.gz
u-boot-imx-1820d4c73b78ebe5d08921b0b6249c6f72e45215.tar.bz2
Make sure only supported compiler options are used
Import "cc-option" shell function from kernel and use it to get the correct ARM GCC options for individual CPUs Patch by Peter Pearse, 30 Jun 2005
Diffstat (limited to 'cpu/arm720t')
-rw-r--r--cpu/arm720t/config.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/cpu/arm720t/config.mk b/cpu/arm720t/config.mk
index 2d79709..e5dce9d 100644
--- a/cpu/arm720t/config.mk
+++ b/cpu/arm720t/config.mk
@@ -23,6 +23,14 @@
#
PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \
- -mshort-load-bytes -msoft-float
+ -msoft-float
+
+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,))
-PLATFORM_CPPFLAGS += -mapcs-32 -march=armv4 -mtune=arm7tdmi