diff options
author | Imre Kaloz <kaloz@openwrt.org> | 2011-02-25 16:52:25 +0000 |
---|---|---|
committer | Imre Kaloz <kaloz@openwrt.org> | 2011-02-25 16:52:25 +0000 |
commit | a3989e3dbd80248789ee379538e6de22c1d47d0e (patch) | |
tree | d3dd71642bc0aec3dd68339e121b0537762962bd /rules.mk | |
parent | 5a8a9a0e23f1467eaeaef475a8bea0542e9ecad8 (diff) | |
download | upstream-a3989e3dbd80248789ee379538e6de22c1d47d0e.tar.gz upstream-a3989e3dbd80248789ee379538e6de22c1d47d0e.tar.bz2 upstream-a3989e3dbd80248789ee379538e6de22c1d47d0e.zip |
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@scram.de>
SVN-Revision: 25705
Diffstat (limited to 'rules.mk')
-rw-r--r-- | rules.mk | 18 |
1 files changed, 6 insertions, 12 deletions
@@ -54,21 +54,15 @@ endif HOST_FPIC:=-fPIC ARCH_SUFFIX:= +GCC_ARCH:= + +ifneq ($(filter -march=armv%,$(TARGET_OPTIMIZATION)),) + ARCH_SUFFIX:=_$(patsubst -march=arm%,%,$(filter -march=armv%,$(TARGET_OPTIMIZATION))) + GCC_ARCH:=$(patsubst -march=%,%,$(filter -march=armv%,$(TARGET_OPTIMIZATION))) +endif ifneq ($(findstring -mips32r2,$(TARGET_OPTIMIZATION)),) ARCH_SUFFIX:=_r2 endif -ifneq ($(findstring -march=armv4,$(TARGET_OPTIMIZATION)),) - ARCH_SUFFIX:=_v4 -endif -ifneq ($(findstring -march=armv4t,$(TARGET_OPTIMIZATION)),) - ARCH_SUFFIX:=_v4t -endif -ifneq ($(findstring -march=armv5t,$(TARGET_OPTIMIZATION)),) - ARCH_SUFFIX:=_v5t -endif -ifneq ($(findstring -march=armv5te,$(TARGET_OPTIMIZATION)),) - ARCH_SUFFIX:=_v5te -endif ifdef CONFIG_HAS_SPE_FPU TARGET_SUFFIX:=$(TARGET_SUFFIX)spe endif |