X-Git-Url: https://git.archive.openwrt.org/?a=blobdiff_plain;f=rules.mk;h=b9510057b64c08a18729367cb406b1fd7689ec6d;hb=940006cfa099b38a749424f94e11ed5440128dfe;hp=56129917e453f32b7f7e5305435dd6fabbdfcd49;hpb=be92401dd332dde5e1a009a0bdd9c8ce01be71a1;p=openwrt.git diff --git a/rules.mk b/rules.mk index 56129917e4..b9510057b6 100644 --- a/rules.mk +++ b/rules.mk @@ -63,6 +63,12 @@ endif ifneq ($(filter -mips%r2,$(TARGET_OPTIMIZATION)),) ARCH_SUFFIX:=_r2 endif +ifneq ($(filter -mdsp,$(TARGET_OPTIMIZATION)),) + ARCH_SUFFIX:=$(ARCH_SUFFIX)_dsp +endif +ifneq ($(filter -mdspr2,$(TARGET_OPTIMIZATION)),) + ARCH_SUFFIX:=$(ARCH_SUFFIX)_dspr2 +endif ifdef CONFIG_USE_MIPS16 TARGET_OPTIMIZATION+= -minterlink-mips16 -mips16 endif @@ -73,6 +79,11 @@ endif ifdef CONFIG_HAS_SPE_FPU TARGET_SUFFIX:=$(TARGET_SUFFIX)spe endif +ifdef CONFIG_MIPS64_ABI + ifneq ($(CONFIG_MIPS64_ABI_O32),y) + ARCH_SUFFIX:=$(ARCH_SUFFIX)_$(subst ",,$(CONFIG_MIPS64_ABI)) + endif +endif DL_DIR:=$(if $(call qstrip,$(CONFIG_DOWNLOAD_FOLDER)),$(call qstrip,$(CONFIG_DOWNLOAD_FOLDER)),$(TOPDIR)/dl) BIN_DIR:=$(TOPDIR)/bin/$(BOARD) @@ -132,7 +143,7 @@ endif LIBRPC=-lrpc LIBRPC_DEPENDS=+librpc -ifneq ($(findstring $(ARCH) , mips64 x86_64 ),) +ifeq ($(CONFIG_ARCH_64BIT),y) LIB_SUFFIX:=64 endif