summaryrefslogtreecommitdiff
path: root/toolchain/uClibc
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2009-05-29 13:13:17 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2009-05-29 13:13:17 +0200
commit7047a0b2b2d18d51594cad92d5356bd626da063d (patch)
tree7b89508846229d6b0c287a89094c5bf86cbe6800 /toolchain/uClibc
parentbad63eb735b13e1f009a19af1dd810f7279c2ba1 (diff)
add lemote / loongson2f target support (no runtime tests yet)
- update glibc to latest version (GIT), tarball includes glibc-ports needed for MIPS architecture - fix building of toolchain for mips64el glibc/uclibc - use /lib instead of /lib64 (no biarch support) - fix X11 dependencies in build system - fix glibc build errors for openldap, libnl, mpd and rtorrent - verified toolchain changes on alix1c
Diffstat (limited to 'toolchain/uClibc')
-rw-r--r--toolchain/uClibc/Makefile2
-rw-r--r--toolchain/uClibc/patches/mips64.patch12
2 files changed, 14 insertions, 0 deletions
diff --git a/toolchain/uClibc/Makefile b/toolchain/uClibc/Makefile
index a96f3533a..8a77a6022 100644
--- a/toolchain/uClibc/Makefile
+++ b/toolchain/uClibc/Makefile
@@ -55,6 +55,7 @@ $(WRKBUILD)/.install_headers: $(WRKBUILD)/.compiled
PREFIX=$(STAGING_DIR) \
DEVEL_PREFIX=/ \
RUNTIME_PREFIX=/ \
+ CPU_CFLAGS="$(TARGET_CFLAGS)" \
install_dev
touch $@
@@ -63,6 +64,7 @@ $(WRKBUILD)/.installed: $(WRKBUILD)/.install_headers
PREFIX=$(STAGING_DIR) \
DEVEL_PREFIX=/ \
RUNTIME_PREFIX=/ \
+ CPU_CFLAGS="$(TARGET_CFLAGS)" \
install_runtime
echo $(PKG_VERSION) >$(STAGING_DIR)/uclibc_version
rm -rf $(STAGING_DIR)/lib/libc.so
diff --git a/toolchain/uClibc/patches/mips64.patch b/toolchain/uClibc/patches/mips64.patch
new file mode 100644
index 000000000..70fcc24e6
--- /dev/null
+++ b/toolchain/uClibc/patches/mips64.patch
@@ -0,0 +1,12 @@
+diff -Nur uClibc-0.9.30.1.orig/Rules.mak uClibc-0.9.30.1/Rules.mak
+--- uClibc-0.9.30.1.orig/Rules.mak 2009-03-02 22:10:04.000000000 +0100
++++ uClibc-0.9.30.1/Rules.mak 2009-05-28 15:08:37.000000000 +0200
+@@ -292,7 +292,7 @@
+ CPU_CFLAGS-$(CONFIG_MIPS_ISA_4)+=-mips4 -mtune=mips4
+ CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS32)+=-mips32 -mtune=mips32
+ CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS32R2)+=-march=mips32r2 -mtune=mips32r2
+- CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS64)+=-mips64 -mtune=mips32
++ CPU_CFLAGS-$(CONFIG_MIPS_ISA_MIPS64)+=-mips64
+ ifeq ($(strip $(ARCH_BIG_ENDIAN)),y)
+ CPU_LDFLAGS-$(CONFIG_MIPS_N64_ABI)+=-Wl,-melf64btsmip
+ CPU_LDFLAGS-$(CONFIG_MIPS_O32_ABI)+=-Wl,-melf32btsmip