package/newlib-bare-metal: bump to newlib 4.5.0
PATCH v2 1/2 package/newlib-bare-metal: bump to newlib 4.5.0
This patch bumps newlib-bare-metal to version 4.5.0.20241231.
The 0001-libgloss-microblaze-fix-read-and-_write-declarati.patch is no longer needed since it is now included with version 4.5.0.20241231. For this reason, the patch can be removed from buildroot.
---V1->V2:
- fix hashes for COPYING.LIBGLOSS and COPYING.NEWLIB
--- ...oblaze-fix-read-and-_write-declarati.patch | 40 ------------------- .../newlib-bare-metal/newlib-bare-metal.hash | 6 +-- .../newlib-bare-metal/newlib-bare-metal.mk | 2 +- 3 files changed, 4 insertions(+), 44 deletions(-) delete mode 100644 package/newlib-bare-metal/0001-libgloss-microblaze-fix-read-and-_write-declarati.patch
package/newlib-bare-metal/0001-libgloss-microblaze-fix-read-and-_write-declarati.patch deleted +0 -40
@@ -1,40 +0,0 @@ -From 1ebecb83607e9c0cc44ad1e518169ae03c0f2d26 Mon Sep 17 00:00:00 2001 -From: Neal Frager <[email protected]> -Date: Mon, 13 May 2024 07:22:47 +0100 -Subject: [PATCH] libgloss: microblaze: fix read and _write declarations - -This patch resolves the following build error which occurs with gcc 14.1.0: -../../.././libgloss/microblaze/linux-outbyte.c: In function 'outbyte': -../../.././libgloss/microblaze/linux-outbyte.c:3:9: error: implicit declaration of function '_write' [-Wimplicit-function-declaration] - 3 | _write(1, &c, 1); - -Signed-off-by: Neal Frager <[email protected]> -Upstream: https://patchwork.sourceware.org/project/newlib/patch/[email protected]/ ---- - libgloss/microblaze/linux-inbyte.c | 2 ++ - libgloss/microblaze/linux-outbyte.c | 2 ++ - 2 files changed, 4 insertions(+) - -diff --git a/libgloss/microblaze/linux-inbyte.c b/libgloss/microblaze/linux-inbyte.c -index 58fdf1957..2f8d33871 100644 ---- a/libgloss/microblaze/linux-inbyte.c -+++ b/libgloss/microblaze/linux-inbyte.c -@@ -1,3 +1,5 @@ -+extern int read (int, char *, int); -+ - int inbyte(void) - { - char ch = 0; -diff --git a/libgloss/microblaze/linux-outbyte.c b/libgloss/microblaze/linux-outbyte.c -index 9d7bc4890..46de511f6 100644 ---- a/libgloss/microblaze/linux-outbyte.c -+++ b/libgloss/microblaze/linux-outbyte.c -@@ -1,3 +1,5 @@ -+extern int _write (int, char *, int); -+ - void outbyte (unsigned char c) - { - _write(1, &c, 1); --- -2.25.1 -
package/newlib-bare-metal/newlib-bare-metal.hash +3 -3
@@ -1,8 +1,8 @@ # Locally calculated -sha256 0c166a39e1bf0951dfafcd68949fe0e4b6d3658081d6282f39aeefc6310f2f13 newlib-4.4.0.20231231.tar.gz +sha256 33f12605e0054965996c25c1382b3e463b0af91799001f5bb8c0630f2ec8c852 newlib-4.5.0.20241231.tar.gz # Hashes for license files locally calculated sha256 231f7edcc7352d7734a96eef0b8030f77982678c516876fcb81e25b32d68564c COPYING sha256 a9bdde5616ecdd1e980b44f360600ee8783b1f99b8cc83a2beb163a0a390e861 COPYING.LIB -sha256 f3b7f3e4426b1fa6f60198dae7adfedd94b77b28db2d108adc0253575011e0ff COPYING.LIBGLOSS -sha256 9a59b4ee3af067045fe0ea78786201c42d54756fe48cbccf44f3dfc398474717 COPYING.NEWLIB +sha256 bdaffd5fff30cb5fc7a239a4fa0b95f703590f7b3813ca7f4e76ff46437aeb81 COPYING.LIBGLOSS +sha256 fcfb5ec69b6ab52676dcc4dab7cf4338c8000ef97812dadd35b8592a640a8419 COPYING.NEWLIB
package/newlib-bare-metal/newlib-bare-metal.mk +1 -1
@@ -4,7 +4,7 @@ # ################################################################################ -NEWLIB_BARE_METAL_VERSION = 4.4.0.20231231 +NEWLIB_BARE_METAL_VERSION = 4.5.0.20241231 NEWLIB_BARE_METAL_SITE = https://sourceware.org/ftp/newlib NEWLIB_BARE_METAL_SOURCE = newlib-$(NEWLIB_BARE_METAL_VERSION).tar.gz NEWLIB_BARE_METAL_DEPENDENCIES = host-gcc-bare-metal
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH v2 2/2 package/newlib-bare-metal: replace fixup with tooldir config
This patch removes the post install fixup now that newlib 4.5.0 supports a configurable tooldir path using --with-tooldir config option.
---V1->V2:
- no changes
--- package/newlib-bare-metal/newlib-bare-metal.mk | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-)
package/newlib-bare-metal/newlib-bare-metal.mk +1 -8
@@ -33,6 +33,7 @@ define NEWLIB_BARE_METAL_CONFIGURE_CMDS --enable-newlib-io-float \ --enable-newlib-io-long-double \ --disable-multilib \ + --with-tooldir=/usr \ ) endef
@@ -45,12 +46,4 @@ define NEWLIB_BARE_METAL_INSTALL_STAGING_CMDS DESTDIR=$(TOOLCHAIN_BARE_METAL_BUILDROOT_SYSROOT) install endef -define NEWLIB_BARE_METAL_FIXUP - mv $(TOOLCHAIN_BARE_METAL_BUILDROOT_SYSROOT)/usr/$(TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH_TUPLE)/include \ - $(TOOLCHAIN_BARE_METAL_BUILDROOT_SYSROOT)/usr/include - mv $(TOOLCHAIN_BARE_METAL_BUILDROOT_SYSROOT)/usr/$(TOOLCHAIN_BARE_METAL_BUILDROOT_ARCH_TUPLE)/lib \ - $(TOOLCHAIN_BARE_METAL_BUILDROOT_SYSROOT)/usr/lib -endef -NEWLIB_BARE_METAL_POST_INSTALL_STAGING_HOOKS += NEWLIB_BARE_METAL_FIXUP - $(eval $(generic-package))
Signature · 6 lines
2.25.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 7 lines · Neal Frager
This patch bumps newlib-bare-metal to version 4.5.0.20241231.
The 0001-libgloss-microblaze-fix-read-and-_write-declarati.patch is no longer needed since it is now included with version 4.5.0.20241231. For this reason, the patch can be removed from buildroot.
Signed-off-by Neal Frager <[email protected]>
Series applied to master, thanks.
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot