summaryrefslogtreecommitdiff
path: root/toolchain/newlib
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-10-01 17:49:40 +0200
committerWaldemar Brodkorb <wbx@openadk.org>2017-10-01 20:46:32 +0200
commitfa6fcbc9f75bc5a5962f9dd4327ae80ea35c59a7 (patch)
tree751a5d05ae0915dc85b97a43219f2de1370df833 /toolchain/newlib
parent728149c0fc8bfeb2460d7d0be4e1443a8d306a8f (diff)
frosted: fix config for qemu
Diffstat (limited to 'toolchain/newlib')
-rw-r--r--toolchain/newlib/Makefile.inc3
-rw-r--r--toolchain/newlib/patches/frosted/fix-tooldir.patch12
2 files changed, 14 insertions, 1 deletions
diff --git a/toolchain/newlib/Makefile.inc b/toolchain/newlib/Makefile.inc
index 3fe740835..31622c2b8 100644
--- a/toolchain/newlib/Makefile.inc
+++ b/toolchain/newlib/Makefile.inc
@@ -23,7 +23,8 @@ PKG_SITES:= https://github.com/riscv/riscv-newlib.git
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
endif
ifeq ($(ADK_TARGET_LIB_NEWLIB_FROSTED),y)
-PKG_VERSION:= git
+PKG_VERSION:= frosted
+PKG_GIT:= branch
PKG_RELEASE:= 1
PKG_GIT_SUBMODULE:= 1
PKG_SITES:= https://github.com/insane-adding-machines/newlib.git
diff --git a/toolchain/newlib/patches/frosted/fix-tooldir.patch b/toolchain/newlib/patches/frosted/fix-tooldir.patch
new file mode 100644
index 000000000..652f7494b
--- /dev/null
+++ b/toolchain/newlib/patches/frosted/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