summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2014-12-03 16:53:10 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2014-12-12 08:15:35 +0100
commite8dae4850074ca5205d8f425376ded0a82ac5246 (patch)
treee10bff66f5e6a7ecd6248003d9db5c817f113704
parentf93e4506937afafa325bd530de3fc39c7399963a (diff)
downloadOSELAS.Toolchain-e8dae4850074ca5205d8f425376ded0a82ac5246.tar.gz
OSELAS.Toolchain-e8dae4850074ca5205d8f425376ded0a82ac5246.tar.xz
glibc-2.20: add patch for mips
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--patches/glibc-2.20/0500-Hack-around-mips-args-to-host-gcc.patch28
-rw-r--r--patches/glibc-2.20/series4
2 files changed, 31 insertions, 1 deletions
diff --git a/patches/glibc-2.20/0500-Hack-around-mips-args-to-host-gcc.patch b/patches/glibc-2.20/0500-Hack-around-mips-args-to-host-gcc.patch
new file mode 100644
index 0000000..5cc5c41
--- /dev/null
+++ b/patches/glibc-2.20/0500-Hack-around-mips-args-to-host-gcc.patch
@@ -0,0 +1,28 @@
+From: Marc Kleine-Budde <mkl@pengutronix.de>
+Date: Wed, 3 Dec 2014 15:05:52 +0100
+Subject: [PATCH] Hack around mips args to host-gcc
+
+originally From: "Steven J dot Hill" <sjhill at realitydiluted dot com>
+for Crosstool
+
+In OSELAS.Toolchain we pass -DBOOTSTRAP_GCC in CC. This patch fixes the
+header extraction from the glibc, by not passing mips specific flags to
+the HOST compiler.
+
+Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
+---
+ sysdeps/mips/mips32/Makefile | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/sysdeps/mips/mips32/Makefile b/sysdeps/mips/mips32/Makefile
+index dec0b024c3a8..dde2ca6bce1d 100644
+--- a/sysdeps/mips/mips32/Makefile
++++ b/sysdeps/mips/mips32/Makefile
+@@ -1,3 +1,7 @@
++ifeq ($(filter -DBOOTSTRAP_GCC,$(CC)),)
+ ifeq ($(filter -mabi=32,$(CC)),)
+ CC += -mabi=32
+ endif
++else
++CC += -D_MIPS_SZPTR=32
++endif
diff --git a/patches/glibc-2.20/series b/patches/glibc-2.20/series
index d573f03..22b6020 100644
--- a/patches/glibc-2.20/series
+++ b/patches/glibc-2.20/series
@@ -11,4 +11,6 @@
#tag:linaro --start-number 400
0400-optimized-string-functions-for-NEON-from-Linaro.patch
0401-add-libc_hidden_builtin_def-for-all-cortex-functions.patch
-# 9424473d0c6432ce5c5a28abd362c91c - git-ptx-patches magic
+#tag:hacks --start-number 500
+0500-Hack-around-mips-args-to-host-gcc.patch
+# f8b24c7c1be06be88e4737cd59ea83a0 - git-ptx-patches magic