|
@@ -52,13 +52,25 @@ glibc-dev-install:
|
|
|
# install linker script
|
|
|
-cp ./files/libc.so.$(CPU_ARCH) $(IDIR_GLIBC_DEV)/usr/lib/libc.so
|
|
|
ifeq ($(ADK_TARGET_ABI_O32),y)
|
|
|
+ifeq ($(ADK_big),y)
|
|
|
+ $(SED) "s#@@ELFFORMAT@@#elf32-tradbigmips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so
|
|
|
+else
|
|
|
$(SED) "s#@@ELFFORMAT@@#elf32-tradlittlemips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so
|
|
|
endif
|
|
|
+endif
|
|
|
ifeq ($(ADK_TARGET_ABI_N32),y)
|
|
|
+ifeq ($(ADK_big),y)
|
|
|
+ $(SED) "s#@@ELFFORMAT@@#elf32-ntradbigmips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so
|
|
|
+else
|
|
|
$(SED) "s#@@ELFFORMAT@@#elf32-ntradlittlemips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so
|
|
|
endif
|
|
|
+endif
|
|
|
ifeq ($(ADK_TARGET_ABI_N64),y)
|
|
|
+ifeq ($(ADK_big),y)
|
|
|
+ $(SED) "s#@@ELFFORMAT@@#elf64-tradbigmips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so
|
|
|
+else
|
|
|
$(SED) "s#@@ELFFORMAT@@#elf64-tradlittlemips#" $(IDIR_GLIBC_DEV)/usr/lib/libc.so
|
|
|
+endif
|
|
|
endif
|
|
|
${CP} ${STAGING_TARGET_DIR}/usr/lib/crt* ${IDIR_GLIBC_DEV}/usr/lib
|
|
|
${CP} ${STAGING_TARGET_DIR}/usr/lib/libc_nonshared.a ${IDIR_GLIBC_DEV}/usr/lib
|