aboutsummaryrefslogtreecommitdiffstats
path: root/rules.mk
diff options
context:
space:
mode:
authorFlorian Fainelli <florian@openwrt.org>2013-04-05 12:35:56 +0000
committerFlorian Fainelli <florian@openwrt.org>2013-04-05 12:35:56 +0000
commitf04de2f5d279e7ba2b15a41a9765b3cad45deec6 (patch)
treecc5c433e7aec09e82e361f9ee955bad18514aa33 /rules.mk
parenta5e7050033445498293c13b4b8c6831684ad7298 (diff)
downloadupstream-f04de2f5d279e7ba2b15a41a9765b3cad45deec6.tar.gz
upstream-f04de2f5d279e7ba2b15a41a9765b3cad45deec6.tar.bz2
upstream-f04de2f5d279e7ba2b15a41a9765b3cad45deec6.zip
rules.mk: MIPS16 builds get a different toolchain
To be safe, build "m16" into the toolchain and target architecture the same way mips32r2 does: target-mips_r2_m16_uClibc-0.9.33.2 toolchain-mips_r2_m16_gcc-4.6-linaro_uClibc-0.9.33.2 Signed-off-by: Jay Carlson <nop@nop.com> Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36198 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'rules.mk')
-rw-r--r--rules.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/rules.mk b/rules.mk
index ae7a8407e3..59ab50b922 100644
--- a/rules.mk
+++ b/rules.mk
@@ -65,6 +65,7 @@ ifneq ($(filter -mips%r2,$(TARGET_OPTIMIZATION)),)
endif
ifneq ($(findstring -mips16,$(TARGET_OPTIMIZATION)),)
TARGET_ASFLAGS_OVERRIDE:=-mno-mips16
+ ARCH_SUFFIX:= $(ARCH_SUFFIX)_m16
endif
ifdef CONFIG_HAS_SPE_FPU
TARGET_SUFFIX:=$(TARGET_SUFFIX)spe