summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Olbrich <m.olbrich@pengutronix.de>2018-02-05 14:24:35 +0100
committerMichael Olbrich <m.olbrich@pengutronix.de>2018-02-08 15:41:08 +0100
commit66e3be06f8ce57b5ff0d2f1fd2028ce007fd0a0e (patch)
treeb893661c871a2618f7be11751877f34cea5e09dc
parent3edabf9daa3a5be7f0a70dd478beb763a48472b2 (diff)
downloadOSELAS.Toolchain-66e3be06f8ce57b5ff0d2f1fd2028ce007fd0a0e.tar.gz
OSELAS.Toolchain-66e3be06f8ce57b5ff0d2f1fd2028ce007fd0a0e.tar.xz
glibc-2.27 patches
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
-rw-r--r--patches/glibc-2.27/0100-add-install-lib-all-target.patch34
-rw-r--r--patches/glibc-2.27/0101-don-t-regen-docs-if-perl-is-not-found.patch35
-rw-r--r--patches/glibc-2.27/0200-Hack-around-mips-args-to-host-gcc.patch28
-rw-r--r--patches/glibc-2.27/series9
4 files changed, 106 insertions, 0 deletions
diff --git a/patches/glibc-2.27/0100-add-install-lib-all-target.patch b/patches/glibc-2.27/0100-add-install-lib-all-target.patch
new file mode 100644
index 0000000..ae18c72
--- /dev/null
+++ b/patches/glibc-2.27/0100-add-install-lib-all-target.patch
@@ -0,0 +1,34 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Tue, 1 Nov 2011 19:22:27 +0100
+Subject: [PATCH] add install-lib-all target
+
+From http://svn.exactcode.de/t2/trunk/package/base/glibc32/make-install-lib-all.patch
+
+Rule to install all needed libraries, not just the ones installed by install-lib,
+yet not install programs.
+Needed because we can't use the main install target, as we can't build programs before
+we have the final gcc installed; linking fails because libeh.a is not present,
+and glibc insists on linking programs with that library.
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ Makerules | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/Makerules b/Makerules
+index ef6abeac6d9d..d64ac754b02f 100644
+--- a/Makerules
++++ b/Makerules
+@@ -1010,6 +1010,12 @@ installed-libcs := $(foreach o,$(filter-out .os,$(object-suffixes-for-libc)),\
+ $(inst_libdir)/$(patsubst %,$(libtype$o),\
+ $(libprefix)$(libc-name)))
+
++install-lib-all: $(inst_slibdir)/libc.so$(libc.so-version) \
++ $(inst_slibdir)/libc-$(version).so \
++ $(inst_libdir)/libc.so \
++ $(inst_libdir)/libc.a \
++ install-lib
++
+ .PHONY: check-install-supported
+ check-install-supported:
+
diff --git a/patches/glibc-2.27/0101-don-t-regen-docs-if-perl-is-not-found.patch b/patches/glibc-2.27/0101-don-t-regen-docs-if-perl-is-not-found.patch
new file mode 100644
index 0000000..346c8ff
--- /dev/null
+++ b/patches/glibc-2.27/0101-don-t-regen-docs-if-perl-is-not-found.patch
@@ -0,0 +1,35 @@
+From: Michael Olbrich <m.olbrich@pengutronix.de>
+Date: Wed, 2 Nov 2011 00:14:37 +0100
+Subject: [PATCH] don't regen docs if perl is not found
+
+If we're using a cvs snapshot which updates the source files, and
+perl isn't installed yet, then we can't regen the docs. Not a big
+deal, so just whine a little and continue on our merry way.
+
+This patch was taken from gentoo.
+http://bugs.gentoo.org/60132
+
+Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
+---
+ manual/Makefile | 5 +++++
+ 1 file changed, 5 insertions(+)
+
+diff --git a/manual/Makefile b/manual/Makefile
+index c2756640a785..8b0b178152a5 100644
+--- a/manual/Makefile
++++ b/manual/Makefile
+@@ -101,9 +101,14 @@ $(objpfx)dir-add.texi: xtract-typefun.awk $(texis-path)
+ $(objpfx)libm-err.texi: $(objpfx)stamp-libm-err
+ $(objpfx)stamp-libm-err: libm-err-tab.pl $(wildcard $(foreach dir,$(sysdirs),\
+ $(dir)/libm-test-ulps))
++ifneq ($(PERL),no)
+ pwd=`pwd`; \
+ $(PERL) $< $$pwd/.. > $(objpfx)libm-err-tmp
+ $(move-if-change) $(objpfx)libm-err-tmp $(objpfx)libm-err.texi
++else
++ echo "Unable to rebuild math docs, no perl installed"
++ touch libm-err.texi
++endif
+ touch $@
+
+ # Package version and bug reporting URL.
diff --git a/patches/glibc-2.27/0200-Hack-around-mips-args-to-host-gcc.patch b/patches/glibc-2.27/0200-Hack-around-mips-args-to-host-gcc.patch
new file mode 100644
index 0000000..5cc5c41
--- /dev/null
+++ b/patches/glibc-2.27/0200-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.27/series b/patches/glibc-2.27/series
new file mode 100644
index 0000000..da5b65b
--- /dev/null
+++ b/patches/glibc-2.27/series
@@ -0,0 +1,9 @@
+# generated by git-ptx-patches
+#tag:base --start-number 1
+#tag:upstream --start-number 1
+#tag:build-system --start-number 100
+0100-add-install-lib-all-target.patch
+0101-don-t-regen-docs-if-perl-is-not-found.patch
+#tag:hacks --start-number 200
+0200-Hack-around-mips-args-to-host-gcc.patch
+# 093247f87c0e3ded1431e29c27443f99 - git-ptx-patches magic