summaryrefslogtreecommitdiff
path: root/toolchain/newlib/patches
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2015-12-03 11:46:03 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2015-12-03 16:56:48 +0100
commitf250397c96dbfb7f3ea1c0a5ae1d9d1a82e1f4b2 (patch)
treef81555843257cc2d249ab660a4d6f2f386fecc4e /toolchain/newlib/patches
parent7d455976fb819146a50a8fa0483730b16231171f (diff)
toolchain: add newlib support
OpenADK can now build bare-metal toolchains. Tested for ARM/MIPS. No runtime testing, yet.
Diffstat (limited to 'toolchain/newlib/patches')
-rw-r--r--toolchain/newlib/patches/2.2.0/disable-docs.patch14
-rw-r--r--toolchain/newlib/patches/2.2.0/fix-tooldir.patch12
2 files changed, 26 insertions, 0 deletions
diff --git a/toolchain/newlib/patches/2.2.0/disable-docs.patch b/toolchain/newlib/patches/2.2.0/disable-docs.patch
new file mode 100644
index 000000000..3b500b61c
--- /dev/null
+++ b/toolchain/newlib/patches/2.2.0/disable-docs.patch
@@ -0,0 +1,14 @@
+diff -Nur newlib-2.2.0-1.orig/etc/Makefile.in newlib-2.2.0-1/etc/Makefile.in
+--- newlib-2.2.0-1.orig/etc/Makefile.in 2010-11-20 20:37:57.000000000 +0100
++++ newlib-2.2.0-1/etc/Makefile.in 2015-12-03 14:23:44.043820971 +0100
+@@ -63,8 +63,8 @@
+ PDFFILES = standards.pdf configure.pdf
+ HTMLFILES = standards.html configure.html
+
+-all: info
+-install install-strip: install-info
++all:
++install install-strip:
+
+ uninstall:
+
diff --git a/toolchain/newlib/patches/2.2.0/fix-tooldir.patch b/toolchain/newlib/patches/2.2.0/fix-tooldir.patch
new file mode 100644
index 000000000..652f7494b
--- /dev/null
+++ b/toolchain/newlib/patches/2.2.0/fix-tooldir.patch
@@ -0,0 +1,12 @@
+diff -Nur newlib-2.2.0-1.orig/configure newlib-2.2.0-1/configure
+--- newlib-2.2.0-1.orig/configure 2014-07-05 23:09:07.000000000 +0200
++++ newlib-2.2.0-1/configure 2015-11-25 06:33:11.461178398 +0100
+@@ -6985,7 +6985,7 @@
+
+ # Some systems (e.g., one of the i386-aix systems the gas testers are
+ # using) don't handle "\$" correctly, so don't use it here.
+-tooldir='${exec_prefix}'/${target_noncanonical}
++tooldir='${exec_prefix}'
+ build_tooldir=${tooldir}
+
+ # Create a .gdbinit file which runs the one in srcdir