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 <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36202 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
6d9472818e
commit
be92401dd3
4 changed files with 19 additions and 0 deletions
3
rules.mk
3
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue