summaryrefslogtreecommitdiff
path: root/package
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-10-12 07:52:09 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2011-10-12 07:52:09 +0200
commit0977a464d36dd506f2cda65b977eca698058d579 (patch)
tree29a004f51198a00f07dc5ed5dc25f13fdf6d1f49 /package
parent722eee7d945f1299eb6bdc3139938b3df55a1bf5 (diff)
parent2ffc78538276d5eabf60c07bd84d8fb8021fd6fa (diff)
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package')
-rw-r--r--package/eglibc/Makefile9
-rw-r--r--package/eglibc/files/libc.so.mips2
-rw-r--r--package/firefox/Makefile7
-rw-r--r--package/gcc/Makefile8
-rw-r--r--package/libvpx/Makefile2
5 files changed, 18 insertions, 10 deletions
diff --git a/package/eglibc/Makefile b/package/eglibc/Makefile
index 5bf290fe9..5466ddb85 100644
--- a/package/eglibc/Makefile
+++ b/package/eglibc/Makefile
@@ -91,6 +91,15 @@ eglibc-dev-install:
${INSTALL_DIR} $(IDIR_EGLIBC_DEV)/lib $(IDIR_EGLIBC_DEV)/usr/lib
# install linker script
-cp ./files/libc.so.$(ARCH) $(IDIR_EGLIBC_DEV)/usr/lib/libc.so
+ifeq ($(ADK_TARGET_ABI_O32),y)
+ $(SED) "s#@@ELFFORMAT@@#elf32-tradlittlemips#" $(IDIR_EGLIBC_DEV)/usr/lib/libc.so
+endif
+ifeq ($(ADK_TARGET_ABI_N32),y)
+ $(SED) "s#@@ELFFORMAT@@#elf32-ntradlittlemips#" $(IDIR_EGLIBC_DEV)/usr/lib/libc.so
+endif
+ifeq ($(ADK_TARGET_ABI_N64),y)
+ $(SED) "s#@@ELFFORMAT@@#elf64-tradlittlemips#" $(IDIR_EGLIBC_DEV)/usr/lib/libc.so
+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
-for file in libc libcrypt libdl libm libresolv librt libutil; do \
diff --git a/package/eglibc/files/libc.so.mips b/package/eglibc/files/libc.so.mips
index 6165d3e9c..9e73ea39c 100644
--- a/package/eglibc/files/libc.so.mips
+++ b/package/eglibc/files/libc.so.mips
@@ -1,5 +1,5 @@
/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
- OUTPUT_FORMAT(elf64-tradlittlemips)
+ OUTPUT_FORMAT(@@ELFTARGET@@)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld.so.1 ) )
diff --git a/package/firefox/Makefile b/package/firefox/Makefile
index 0c8de9916..942034570 100644
--- a/package/firefox/Makefile
+++ b/package/firefox/Makefile
@@ -19,9 +19,9 @@ PKG_SITES:= http://releases.mozilla.org/pub/mozilla.org/firefox/releases/${PKG_
PKG_NOPARALLEL:= 1
PKG_NEED_CXX:= 1
-PKG_ARCH_DEPENDS:= x86 x86_64 native
+PKG_ARCH_DEPENDS:= x86 x86_64 native mips
PKG_HOST_DEPENDS:= !netbsd !freebsd !openbsd !cygwin
-PKG_SYSTEM_DEPENDS:= ibm-x40
+PKG_SYSTEM_DEPENDS:= ibm-x40 lemote-yeelong
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.source.tar.bz2
WRKDIST= ${WRKDIR}/mozilla-release
@@ -30,9 +30,6 @@ include $(TOPDIR)/mk/package.mk
$(eval $(call PKG_template,FIREFOX,firefox,$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION}))
-# disable honour cflags stuff
-XAKE_FLAGS+= GCC_HONOUR_COPTS=s
-
CONFIGURE_ENV+= CROSS_COMPILE=1 \
HOST_CC="${CC_FOR_BUILD}" \
HOST_CPPFLAGS="${CPPFLAGS_FOR_BUILD}" \
diff --git a/package/gcc/Makefile b/package/gcc/Makefile
index 6158d094f..8a6e267c8 100644
--- a/package/gcc/Makefile
+++ b/package/gcc/Makefile
@@ -20,8 +20,11 @@ TARGET_CPPFLAGS:= ''
TARGET_CFLAGS:= ''
TARGET_CXXFLAGS:= $(filter-out -fstack-protector,$(TARGET_CXXFLAGS))
-ifeq ($(ADK_LINUX_64),y)
-CONFIGURE_ARGS+= --with-abi=64
+#ifeq ($(ADK_LINUX_64),y)
+#CONFIGURE_ARGS+= --with-abi=64
+#endif
+ifeq ($(ADK_TARGET_SYSTEM_LEMOTE_YEELONG),y)
+CONFIGURE_ARGS+= --with-abi=$(ADK_TARGET_ABI)
endif
CONFIGURE_ARGS+= --enable-languages=c,c++ \
@@ -51,7 +54,6 @@ post-install:
cd ${IDIR_GCC}/usr/bin/ && ln -sf g++ c++
cd ${IDIR_GCC}/usr/bin/ && ln -sf gcc cc
${INSTALL_BIN} ${WRKINST}/usr/bin/cpp ${IDIR_GCC}/usr/bin/
- ${CP} ${WRKINST}/usr/lib/libstdc++*so* ${IDIR_GCC}/usr/lib/
${CP} ${WRKINST}/usr/include/c++/* ${IDIR_GCC}/usr/include/c++/
cd ${IDIR_GCC}/lib && ln -sf ../usr/bin/cpp .
${CP} ${WRKINST}/usr/lib/gcc/* ${IDIR_GCC}/usr/lib/gcc/
diff --git a/package/libvpx/Makefile b/package/libvpx/Makefile
index ddc595272..afb3b50a0 100644
--- a/package/libvpx/Makefile
+++ b/package/libvpx/Makefile
@@ -12,7 +12,7 @@ PKG_SECTION:= libs
PKG_URL:= http://www.webmproject.org/about/
PKG_SITES:= http://webm.googlecode.com/files/
-PKG_SYSTEM_DEPENDS:= sharp-zaurus ibm-x40
+PKG_SYSTEM_DEPENDS:= sharp-zaurus ibm-x40 lemote-yeelong
DISTFILES:= ${PKG_NAME}-v${PKG_VERSION}-p1.tar.bz2
WRKDIST= $(WRKDIR)/${PKG_NAME}-v${PKG_VERSION}-p1