From: Michal Simek Date: Mon, 24 Sep 2012 07:25:55 +0000 (+0200) Subject: zynq: Move mno-unaligned-access to cpu folder X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0666cbf80e90fc6855315883fa4c8154c38fb3dd;p=thirdparty%2Fu-boot.git zynq: Move mno-unaligned-access to cpu folder Just clean up. Signed-off-by: Michal Simek --- diff --git a/arch/arm/cpu/armv7/zynq/config.mk b/arch/arm/cpu/armv7/zynq/config.mk index 541c73df6b3..29c8aa44daf 100644 --- a/arch/arm/cpu/armv7/zynq/config.mk +++ b/arch/arm/cpu/armv7/zynq/config.mk @@ -27,6 +27,11 @@ 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 diff --git a/config.mk b/config.mk index 617e3babd44..c3822a25c25 100644 --- a/config.mk +++ b/config.mk @@ -236,11 +236,6 @@ else CFLAGS := $(CPPFLAGS) -Wall -Wstrict-prototypes endif -# Xilinx, added to prevent unaligned accesses which started happening -# with GCC 4.5.2 tools - -CFLAGS += -mno-unaligned-access - CFLAGS_SSP := $(call cc-option,-fno-stack-protector) CFLAGS += $(CFLAGS_SSP) # Some toolchains enable security related warning flags by default,