summaryrefslogtreecommitdiff
path: root/toolchain
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2017-12-31 17:45:06 (GMT)
committerWaldemar Brodkorb <wbx@openadk.org>2017-12-31 17:45:48 (GMT)
commitf855b1d7bfdc36a65703fdf9a638ad016c409bbe (patch)
tree3fcedec43e1387c1410add7f3e5f3e958050e010 /toolchain
parent1c7ad1a115614a32ac299a9ad5341a9b4157e47b (diff)
add basic zephyr experiments, add xtensa newlib support
Diffstat (limited to 'toolchain')
-rw-r--r--toolchain/newlib/Makefile.inc7
-rw-r--r--toolchain/newlib/patches/newlib-xtensa/fix-tooldir.patch12
2 files changed, 19 insertions, 0 deletions
diff --git a/toolchain/newlib/Makefile.inc b/toolchain/newlib/Makefile.inc
index 31622c2..ca97e56 100644
--- a/toolchain/newlib/Makefile.inc
+++ b/toolchain/newlib/Makefile.inc
@@ -22,6 +22,13 @@ PKG_RELEASE:= 1
PKG_SITES:= https://github.com/riscv/riscv-newlib.git
DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
endif
+ifeq ($(ADK_TARGET_LIB_NEWLIB_XTENSA),y)
+PKG_VERSION:= xtensa
+PKG_GIT:= branch
+PKG_RELEASE:= 1
+PKG_SITES:= https://github.com/jcmvbkbc/newlib-xtensa.git
+DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.xz
+endif
ifeq ($(ADK_TARGET_LIB_NEWLIB_FROSTED),y)
PKG_VERSION:= frosted
PKG_GIT:= branch
diff --git a/toolchain/newlib/patches/newlib-xtensa/fix-tooldir.patch b/toolchain/newlib/patches/newlib-xtensa/fix-tooldir.patch
new file mode 100644
index 0000000..1ad0f37
--- /dev/null
+++ b/toolchain/newlib/patches/newlib-xtensa/fix-tooldir.patch
@@ -0,0 +1,12 @@
+diff -Nur newlib-xtensa.orig/configure newlib-xtensa/configure
+--- newlib-xtensa.orig/configure 2017-12-29 15:26:12.000000000 +0100
++++ newlib-xtensa/configure 2017-12-29 15:35:01.420208845 +0100
+@@ -6847,7 +6847,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