diff options
author | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2012-09-21 17:25:45 +0200 |
---|---|---|
committer | Waldemar Brodkorb <mail@waldemar-brodkorb.de> | 2012-09-21 17:25:45 +0200 |
commit | 1b211f269a05f8a67b2c24f26bd13f04f71da042 (patch) | |
tree | f559f0323f4a499686e1b9ce7e31cfc79f84116e | |
parent | 26773187303e8f2fde86d2541c78d1ce811992e6 (diff) |
set correct ABI in uClibc
-rw-r--r-- | toolchain/uClibc/Makefile | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/toolchain/uClibc/Makefile b/toolchain/uClibc/Makefile index 91e3fb654..9ac0a6b8f 100644 --- a/toolchain/uClibc/Makefile +++ b/toolchain/uClibc/Makefile @@ -42,6 +42,21 @@ $(WRKBUILD)/.headers: $(SED) 's,^CROSS_COMPILE=.*,CROSS_COMPILE=$(TARGET_CROSS),g' $(WRKBUILD)/Rules.mak sed -e 's^KERNEL_HEADERS.*$$KERNEL_HEADERS=\"${STAGING_TARGET_DIR}/usr/include\"' \ $(TOPDIR)/target/$(ADK_TARGET_ARCH)/$(UCLIBCCFG) >${WRKBUILD}/.config +ifeq ($(ADK_TARGET_ABI_N64),y) + $(SED) 's/.*\(CONFIG_MIPS_N64_ABI\).*/\1=y/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_MIPS_O32_ABI\).*/\1 is not set/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_MIPS_N32_ABI\).*/\1 is not set/' ${WRKBUILD}/.config +endif +ifeq ($(ADK_TARGET_ABI_N32),y) + $(SED) 's/.*\(CONFIG_MIPS_N32_ABI\).*/\1=y/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_MIPS_O32_ABI\).*/\1 is not set/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_MIPS_N64_ABI\).*/\1 is not set/' ${WRKBUILD}/.config +endif +ifeq ($(ADK_TARGET_ABI_O32),y) + $(SED) 's/.*\(CONFIG_MIPS_O32_ABI\).*/\1=y/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_MIPS_N32_ABI\).*/\1 is not set/' ${WRKBUILD}/.config + $(SED) 's/.*\(CONFIG_MIPS_N64_ABI\).*/\1 is not set/' ${WRKBUILD}/.config +endif ifneq ($(ADK_DEBUG),) $(SED) 's,DOSTRIP,DODEBUG,' ${WRKBUILD}/.config endif |