[Buildroot] [git commit branch/2025.02.x] configs/qemu_ppc*: backport a patch for GCC 15.x compatibility

Thomas Perale thomas.perale at mind.be
Thu May 15 15:06:42 UTC 2025


commit: https://git.buildroot.net/buildroot/commit/?id=8c31fb8d11f765b957098461716bfe440f0dda7f
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2025.02.x

powerpc kernel maintainer merged a patch [1] for GCC 15.x compatibility
that will likely be merged upstream soon.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?id=5a821e2d69e26b51b7f3740b6b0c3462b8cacaff

Signed-off-by: Romain Naour <romain.naour at smile.fr>
Signed-off-by: Julien Olivain <ju.o at free.fr>
(cherry picked from commit 30cf5a07546602e6e88d1501ac1ec182b693fcbb)
Signed-off-by: Thomas Perale <thomas.perale at mind.be>
---
 .../0002-powerpc-boot-Fix-build-with-gcc-15.patch  | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/board/qemu/patches/linux/0002-powerpc-boot-Fix-build-with-gcc-15.patch b/board/qemu/patches/linux/0002-powerpc-boot-Fix-build-with-gcc-15.patch
new file mode 100644
index 0000000000..78a4034a32
--- /dev/null
+++ b/board/qemu/patches/linux/0002-powerpc-boot-Fix-build-with-gcc-15.patch
@@ -0,0 +1,38 @@
+From 2d04c5b3c5728cd5e5202176e8796ffc0085c24a Mon Sep 17 00:00:00 2001
+From: Michal Suchanek <msuchanek at suse.de>
+Date: Mon, 31 Mar 2025 12:57:19 +0200
+Subject: [PATCH] powerpc/boot: Fix build with gcc 15
+
+Similar to x86 the ppc boot code does not build with GCC 15.
+
+Copy the fix from
+commit ee2ab467bddf ("x86/boot: Use '-std=gnu11' to fix build with GCC 15")
+
+Upstream: https://git.kernel.org/pub/scm/linux/kernel/git/powerpc/linux.git/commit/?h=next-test&id=5a821e2d69e26b51b7f3740b6b0c3462b8cacaff
+
+Signed-off-by: Michal Suchanek <msuchanek at suse.de>
+Tested-by: Amit Machhiwal <amachhiw at linux.ibm.com>
+Tested-by: Venkat Rao Bagalkote <venkat88 at linux.ibm.com>
+Signed-off-by: Madhavan Srinivasan <maddy at linux.ibm.com>
+Link: https://patch.msgid.link/20250331105722.19709-1-msuchanek@suse.de
+[Romain: backport to 6.12.27]
+Signed-off-by: Romain Naour <romain.naour at smile.fr>
+---
+ arch/powerpc/boot/Makefile | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/arch/powerpc/boot/Makefile b/arch/powerpc/boot/Makefile
+index fa8518067d38..60a495771c05 100644
+--- a/arch/powerpc/boot/Makefile
++++ b/arch/powerpc/boot/Makefile
+@@ -70,6 +70,7 @@ BOOTCPPFLAGS	:= -nostdinc $(LINUXINCLUDE)
+ BOOTCPPFLAGS	+= -isystem $(shell $(BOOTCC) -print-file-name=include)
+ 
+ BOOTCFLAGS	:= $(BOOTTARGETFLAGS) \
++		   -std=gnu11 \
+ 		   -Wall -Wundef -Wstrict-prototypes -Wno-trigraphs \
+ 		   -fno-strict-aliasing -O2 \
+ 		   -msoft-float -mno-altivec -mno-vsx \
+-- 
+2.49.0
+


More information about the buildroot mailing list