Patchwork [U-Boot,1/2] pxa: use -mcpu=xscale compiler option

login
register
mail settings
Submitter Mike Dunn
Date June 21, 2013, 4:12 p.m.
Message ID <1371831148-22380-2-git-send-email-mikedunn@newsguy.com>
Download mbox | patch
Permalink /patch/253261/
State Accepted
Delegated to: Marek Vasut
Headers show

Comments

Mike Dunn - June 21, 2013, 4:12 p.m.
Pass '-mcpu=xscale' to the compiler instead of march and mtune.  This will cause
gcc to define the __XSCALE__ macro.

Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
---
 arch/arm/cpu/pxa/config.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
Marek Vasut - June 22, 2013, 2:29 a.m.
Dear Mike Dunn,

> Pass '-mcpu=xscale' to the compiler instead of march and mtune.  This will
> cause gcc to define the __XSCALE__ macro.
> 
> Signed-off-by: Mike Dunn <mikedunn@newsguy.com>
> ---
>  arch/arm/cpu/pxa/config.mk |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)
> 
> diff --git a/arch/arm/cpu/pxa/config.mk b/arch/arm/cpu/pxa/config.mk
> index 0bbe295..ea55859 100644
> --- a/arch/arm/cpu/pxa/config.mk
> +++ b/arch/arm/cpu/pxa/config.mk
> @@ -24,7 +24,7 @@
> 
>  PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
> 
> -PLATFORM_CPPFLAGS += -march=armv5te -mtune=xscale
> +PLATFORM_CPPFLAGS += -mcpu=xscale
>  #
> =========================================================================
> #
>  # Supply options according to compiler version

Acked-by: Marek Vasut <marex@denx.de>

Best regards,
Marek Vasut

Patch

diff --git a/arch/arm/cpu/pxa/config.mk b/arch/arm/cpu/pxa/config.mk
index 0bbe295..ea55859 100644
--- a/arch/arm/cpu/pxa/config.mk
+++ b/arch/arm/cpu/pxa/config.mk
@@ -24,7 +24,7 @@ 
 
 PLATFORM_RELFLAGS += -fno-common -ffixed-r8 -msoft-float
 
-PLATFORM_CPPFLAGS += -march=armv5te -mtune=xscale
+PLATFORM_CPPFLAGS += -mcpu=xscale
 # =========================================================================
 #
 # Supply options according to compiler version