From f139fafceb3d6f6fc9211146b2bdea4af4508dac Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Sat, 4 Mar 2017 01:56:00 +0100 Subject: riscv: start experimenting with riscv32 / newlib toolchain --- toolchain/newlib/Makefile.inc | 7 +++++++ .../newlib/patches/riscv-newlib-2.4.0/fix-tooldir.patch | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 toolchain/newlib/patches/riscv-newlib-2.4.0/fix-tooldir.patch (limited to 'toolchain/newlib') diff --git a/toolchain/newlib/Makefile.inc b/toolchain/newlib/Makefile.inc index af2850d10..c006f553b 100644 --- a/toolchain/newlib/Makefile.inc +++ b/toolchain/newlib/Makefile.inc @@ -15,3 +15,10 @@ PKG_HASH:= 5b76a9b97c9464209772ed25ce55181a7bb144a66e5669aaec945aa64da3189b PKG_SITES:= ftp://sourceware.org/pub/newlib/ DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.gz endif +ifeq ($(ADK_TARGET_LIB_NEWLIB_RISCV),y) +PKG_VERSION:= riscv-newlib-2.4.0 +PKG_GIT:= branch +PKG_RELEASE:= 1 +PKG_SITES:= https://github.com/riscv/riscv-newlib.git +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz +endif diff --git a/toolchain/newlib/patches/riscv-newlib-2.4.0/fix-tooldir.patch b/toolchain/newlib/patches/riscv-newlib-2.4.0/fix-tooldir.patch new file mode 100644 index 000000000..652f7494b --- /dev/null +++ b/toolchain/newlib/patches/riscv-newlib-2.4.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 -- cgit v1.2.3