Skip to contentSkip to conversation

arm-bsp/edk2-firmware: backport a patch to fix builds with host gcc15

PATCH New Ross Burton 1 participant 1 message Oct 6, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm-bsp/edk2-firmware: backport a patch to fix builds with host gcc15

Backport a patch from upstream to fix the build of antlr with GCC 15 on the host.

The build still fails with clang, so update the message with the current error message.

---
 .../recipes-bsp/uefi/edk2-firmware_202408.bb  |  7 ++-
 .../0001-BaseTools-Pccts-set-C-standard.patch | 47 +++++++++++++++++++
 2 files changed, 52 insertions(+), 2 deletions(-)
 create mode 100644 meta-arm-bsp/recipes-bsp/uefi/files/0001-BaseTools-Pccts-set-C-standard.patch
meta-arm-bsp/recipes-bsp/uefi/edk2-firmware_202408.bb +5 -2
index ea03d47ba1..fa44e28f7f 100644
@@ -1,9 +1,12 @@
 SRCREV_edk2           ?= "b158dad150bf02879668f72ce306445250838201"
 SRCREV_edk2-platforms ?= "a3c898956a4d48dc5980336fa6ce6eeb23c4f72b"
 
-SRC_URI += "file://0001-Platform-StMmRpmb-Fix-build.patch;patchdir=edk2-platforms"
+SRC_URI += "file://0001-Platform-StMmRpmb-Fix-build.patch;patchdir=edk2-platforms \
+            file://0001-BaseTools-Pccts-set-C-standard.patch"
 
-# FIXME - clang is having issues with antlr
+# FIXME:
+# ArmPkg/Universal/Smbios/SmbiosMiscDxe/Type03/MiscChassisManufacturerFunction.c:146:37:
+# error: variable 'ContainedElements' is uninitialized when passed as a const pointer argument here [-Werror,-Wuninitialized-const-pointer]
 TOOLCHAIN:aarch64 = "gcc"
 
 require recipes-bsp/uefi/edk2-firmware.inc
meta-arm-bsp/recipes-bsp/uefi/files/0001-BaseTools-Pccts-set-C-standard.patch new file +47 -0

47 lines not on this page · raw message

Signature · 1 line
2.43.0