From: Aneesh V Date: Mon, 6 Feb 2012 17:07:27 +0530 Subject: [U-Boot] [RFC PATCH 3/4] OMAP3+: Use -march=armv7-a and thereby enable Thumb-2 In-Reply-To: <1328528248-20872-1-git-send-email-aneesh@ti.com> References: <1328528248-20872-1-git-send-email-aneesh@ti.com> Message-ID: <1328528248-20872-4-git-send-email-aneesh@ti.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Enable -march=armv7-a for OMAP3+ platforms. This in turn results in Thumb-2 code generated for these platforms if CONFIG_SYS_THUMB_BUILD is enabled. Signed-off-by: Aneesh V --- arch/arm/cpu/armv7/omap-common/config.mk | 1 - arch/arm/cpu/armv7/omap3/config.mk | 2 ++ arch/arm/cpu/armv7/omap4/config.mk | 2 ++ 3 files changed, 4 insertions(+), 1 deletions(-) diff --git a/arch/arm/cpu/armv7/omap-common/config.mk b/arch/arm/cpu/armv7/omap-common/config.mk index c400dcc..2a1a5f3 100644 --- a/arch/arm/cpu/armv7/omap-common/config.mk +++ b/arch/arm/cpu/armv7/omap-common/config.mk @@ -23,7 +23,6 @@ PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float # Make ARMv5 to allow more compilers to work, even though its v7a. -PLATFORM_CPPFLAGS += -march=armv5 # ========================================================================= # # Supply options according to compiler version diff --git a/arch/arm/cpu/armv7/omap3/config.mk b/arch/arm/cpu/armv7/omap3/config.mk index b34fa64..4421fe2 100644 --- a/arch/arm/cpu/armv7/omap3/config.mk +++ b/arch/arm/cpu/armv7/omap3/config.mk @@ -28,3 +28,5 @@ ALL-y += $(OBJTREE)/MLO else ALL-y += $(obj)u-boot.img endif + +PLATFORM_CPPFLAGS += $(call cc-option, -march=armv7-a, -march=armv5) diff --git a/arch/arm/cpu/armv7/omap4/config.mk b/arch/arm/cpu/armv7/omap4/config.mk index b34fa64..4421fe2 100644 --- a/arch/arm/cpu/armv7/omap4/config.mk +++ b/arch/arm/cpu/armv7/omap4/config.mk @@ -28,3 +28,5 @@ ALL-y += $(OBJTREE)/MLO else ALL-y += $(obj)u-boot.img endif + +PLATFORM_CPPFLAGS += $(call cc-option, -march=armv7-a, -march=armv5) -- 1.7.1