aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-09-26 17:53:32 +0000
committerFelix Fietkau <nbd@openwrt.org>2013-09-26 17:53:32 +0000
commitbe6662ecdf8af0de61a610f71bd62e3157800bcb (patch)
tree849fdb2994ed9fc322536f52c93263674209798c /rules.mk
parent9f5f79d806bbdc3c834f9c05e26b99e82519a4c9 (diff)
downloadupstream-be6662ecdf8af0de61a610f71bd62e3157800bcb.tar.gz
upstream-be6662ecdf8af0de61a610f71bd62e3157800bcb.tar.bz2
upstream-be6662ecdf8af0de61a610f71bd62e3157800bcb.zip
build: include the cpu type as part of the toolchain/target directory name
Signed-off-by: Felix Fietkau <nbd@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@38214 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk15
1 files changed, 4 insertions, 11 deletions
diff --git a/rules.mk b/rules.mk
index 14171a0d30..a3efb7db4f 100644
--- a/rules.mk
+++ b/rules.mk
@@ -54,22 +54,15 @@ endif
HOST_FPIC:=-fPIC
-ARCH_SUFFIX:=
+ARCH_SUFFIX:=$(call qstrip,$(CONFIG_CPU_TYPE))
GCC_ARCH:=
+ifneq ($(ARCH_SUFFIX),)
+ ARCH_SUFFIX:=_$(ARCH_SUFFIX)
+endif
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 ($(filter -mips%r2,$(TARGET_OPTIMIZATION)),)
- ARCH_SUFFIX:=_r2
-endif
-ifneq ($(filter -mdsp,$(TARGET_OPTIMIZATION)),)
- ARCH_SUFFIX:=$(ARCH_SUFFIX)_dsp
-endif
-ifneq ($(filter -mdspr2,$(TARGET_OPTIMIZATION)),)
- ARCH_SUFFIX:=$(ARCH_SUFFIX)_dspr2
-endif
ifdef CONFIG_HAS_SPE_FPU
TARGET_SUFFIX:=$(TARGET_SUFFIX)spe
endif