toolchain/uClibc: handle different MIPS64 ABIs
Signed-off-by: Florian Fainelli <florian@openwrt.org> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@36207 3c298f89-4303-0410-b956-a3cf2f4a3e73master
parent
6ac8d169bd
commit
c6f7a359ec
|
@ -42,7 +42,8 @@ GEN_CONFIG=$(SCRIPT_DIR)/kconfig.pl -n \
|
||||||
$(if $(CONFIG_UCLIBC_ENABLE_DEBUG),$(if $(wildcard $(CONFIG_DIR)/debug),'+' $(CONFIG_DIR)/debug)) \
|
$(if $(CONFIG_UCLIBC_ENABLE_DEBUG),$(if $(wildcard $(CONFIG_DIR)/debug),'+' $(CONFIG_DIR)/debug)) \
|
||||||
$(CONFIG_DIR)/$(ARCH)$(strip \
|
$(CONFIG_DIR)/$(ARCH)$(strip \
|
||||||
$(if $(wildcard $(CONFIG_DIR)/$(ARCH).$(BOARD)),.$(BOARD), \
|
$(if $(wildcard $(CONFIG_DIR)/$(ARCH).$(BOARD)),.$(BOARD), \
|
||||||
$(if $(CONFIG_HAS_SPE_FPU),$(if $(wildcard $(CONFIG_DIR)/$(ARCH).e500),.e500))))
|
$(if $(CONFIG_MIPS64_ABI),.$(subst ",,$(CONFIG_MIPS64_ABI)), \
|
||||||
|
$(if $(CONFIG_HAS_SPE_FPU),$(if $(wildcard $(CONFIG_DIR)/$(ARCH).e500),.e500)))))
|
||||||
|
|
||||||
TARGET_CFLAGS := $(filter-out -mips16,$(TARGET_CFLAGS))
|
TARGET_CFLAGS := $(filter-out -mips16,$(TARGET_CFLAGS))
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
ARCH_ANY_ENDIAN=y
|
||||||
|
ARCH_BIG_ENDIAN=y
|
||||||
|
ARCH_CFLAGS="-mno-split-addresses"
|
||||||
|
ARCH_WANTS_BIG_ENDIAN=y
|
||||||
|
# CONFIG_MIPS_ISA_1 is not set
|
||||||
|
# CONFIG_MIPS_ISA_2 is not set
|
||||||
|
# CONFIG_MIPS_ISA_3 is not set
|
||||||
|
# CONFIG_MIPS_ISA_4 is not set
|
||||||
|
# CONFIG_MIPS_ISA_MIPS32 is not set
|
||||||
|
# CONFIG_MIPS_ISA_MIPS32R2 is not set
|
||||||
|
CONFIG_MIPS_ISA_MIPS64=y
|
||||||
|
# CONFIG_MIPS_N32_ABI is not set
|
||||||
|
# CONFIG_MIPS_N64_ABI is not set
|
||||||
|
CONFIG_MIPS_O32_ABI=y
|
||||||
|
TARGET_ARCH="mips"
|
||||||
|
TARGET_mips=y
|
||||||
|
TARGET_SUBARCH="mips64"
|
||||||
|
UCLIBC_HAS_FPU=y
|
|
@ -0,0 +1,18 @@
|
||||||
|
ARCH_ANY_ENDIAN=y
|
||||||
|
ARCH_BIG_ENDIAN=y
|
||||||
|
ARCH_CFLAGS="-mno-split-addresses"
|
||||||
|
ARCH_WANTS_BIG_ENDIAN=y
|
||||||
|
# CONFIG_MIPS_ISA_1 is not set
|
||||||
|
# CONFIG_MIPS_ISA_2 is not set
|
||||||
|
# CONFIG_MIPS_ISA_3 is not set
|
||||||
|
# CONFIG_MIPS_ISA_4 is not set
|
||||||
|
# CONFIG_MIPS_ISA_MIPS32 is not set
|
||||||
|
# CONFIG_MIPS_ISA_MIPS32R2 is not set
|
||||||
|
CONFIG_MIPS_ISA_MIPS64=y
|
||||||
|
# CONFIG_MIPS_N32_ABI is not set
|
||||||
|
CONFIG_MIPS_N64_ABI=y
|
||||||
|
# CONFIG_MIPS_O32_ABI is not set
|
||||||
|
TARGET_ARCH="mips"
|
||||||
|
TARGET_mips=y
|
||||||
|
TARGET_SUBARCH="mips64"
|
||||||
|
UCLIBC_HAS_FPU=y
|
|
@ -0,0 +1,18 @@
|
||||||
|
ARCH_ANY_ENDIAN=y
|
||||||
|
ARCH_BIG_ENDIAN=y
|
||||||
|
ARCH_CFLAGS="-mno-split-addresses"
|
||||||
|
ARCH_WANTS_BIG_ENDIAN=y
|
||||||
|
# CONFIG_MIPS_ISA_1 is not set
|
||||||
|
# CONFIG_MIPS_ISA_2 is not set
|
||||||
|
# CONFIG_MIPS_ISA_3 is not set
|
||||||
|
# CONFIG_MIPS_ISA_4 is not set
|
||||||
|
# CONFIG_MIPS_ISA_MIPS32 is not set
|
||||||
|
# CONFIG_MIPS_ISA_MIPS32R2 is not set
|
||||||
|
CONFIG_MIPS_ISA_MIPS64=y
|
||||||
|
CONFIG_MIPS_N32_ABI=y
|
||||||
|
# CONFIG_MIPS_N64_ABI is not set
|
||||||
|
# CONFIG_MIPS_O32_ABI is not set
|
||||||
|
TARGET_ARCH="mips"
|
||||||
|
TARGET_mips=y
|
||||||
|
TARGET_SUBARCH="mips64"
|
||||||
|
UCLIBC_HAS_FPU=y
|
|
@ -0,0 +1,18 @@
|
||||||
|
ARCH_ANY_ENDIAN=y
|
||||||
|
ARCH_CFLAGS="-mno-split-addresses"
|
||||||
|
ARCH_LITTLE_ENDIAN=y
|
||||||
|
ARCH_WANTS_LITTLE_ENDIAN=y
|
||||||
|
# CONFIG_MIPS_ISA_1 is not set
|
||||||
|
# CONFIG_MIPS_ISA_2 is not set
|
||||||
|
# CONFIG_MIPS_ISA_3 is not set
|
||||||
|
# CONFIG_MIPS_ISA_4 is not set
|
||||||
|
# CONFIG_MIPS_ISA_MIPS32 is not set
|
||||||
|
# CONFIG_MIPS_ISA_MIPS32R2 is not set
|
||||||
|
CONFIG_MIPS_ISA_MIPS64=y
|
||||||
|
# CONFIG_MIPS_N32_ABI is not set
|
||||||
|
# CONFIG_MIPS_N64_ABI is not set
|
||||||
|
CONFIG_MIPS_O32_ABI=y
|
||||||
|
TARGET_ARCH="mips"
|
||||||
|
TARGET_mips=y
|
||||||
|
TARGET_SUBARCH="mips64"
|
||||||
|
UCLIBC_HAS_FPU=y
|
|
@ -0,0 +1,18 @@
|
||||||
|
ARCH_ANY_ENDIAN=y
|
||||||
|
ARCH_CFLAGS="-mno-split-addresses"
|
||||||
|
ARCH_LITTLE_ENDIAN=y
|
||||||
|
ARCH_WANTS_LITTLE_ENDIAN=y
|
||||||
|
# CONFIG_MIPS_ISA_1 is not set
|
||||||
|
# CONFIG_MIPS_ISA_2 is not set
|
||||||
|
# CONFIG_MIPS_ISA_3 is not set
|
||||||
|
# CONFIG_MIPS_ISA_4 is not set
|
||||||
|
# CONFIG_MIPS_ISA_MIPS32 is not set
|
||||||
|
# CONFIG_MIPS_ISA_MIPS32R2 is not set
|
||||||
|
CONFIG_MIPS_ISA_MIPS64=y
|
||||||
|
# CONFIG_MIPS_N32_ABI is not set
|
||||||
|
CONFIG_MIPS_N64_ABI=y
|
||||||
|
# CONFIG_MIPS_O32_ABI is not set
|
||||||
|
TARGET_ARCH="mips"
|
||||||
|
TARGET_mips=y
|
||||||
|
TARGET_SUBARCH="mips64"
|
||||||
|
UCLIBC_HAS_FPU=y
|
|
@ -0,0 +1,18 @@
|
||||||
|
ARCH_ANY_ENDIAN=y
|
||||||
|
ARCH_CFLAGS="-mno-split-addresses"
|
||||||
|
ARCH_LITTLE_ENDIAN=y
|
||||||
|
ARCH_WANTS_LITTLE_ENDIAN=y
|
||||||
|
# CONFIG_MIPS_ISA_1 is not set
|
||||||
|
# CONFIG_MIPS_ISA_2 is not set
|
||||||
|
# CONFIG_MIPS_ISA_3 is not set
|
||||||
|
# CONFIG_MIPS_ISA_4 is not set
|
||||||
|
# CONFIG_MIPS_ISA_MIPS32 is not set
|
||||||
|
# CONFIG_MIPS_ISA_MIPS32R2 is not set
|
||||||
|
CONFIG_MIPS_ISA_MIPS64=y
|
||||||
|
CONFIG_MIPS_N32_ABI=y
|
||||||
|
# CONFIG_MIPS_N64_ABI is not set
|
||||||
|
# CONFIG_MIPS_O32_ABI is not set
|
||||||
|
TARGET_ARCH="mips"
|
||||||
|
TARGET_mips=y
|
||||||
|
TARGET_SUBARCH="mips64"
|
||||||
|
UCLIBC_HAS_FPU=y
|
Loading…
Reference in New Issue