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
This commit is contained in:
parent
5f44d3ff18
commit
4adf55c2f5
3 changed files with 16 additions and 11 deletions
15
rules.mk
15
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue