瀏覽代碼

newlib: update to latest 2.2.x/2.3.x versions

Waldemar Brodkorb 8 年之前
父節點
當前提交
45a9ad52e9

+ 5 - 0
target/config/Config.in.libc

@@ -163,6 +163,10 @@ config ADK_TARGET_LIB_MUSL_GIT
 	bool "git"
 	depends on ADK_TARGET_LIB_MUSL
 
+config ADK_TARGET_LIB_NEWLIB_2_3_0
+	bool "2.3.0"
+	depends on ADK_TARGET_LIB_NEWLIB
+
 config ADK_TARGET_LIB_NEWLIB_2_2_0
 	bool "2.2.0"
 	depends on ADK_TARGET_LIB_NEWLIB
@@ -216,6 +220,7 @@ config ADK_LIBC_VERSION
 	default "2.22" if ADK_TARGET_LIB_GLIBC_2_22
 	default "2.21" if ADK_TARGET_LIB_GLIBC_2_21
 	default "2.20-or1k" if ADK_TARGET_LIB_GLIBC_OR1K
+	default "2.3.0" if ADK_TARGET_LIB_NEWLIB_2_3_0
 	default "2.2.0" if ADK_TARGET_LIB_NEWLIB_2_2_0
 	default "git" if ADK_TARGET_LIB_UCLIBC_NG_GIT || \
 		         ADK_TARGET_LIB_MUSL_GIT || \

+ 10 - 4
toolchain/newlib/Makefile.inc

@@ -8,11 +8,17 @@ PKG_RELEASE:=		1
 PKG_SITES:=		git://sourceware.org/git/newlib-cygwin.git
 DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.xz
 endif
+ifeq ($(ADK_TARGET_LIB_NEWLIB_2_3_0),y)
+PKG_VERSION:=		2.3.0.20160226
+PKG_RELEASE:=		1
+PKG_HASH:=		a9489dd28276e4fb29d65a1388a359b1f005d2ba6a4b92a6e5a802b95e1ad7d1
+PKG_SITES:=		ftp://sourceware.org/pub/newlib/
+DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz
+endif
 ifeq ($(ADK_TARGET_LIB_NEWLIB_2_2_0),y)
-PKG_VERSION:=		2.2.0
+PKG_VERSION:=		2.2.0.20151023
 PKG_RELEASE:=		1
-PKG_HASH:=		c1d53fd1765d955ac513aa6e2f576455ee7507072d400314495c8a8a26ebc8ec
+PKG_HASH:=		fd1d3d358dd66922f37563518e787196e1fba8adaa6d8b1e955d145b38b3fa60
 PKG_SITES:=		ftp://sourceware.org/pub/newlib/
-DISTFILES:=		${PKG_NAME}-${PKG_VERSION}-1.tar.gz
-WRKDIST=		$(WRKDIR)/${PKG_NAME}-${PKG_VERSION}-1
+DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz
 endif

+ 0 - 0
toolchain/newlib/patches/2.2.0/disable-docs.patch → toolchain/newlib/patches/2.2.0.20151023/disable-docs.patch


+ 0 - 0
toolchain/newlib/patches/2.2.0/fix-tooldir.patch → toolchain/newlib/patches/2.2.0.20151023/fix-tooldir.patch


+ 14 - 0
toolchain/newlib/patches/2.3.0.20160226/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:
+ 

+ 12 - 0
toolchain/newlib/patches/2.3.0.20160226/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