aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2013-05-06 16:45:51 +0000
committerJohn Crispin <john@openwrt.org>2013-05-06 16:45:51 +0000
commitc2c1f9ae73e80cab4be4cf23f92ba521bbb843f9 (patch)
treeb0c9e53aea49a90d012b5a9bb9b038951bd0a4af /rules.mk
parent849ff98669cbbcfc0236fd3b0a302325d81ed527 (diff)
downloadupstream-c2c1f9ae73e80cab4be4cf23f92ba521bbb843f9.tar.gz
upstream-c2c1f9ae73e80cab4be4cf23f92ba521bbb843f9.tar.bz2
upstream-c2c1f9ae73e80cab4be4cf23f92ba521bbb843f9.zip
rules.mk: add _dsp to ARCH_SUFFIX if the dsp ase is used
Signed-off-by: John Crispin <blogic@openwrt.org> SVN-Revision: 36566
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk6
1 files changed, 6 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index 2333f2aaf5..b9510057b6 100644
--- a/rules.mk
+++ b/rules.mk
@@ -63,6 +63,12 @@ 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_USE_MIPS16
TARGET_OPTIMIZATION+= -minterlink-mips16 -mips16
endif