Changeset 25705


Ignore:
Timestamp:
2011-02-25T17:52:25+01:00 (7 years ago)
Author:
kaloz
Message:

We use different toolchain directories for different
ARM archs, so we should set the default arch of gcc
to reflect this.

This enables EABI support for armv4 CPUs.

Signed-off-by: Jochen Friedrich <jochen@…>

Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/rules.mk

    r25497 r25705  
    5555 
    5656ARCH_SUFFIX:= 
     57GCC_ARCH:= 
     58 
     59ifneq ($(filter -march=armv%,$(TARGET_OPTIMIZATION)),) 
     60  ARCH_SUFFIX:=_$(patsubst -march=arm%,%,$(filter -march=armv%,$(TARGET_OPTIMIZATION))) 
     61  GCC_ARCH:=$(patsubst -march=%,%,$(filter -march=armv%,$(TARGET_OPTIMIZATION))) 
     62endif 
    5763ifneq ($(findstring -mips32r2,$(TARGET_OPTIMIZATION)),) 
    5864  ARCH_SUFFIX:=_r2 
    59 endif 
    60 ifneq ($(findstring -march=armv4,$(TARGET_OPTIMIZATION)),) 
    61   ARCH_SUFFIX:=_v4 
    62 endif 
    63 ifneq ($(findstring -march=armv4t,$(TARGET_OPTIMIZATION)),) 
    64   ARCH_SUFFIX:=_v4t 
    65 endif 
    66 ifneq ($(findstring -march=armv5t,$(TARGET_OPTIMIZATION)),) 
    67   ARCH_SUFFIX:=_v5t 
    68 endif 
    69 ifneq ($(findstring -march=armv5te,$(TARGET_OPTIMIZATION)),) 
    70   ARCH_SUFFIX:=_v5te 
    7165endif 
    7266ifdef CONFIG_HAS_SPE_FPU 
  • trunk/toolchain/Config.in

    r24859 r25705  
    9191        depends arm||armeb 
    9292        prompt "Enable EABI support" if TOOLCHAINOPTS 
    93         default n if TARGET_gemini 
    94         default n if TARGET_cns21xx 
    9593        default y 
    9694        help 
  • trunk/toolchain/gcc/common.mk

    r25515 r25705  
    168168endif 
    169169 
     170ifneq ($(GCC_ARCH),) 
     171  GCC_CONFIGURE+= --with-arch=$(GCC_ARCH) 
     172endif 
     173 
    170174GCC_MAKE:= \ 
    171175        export SHELL="$(BASH)"; \ 
Note: See TracChangeset for help on using the changeset viewer.