From a1a5f59ea358fc35805f003466c98f08f5299e9d Mon Sep 17 00:00:00 2001 From: Felix Fietkau Date: Wed, 14 Aug 2013 13:02:29 +0000 Subject: build: decouple the mips16 support flag from the toolchain Add the flags from package.mk instead, and leave libc and gcc unaffected. Signed-off-by: Felix Fietkau SVN-Revision: 37770 --- include/package.mk | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include') diff --git a/include/package.mk b/include/package.mk index a4f353b..02893b8 100644 --- a/include/package.mk +++ b/include/package.mk @@ -13,6 +13,7 @@ PKG_BUILD_DIR ?= $(BUILD_DIR)/$(PKG_NAME)$(if $(PKG_VERSION),-$(PKG_VERSION)) PKG_INSTALL_DIR ?= $(PKG_BUILD_DIR)/ipkg-install PKG_MD5SUM ?= unknown PKG_BUILD_PARALLEL ?= +PKG_USE_MIPS16 ?= 1 ifneq ($(CONFIG_PKG_BUILD_USE_JOBSERVER),) MAKE_J:=$(if $(MAKE_JOBSERVER),$(MAKE_JOBSERVER) -j) @@ -26,6 +27,12 @@ else PKG_JOBS?=$(if $(PKG_BUILD_PARALLEL)$(CONFIG_PKG_DEFAULT_PARALLEL),\ $(if $(CONFIG_PKG_BUILD_PARALLEL),$(MAKE_J),-j1),-j1) endif +ifdef CONFIG_HAS_MIPS16 + ifeq ($(strip $(PKG_USE_MIPS16)),1) + TARGET_ASFLAGS_DEFAULT = $(filter-out -mips16 -minterlink-mips16,$(TARGET_CFLAGS)) + TARGET_CFLAGS += -mips16 -minterlink-mips16 + endif +endif include $(INCLUDE_DIR)/prereq.mk include $(INCLUDE_DIR)/host.mk -- cgit v1.1