|
|
|
@ -70,13 +70,6 @@ endif |
|
|
|
|
ifneq ($(filter -mdspr2,$(TARGET_OPTIMIZATION)),) |
|
|
|
|
ARCH_SUFFIX:=$(ARCH_SUFFIX)_dspr2
|
|
|
|
|
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
|
|
|
|
|
endif |
|
|
|
|
ifdef CONFIG_HAS_SPE_FPU |
|
|
|
|
TARGET_SUFFIX:=$(TARGET_SUFFIX)spe
|
|
|
|
|
endif |
|
|
|
@ -130,7 +123,8 @@ PKG_INFO_DIR := $(STAGING_DIR)/pkginfo |
|
|
|
|
TARGET_PATH:=$(STAGING_DIR_HOST)/bin:$(subst $(space),:,$(filter-out .,$(filter-out ./,$(subst :,$(space),$(PATH)))))
|
|
|
|
|
TARGET_CFLAGS:=$(TARGET_OPTIMIZATION)$(if $(CONFIG_DEBUG), -g3) $(EXTRA_OPTIMIZATION)
|
|
|
|
|
TARGET_CXXFLAGS = $(TARGET_CFLAGS)
|
|
|
|
|
TARGET_ASFLAGS = $(TARGET_CFLAGS) $(TARGET_ASFLAGS_OVERRIDE)
|
|
|
|
|
TARGET_ASFLAGS_DEFAULT = $(TARGET_CFLAGS)
|
|
|
|
|
TARGET_ASFLAGS = $(TARGET_ASFLAGS_DEFAULT)
|
|
|
|
|
TARGET_CPPFLAGS:=-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include
|
|
|
|
|
TARGET_LDFLAGS:=-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib
|
|
|
|
|
ifneq ($(CONFIG_EXTERNAL_TOOLCHAIN),) |
|
|
|
|