diff mbox series

[meta-zephyr,1/4] libgloss: update bbappend to match 4.5.0

Message ID 20251224064635.1187089-1-chee.yang.lee@intel.com
State New
Headers show
Series [meta-zephyr,1/4] libgloss: update bbappend to match 4.5.0 | expand

Commit Message

Lee, Chee Yang Dec. 24, 2025, 6:46 a.m. UTC
From: Lee Chee Yang <chee.yang.lee@intel.com>

the patch no longer applies, remove it and append the build
flags to CFLAGS

Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com>
---
 ...loss-i386-Disable-warnings-as-errors.patch | 41 -------------------
 .../recipes-core/newlib/libgloss_git.bbappend |  4 +-
 2 files changed, 2 insertions(+), 43 deletions(-)
 delete mode 100644 meta-zephyr-core/recipes-core/newlib/files/0001-libgloss-i386-Disable-warnings-as-errors.patch
diff mbox series

Patch

diff --git a/meta-zephyr-core/recipes-core/newlib/files/0001-libgloss-i386-Disable-warnings-as-errors.patch b/meta-zephyr-core/recipes-core/newlib/files/0001-libgloss-i386-Disable-warnings-as-errors.patch
deleted file mode 100644
index c512dde..0000000
--- a/meta-zephyr-core/recipes-core/newlib/files/0001-libgloss-i386-Disable-warnings-as-errors.patch
+++ /dev/null
@@ -1,41 +0,0 @@ 
-From 5dd8c118c904f5dd956ac754a10faddd35d22df2 Mon Sep 17 00:00:00 2001
-From: Naveen Saini <naveen.kumar.saini@intel.com>
-Date: Thu, 26 Sep 2024 16:43:43 +0800
-Subject: [PATCH] libgloss/i386: Disable warnings as errors
-
-i586-yocto-elf/libgloss/4.4.0+git/git/libgloss/i386/cygmon-gmon.c:109:21: warning: implicit declaration of function 'sbrk' [-Wimplicit-function-declaration]
-  109 |   buffer = (char *) sbrk (monsize);
-      |                     ^~~~
-i586-yocto-elf/libgloss/4.4.0+git/git/libgloss/i386/cygmon-gmon.c:112:7: warning: implicit declaration of function 'write'; did you mean 'fwrite'? [-Wimplicit-function-declaration]
-  112 |       write (2, MSG , sizeof(MSG));
-      |       ^~~~~
-      |       fwrite
-i586-yocto-elf/libgloss/4.4.0+git/git/libgloss/i386/cygmon-gmon.c:113:7: warning: 'return' with no value, in function returning non-void [-Wreturn-mismatch]
-  113 |       return;
-      |       ^~~~~~
-i586-yocto-elf/libgloss/4.4.0+git/git/libgloss/i386/cygmon-gmon.c:198:1: warning: return type defaults to 'int' [-Wimplicit-int]
-  198 | _mcount()
-
-Upstream-Status: Inappropriate  [OE-Specific]
-
-Signed-off-by: Naveen Saini <naveen.kumar.saini@intel.com>
----
- libgloss/i386/Makefile.in | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/libgloss/i386/Makefile.in b/libgloss/i386/Makefile.in
-index 7ed0b075f..729f33d90 100644
---- a/libgloss/i386/Makefile.in
-+++ b/libgloss/i386/Makefile.in
-@@ -69,7 +69,7 @@ OBJCOPY = `if [ -f ${objroot}/../binutils/objcopy ] ; \
- CRT0 = cygmon-crt0.o
- CYGMON_OBJS = cygmon-salib.o cygmon-gmon.o
- 
--CFLAGS = -g
-+CFLAGS = @CFLAGS@ -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=return-mismatch
- 
- GCC_LDFLAGS = `if [ -d ${objroot}/../gcc ] ; \
- 	then echo -L${objroot}/../gcc ; fi`
--- 
-2.37.3
-
diff --git a/meta-zephyr-core/recipes-core/newlib/libgloss_git.bbappend b/meta-zephyr-core/recipes-core/newlib/libgloss_git.bbappend
index 756ef35..6488e53 100644
--- a/meta-zephyr-core/recipes-core/newlib/libgloss_git.bbappend
+++ b/meta-zephyr-core/recipes-core/newlib/libgloss_git.bbappend
@@ -1,2 +1,2 @@ 
-FILESEXTRAPATHS:prepend := "${THISDIR}/files:"
-SRC_URI:append:qemu-x86 = " file://0001-libgloss-i386-Disable-warnings-as-errors.patch"
+CFLAGS:append:qemu-x86 = " -Wno-error=implicit-function-declaration -Wno-error=implicit-int -Wno-error=return-mismatch "
+