aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/eglibc
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2014-05-31 13:00:46 +0000
committerFelix Fietkau <nbd@openwrt.org>2014-05-31 13:00:46 +0000
commit0e9e8a141eb4139d37ba24b791965d6c2e5d04c2 (patch)
treefc2695186a79d38faa9f89b365fb91392539a253 /toolchain/eglibc
parent11462369af2f131451c3c3ca448cb998d98ee622 (diff)
downloadupstream-0e9e8a141eb4139d37ba24b791965d6c2e5d04c2.tar.gz
upstream-0e9e8a141eb4139d37ba24b791965d6c2e5d04c2.tar.bz2
upstream-0e9e8a141eb4139d37ba24b791965d6c2e5d04c2.zip
eglibc: add support for other mips64 ABI variants as well
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 40890
Diffstat (limited to 'toolchain/eglibc')
-rw-r--r--toolchain/eglibc/common.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/toolchain/eglibc/common.mk b/toolchain/eglibc/common.mk
index 81f3df5018..9ef92c6667 100644
--- a/toolchain/eglibc/common.mk
+++ b/toolchain/eglibc/common.mk
@@ -35,7 +35,15 @@ HOST_STAMP_BUILT:=$(CUR_BUILD_DIR)/.built
HOST_STAMP_INSTALLED:=$(TOOLCHAIN_DIR)/stamp/.eglibc_$(VARIANT)_installed
ifeq ($(ARCH),mips64)
- TARGET_CFLAGS += -mabi=64
+ ifdef CONFIG_MIPS64_ABI_N64
+ TARGET_CFLAGS += -mabi=64
+ endif
+ ifdef CONFIG_MIPS64_ABI_N32
+ TARGET_CFLAGS += -mabi=n32
+ endif
+ ifdef CONFIG_MIPS64_ABI_O32
+ TARGET_CFLAGS += -mabi=32
+ endif
endif
EGLIBC_CONFIGURE:= \