From: Michal Simek Date: Mon, 24 Sep 2012 12:06:50 +0000 (+0200) Subject: zynq: optimize config.mk X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9bedb55d6f91d78658d88b5163d916dd43b10cb9;p=thirdparty%2Fu-boot.git zynq: optimize config.mk Signed-off-by: Michal Simek --- diff --git a/arch/arm/cpu/armv7/zynq/config.mk b/arch/arm/cpu/armv7/zynq/config.mk index 29c8aa44daf..dd6179cf4da 100644 --- a/arch/arm/cpu/armv7/zynq/config.mk +++ b/arch/arm/cpu/armv7/zynq/config.mk @@ -20,22 +20,10 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, # MA 02111-1307 USA # -PLATFORM_RELFLAGS += -fno-strict-aliasing -fno-common -ffixed-r8 \ - -msoft-float +PLATFORM_RELFLAGS += -fno-strict-aliasing +# Xilinx, added to prevent unaligned accesses which started happening # with GCC 4.5.2 tools +PLATFORM_RELFLAGS += -mno-unaligned-access -PLATFORM_CPPFLAGS += -march=armv7-a PLATFORM_CPPFLAGS += -I$(TOPDIR)/board/xilinx/common PLATFORM_CPPFLAGS += -I$(TOPDIR)/board/$(BOARDDIR) -# Xilinx, added to prevent unaligned accesses which started happening -# with GCC 4.5.2 tools - -PLATFORM_CPPFLAGS += -mno-unaligned-access - -# ========================================================================= -# -# 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,))