From 1820d4c73b78ebe5d08921b0b6249c6f72e45215 Mon Sep 17 00:00:00 2001 From: Wolfgang Denk Date: Tue, 4 Oct 2005 22:38:24 +0200 Subject: 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 --- cpu/sa1100/config.mk | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'cpu/sa1100') diff --git a/cpu/sa1100/config.mk b/cpu/sa1100/config.mk index c40dcf861..3bed8503a 100644 --- a/cpu/sa1100/config.mk +++ b/cpu/sa1100/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=strongarm1100 +# ========================================================================= +# +# 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=strongarm1100 -- cgit v1.2.3