From 9e1d2c15d905cf210760d9d4f654f91a5d6c5f42 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Fri, 5 Apr 2013 12:36:12 +0000 Subject: buildroot: allow enabling MIPS16 user-space build Enabling MIPS16 is made conditional on advertising the "mips16" feature for a specific target since it requires support from the CPU (HAS_MIPS16) and the actual use of MIPS16 for building packages (USE_MIPS16). Signed-off-by: Florian Fainelli SVN-Revision: 36202 --- rules.mk | 3 +++ 1 file changed, 3 insertions(+) (limited to 'rules.mk') diff --git a/rules.mk b/rules.mk index 59ab50b..5612991 100644 --- a/rules.mk +++ b/rules.mk @@ -63,6 +63,9 @@ endif ifneq ($(filter -mips%r2,$(TARGET_OPTIMIZATION)),) ARCH_SUFFIX:=_r2 endif +ifdef CONFIG_USE_MIPS16 + TARGET_OPTIMIZATION+= -minterlink-mips16 -mips16 +endif ifneq ($(findstring -mips16,$(TARGET_OPTIMIZATION)),) TARGET_ASFLAGS_OVERRIDE:=-mno-mips16 ARCH_SUFFIX:= $(ARCH_SUFFIX)_m16 -- cgit v1.1