From 8e662a391ec4d384473d4cc9e31a907cba078cb4 Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sun, 10 Nov 2013 14:35:23 +0100 Subject: support for mips64 big endian --- package/eglibc/Makefile | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'package/eglibc/Makefile') diff --git a/package/eglibc/Makefile b/package/eglibc/Makefile index c93fbbefe..1ee599707 100644 --- a/package/eglibc/Makefile +++ b/package/eglibc/Makefile @@ -44,13 +44,25 @@ eglibc-dev-install: # install linker script -cp ./files/libc.so.$(CPU_ARCH) $(IDIR_EGLIBC_DEV)/usr/lib/libc.so ifeq ($(ADK_TARGET_ABI_O32),y) +ifeq ($(ADK_big),y) + $(SED) "s#@@ELFTARGET@@#elf32-tradbigmips#" $(IDIR_EGLIBC_DEV)/usr/lib/libc.so +else $(SED) "s#@@ELFTARGET@@#elf32-tradlittlemips#" $(IDIR_EGLIBC_DEV)/usr/lib/libc.so endif +endif ifeq ($(ADK_TARGET_ABI_N32),y) +ifeq ($(ADK_big),y) + $(SED) "s#@@ELFTARGET@@#elf32-ntradbigmips#" $(IDIR_EGLIBC_DEV)/usr/lib/libc.so +else $(SED) "s#@@ELFTARGET@@#elf32-ntradlittlemips#" $(IDIR_EGLIBC_DEV)/usr/lib/libc.so endif +endif ifeq ($(ADK_TARGET_ABI_N64),y) +ifeq ($(ADK_big),y) + $(SED) "s#@@ELFTARGET@@#elf64-tradbigmips#" $(IDIR_EGLIBC_DEV)/usr/lib/libc.so +else $(SED) "s#@@ELFTARGET@@#elf64-tradlittlemips#" $(IDIR_EGLIBC_DEV)/usr/lib/libc.so +endif endif ${CP} ${STAGING_TARGET_DIR}/usr/lib/crt* ${IDIR_EGLIBC_DEV}/usr/lib ${CP} ${STAGING_TARGET_DIR}/usr/lib/libc_nonshared.a ${IDIR_EGLIBC_DEV}/usr/lib -- cgit v1.2.3