Skip to contentSkip to conversation

arm/edk2-firmware: update to edk2-stable202411

PATCH New Jon Mason 1 participant 3 messages Mar 20, 2025

lore
Share & tools
lore

Jon Mason

author
#0 lore raw

PATCH 1/3 arm/edk2-firmware: update to edk2-stable202411

Update to the latest version of edk2. Unfortunately, sbsa-ref has a kernel warning due to the CPU topology that was added. So, hold this platform back to 202408 and move those recipes to meta-arm-bsp.

---
 meta-arm-bsp/conf/machine/sbsa-ref.conf       |  4 +++
 .../uefi/edk2-basetools-native_202408.bb      |  0
 .../recipes-bsp/uefi/edk2-firmware_202408.bb  |  2 ++
 .../0001-Platform-StMmRpmb-Fix-build.patch    |  0
 .../uefi/edk2-basetools-native_202411.bb      | 26 +++++++++++++++++++
 meta-arm/recipes-bsp/uefi/edk2-firmware.inc   |  1 -
 .../recipes-bsp/uefi/edk2-firmware_202411.bb  |  7 +++++
 ...-in-the-paths-to-the-SBSA-test-suite.patch |  4 +--
 ...02-Enforce-using-good-old-BFD-linker.patch |  6 ++---
 meta-arm/recipes-bsp/uefi/sbsa-acs_7.1.4.bb   |  2 +-
 10 files changed, 45 insertions(+), 7 deletions(-)
 rename {meta-arm => meta-arm-bsp}/recipes-bsp/uefi/edk2-basetools-native_202408.bb (100%)
 rename {meta-arm => meta-arm-bsp}/recipes-bsp/uefi/edk2-firmware_202408.bb (74%)
 rename {meta-arm => meta-arm-bsp}/recipes-bsp/uefi/files/0001-Platform-StMmRpmb-Fix-build.patch (100%)
 create mode 100644 meta-arm/recipes-bsp/uefi/edk2-basetools-native_202411.bb
 create mode 100644 meta-arm/recipes-bsp/uefi/edk2-firmware_202411.bb
meta-arm-bsp/conf/machine/sbsa-ref.conf +4 -0
index ccfc45a8e296..116b4276319d 100644
@@ -26,6 +26,10 @@ EFI_PROVIDER ?= "${@bb.utils.contains("DISTRO_FEATURES", "systemd", "systemd-boo
 SERIAL_CONSOLES ?= "115200;ttyAMA0 115200;hvc0"
 
 EXTRA_IMAGEDEPENDS += "edk2-firmware"
+# FIXME - Currently seeing a kernel warning for the CPU topology when bumping
+# the version past this.  The issue is being tracked in
+# https://github.com/tianocore/edk2-platforms/issues/752
+PREFERRED_VERSION_edk2-firmware ?= "202408%"
 
 QB_SYSTEM_NAME = "qemu-system-aarch64"
 QB_MACHINE = "-machine sbsa-ref"
meta-arm-bsp/recipes-bsp/uefi/edk2-basetools-native_202408.bb renamed from meta-arm/recipes-bsp/uefi/edk2-basetools-native_202408.bb +0 -0
similarity index 100%
rename from meta-arm/recipes-bsp/uefi/edk2-basetools-native_202408.bb
rename to meta-arm-bsp/recipes-bsp/uefi/edk2-basetools-native_202408.bb
meta-arm-bsp/recipes-bsp/uefi/edk2-firmware_202408.bb renamed from meta-arm/recipes-bsp/uefi/edk2-firmware_202408.bb +2 -0
similarity index 74%
rename from meta-arm/recipes-bsp/uefi/edk2-firmware_202408.bb
rename to meta-arm-bsp/recipes-bsp/uefi/edk2-firmware_202408.bb
index 81bfc0002396..ea03d47ba1ea 100644
@@ -1,6 +1,8 @@
 SRCREV_edk2           ?= "b158dad150bf02879668f72ce306445250838201"
 SRCREV_edk2-platforms ?= "a3c898956a4d48dc5980336fa6ce6eeb23c4f72b"
 
+SRC_URI += "file://0001-Platform-StMmRpmb-Fix-build.patch;patchdir=edk2-platforms"
+
 # FIXME - clang is having issues with antlr
 TOOLCHAIN:aarch64 = "gcc"
 
meta-arm-bsp/recipes-bsp/uefi/files/0001-Platform-StMmRpmb-Fix-build.patch renamed from meta-arm/recipes-bsp/uefi/files/0001-Platform-StMmRpmb-Fix-build.patch +0 -0
similarity index 100%
rename from meta-arm/recipes-bsp/uefi/files/0001-Platform-StMmRpmb-Fix-build.patch
rename to meta-arm-bsp/recipes-bsp/uefi/files/0001-Platform-StMmRpmb-Fix-build.patch
meta-arm/recipes-bsp/uefi/edk2-basetools-native_202411.bb new file +26 -0
new file mode 100644
index 000000000000..d89a79015a83
@@ -0,0 +1,26 @@
+# Install EDK2 Base Tools in native sysroot. Currently the BaseTools are not
+# built, they are just copied to native sysroot. This is sufficient for
+# generating UEFI capsules as it only depends on some python scripts. Other
+# tools need to be built first before adding to sysroot.
+
+SUMMARY = "EDK2 Base Tools"
+LICENSE = "BSD-2-Clause-Patent"
+
+# EDK2
+SRC_URI = "git://github.com/tianocore/edk2.git;branch=master;protocol=https"
+LIC_FILES_CHKSUM = "file://License.txt;md5=2b415520383f7964e96700ae12b4570a"
+
+SRCREV = "b158dad150bf02879668f72ce306445250838201"
+
+UPSTREAM_CHECK_GITTAGREGEX = "^edk2-stable(?P<pver>\d+)$"
+
+S = "${WORKDIR}/git"
+
+inherit native
+
+RDEPENDS:${PN} += "python3-core"
+
+do_install () {
+    mkdir -p ${D}${bindir}/edk2-BaseTools
+    cp -r ${WORKDIR}/git/BaseTools/* ${D}${bindir}/edk2-BaseTools/
+}
meta-arm/recipes-bsp/uefi/edk2-firmware.inc +0 -1
index c10154aae09a..42668d9d9cd6 100644
@@ -20,7 +20,6 @@ SRCBRANCH_edk2_platforms = "master"
 SRC_URI = "\
     ${SRC_URI_EDK2};branch=${SRCBRANCH_edk2_platforms};name=edk2;destsuffix=edk2 \
     ${SRC_URI_EDK2_PLATFORMS};branch=${SRCBRANCH_edk2};name=edk2-platforms;destsuffix=edk2/edk2-platforms \
-    file://0001-Platform-StMmRpmb-Fix-build.patch;patchdir=edk2-platforms \
 "
 
 SRCREV_FORMAT         = "edk2_edk2-platforms"
meta-arm/recipes-bsp/uefi/edk2-firmware_202411.bb new file +7 -0
new file mode 100644
index 000000000000..5892a485ec1b
@@ -0,0 +1,7 @@
+SRCREV_edk2           ?= "0f3867fa6ef0553e26c42f7d71ff6bdb98429742"
+SRCREV_edk2-platforms ?= "2d66a9e048285af8ba4bfe4bdaab37a8e98288b3"
+
+# FIXME - clang is having issues with antlr
+TOOLCHAIN:aarch64 = "gcc"
+
+require recipes-bsp/uefi/edk2-firmware.inc
meta-arm/recipes-bsp/uefi/sbsa-acs/0001-Patch-in-the-paths-to-the-SBSA-test-suite.patch +2 -2
index 6d626be5b8d3..e9f8c4173677 100644
@@ -10,7 +10,7 @@ Signed-off-by: Ross Burton <[email protected]>
  1 file changed, 3 insertions(+)
 
 diff --git a/ShellPkg/ShellPkg.dsc b/ShellPkg/ShellPkg.dsc
-index 557b0ec0f3d6..85b3f4fc65d0 100644
+index 7e985f8280a7..ca7a716fadc7 100644
 --- a/ShellPkg/ShellPkg.dsc
 +++ b/ShellPkg/ShellPkg.dsc
 @@ -23,6 +23,8 @@
@@ -22,7 +22,7 @@ index 557b0ec0f3d6..85b3f4fc65d0 100644
    UefiApplicationEntryPoint|MdePkg/Library/UefiApplicationEntryPoint/UefiApplicationEntryPoint.inf
    UefiDriverEntryPoint|MdePkg/Library/UefiDriverEntryPoint/UefiDriverEntryPoint.inf
    UefiBootServicesTableLib|MdePkg/Library/UefiBootServicesTableLib/UefiBootServicesTableLib.inf
-@@ -88,6 +90,7 @@
+@@ -79,6 +81,7 @@
    # Build all the libraries when building this package.
    # This helps developers test changes and how they affect the package.
    #
meta-arm/recipes-bsp/uefi/sbsa-acs/0002-Enforce-using-good-old-BFD-linker.patch +3 -3
index 68a25c71c1d1..2d8a33f4a9da 100644
@@ -1,4 +1,4 @@
-From 365fb8ebbefaa3c642e18e3c3a16eeccfa0dcc82 Mon Sep 17 00:00:00 2001
+From a91273485735b89e67050bb39a09b60a16055dbd Mon Sep 17 00:00:00 2001
 From: Khem Raj <[email protected]>
 Date: Wed, 7 Apr 2021 00:16:07 -0700
 Subject: [PATCH] Enforce using good old BFD linker
@@ -17,10 +17,10 @@ Signed-off-by: Khem Raj <[email protected]>
  1 file changed, 1 insertion(+), 1 deletion(-)
 
 diff --git a/BaseTools/Conf/tools_def.template b/BaseTools/Conf/tools_def.template
-index c34ecfd557c5..153d097a2688 100755
+index 14f3b643c43d..ce3d969625de 100755
 --- a/BaseTools/Conf/tools_def.template
 +++ b/BaseTools/Conf/tools_def.template
-@@ -747,7 +747,7 @@ DEFINE GCC_AARCH64_CC_FLAGS        = DEF(GCC_ALL_CC_FLAGS) -mlittle-endian -fno-
+@@ -905,7 +905,7 @@ DEFINE GCC_AARCH64_CC_FLAGS        = DEF(GCC_ALL_CC_FLAGS) -mlittle-endian -fno-
  DEFINE GCC_AARCH64_CC_XIPFLAGS     = -mstrict-align -mgeneral-regs-only
  DEFINE GCC_RISCV64_CC_XIPFLAGS     = -mstrict-align -mgeneral-regs-only
  DEFINE GCC_DLINK_FLAGS_COMMON      = -nostdlib --pie
meta-arm/recipes-bsp/uefi/sbsa-acs_7.1.4.bb +1 -1
index b6361346c5b4..bb668bb48717 100644
@@ -1,4 +1,4 @@
-require recipes-bsp/uefi/edk2-firmware_202408.bb
+require recipes-bsp/uefi/edk2-firmware_202411.bb
 PROVIDES:remove = "virtual/bootloader"
 
 LICENSE += "& Apache-2.0"
Signature · 1 line
2.39.5 (Apple Git-154)
author
#1 lore raw

PATCH 2/3 arm/opencsd: update to v1.5.6

---
 .../opencsd/{opencsd_1.5.5.bb => opencsd_1.5.6.bb}              | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 rename meta-arm/recipes-devtools/opencsd/{opencsd_1.5.5.bb => opencsd_1.5.6.bb} (95%)
meta-arm/recipes-devtools/opencsd/opencsd_1.5.6.bb renamed from meta-arm/recipes-devtools/opencsd/opencsd_1.5.5.bb +1 -1
similarity index 95%
rename from meta-arm/recipes-devtools/opencsd/opencsd_1.5.5.bb
rename to meta-arm/recipes-devtools/opencsd/opencsd_1.5.6.bb
index a2ca8c62cf95..8deafd323ae5 100644
@@ -4,7 +4,7 @@ LICENSE = "BSD-3-Clause"
 LIC_FILES_CHKSUM = "file://LICENSE;md5=ad8cb685eb324d2fa2530b985a43f3e5"
 
 SRC_URI = "git://github.com/Linaro/OpenCSD;protocol=https;branch=master"
-SRCREV = "742d60ed7dc762d8d2e7f07037fac0eb17654e2f"
+SRCREV = "1900c6fd110275305b956aa47bd9f0c76b13a134"
 
 S = "${WORKDIR}/git"
 
Signature · 1 line
2.39.5 (Apple Git-154)
author
#2 lore raw

PATCH 3/3 arm/trusted-firmware-a: update 2.12.0 recipe to 2.12.1

In reply to Jon Mason

Update to the lts-v2.12.1 tag. Changes include a number of CVE fixes and mbedtls minor version bump:

	8cf9edba5cc3 docs(changelog): changelog for lts-v2.12.1 release
	f5d048108bf3 Merge changes from topic "for-lts-v2.12.1" into lts-v2.12
	56472775f96d docs(maintainers): update LTS maintainers
	baab55315c7f docs: updates to LTS
	f00f71efc410 docs: add inital lts doc
	1a8ee82c6d77 Merge changes from topic "for-lts-v2.12.1" into lts-v2.12
	b19ce90a908c fix(rd1ae): fix rd1-ae device tree
	34f10e7d9fc7 feat(rd1ae): add Generic Timer in device tree
	551dc4c09f57 docs(rd1ae): update documentation to include BL32
	8e4240779867 feat(rd1ae): add support for OP-TEE SPMC
	8e4bb69c747e feat(mbedtls): mbedtls config update for v3.6.2
	a46d6a1320d7 docs(prerequisites): update mbedtls to version 3.6.2
	2ffe181a3982 refactor(mbedtls): rename default mbedtls confs
	3809359e2124 fix(cpus): workaround for Neoverse-V3 erratum 3701767
	4a9ff092c9b4 fix(cpus): workaround for Neoverse-N3 erratum 3699563
	7e41b706e97c fix(cpus): workaround for Neoverse-N2 erratum 3701773
	15300ac30c55 fix(cpus): workaround for Cortex-X925 erratum 3701747
	6e0efc7fe739 fix(cpus): workaround for Cortex-X4 erratum 3701758
	8299c1274617 fix(cpus): workaround for Cortex-X3 erratum 3701769
	fa6c9874485b fix(cpus): workaround for Cortex-X2 erratum 3701772
	4e78288fd2bc fix(cpus): workaround for Cortex-A725 erratum 3699564
	ae6edfd5b543 fix(cpus): workaround for Cortex-A720-AE erratum 3699562
	24526273fc50 fix(cpus): workaround for Cortex-A720 erratum 3699561
	a7b322706435 fix(cpus): workaround for Cortex-A715 erratum 3699560
	d4826882210b fix(cpus): workaround for Cortex-A710 erratum 3701772
	9d6143ec8ffb fix(cpus): workaround for accessing ICH_VMCR_EL2
	7e4bf042a0dd chore(cpus): fix incorrect header macro
	9427c061eb8d fix(security): apply SMCCC_ARCH_WORKAROUND_4 to affected cpus
	bea64fd5272d fix(security): add support in cpu_ops for CVE-2024-7881
	16b87247ed03 fix(security): add CVE-2024-7881 mitigation to Cortex-X3
	427c33bc0c0b fix(security): add CVE-2024-7881 mitigation to Neoverse-V3
	192a152448ae fix(security): add CVE-2024-7881 mitigation to Neoverse-V2
	3e4d94c43b64 fix(security): add CVE-2024-7881 mitigation to Cortex-X925
	41a52efd6f38 fix(security): add CVE-2024-7881 mitigation to Cortex-X4
	2f09b9f3c2af fix(security): enable WORKAROUND_CVE_2024_7881 build option
	70a7d3f2d030 fix(cpus): workaround for CVE-2024-5660 for Cortex-X925
	41b64fe36f42 fix(cpus): workaround for CVE-2024-5660 for Cortex-X2
	0b2d22097c96 fix(cpus): workaround for CVE-2024-5660 for Cortex-A77
	193370e1c6a2 fix(cpus): workaround for CVE-2024-5660 for Neoverse-V1
	d52c52a5fa8c fix(cpus): workaround for CVE-2024-5660 for Cortex-A78_AE
	3bd6531a55a4 fix(cpus): workaround for CVE-2024-5660 for Cortex-A78C
	eda09acd1b22 fix(cpus): workaround for CVE-2024-5660 for Cortex-A78
	b9766da96365 fix(cpus): workaround for CVE-2024-5660 for Cortex-X1
	6324220805b1 fix(cpus): workaround for CVE-2024-5660 for Neoverse-N2
	6041f0723994 fix(cpus): workaround for CVE-2024-5660 for Cortex-A710
	b23f5da614e6 fix(cpus): workaround for CVE-2024-5660 for Neoverse-V2
	ef378713fa4b fix(cpus): workaround for CVE-2024-5660 for Cortex-X3
	2898088f8ba6 fix(cpus): workaround for CVE-2024-5660 for Neoverse-V3
	b8e111c72619 fix(cpus): workaround for CVE-2024-5660 for Cortex-X4
	a6f6396313ea fix(cpus): workaround for Cortex-X4 erratum 2923985
	d1c3a5d8b9d8 fix(build): do not force PLAT in plat_helpers.mk
	ea1b816b1763 chore(deps): update pytest for cot-dt2c
	65762d7b4cfc chore(deps): bump jinja2
	87f3125a0e45 chore(deps): bump jinja2 in the pip group across 1 directory
	b4530565c030 chore(deps): bump the pip group across 2 directories with 1 update
	11e5f92d3d43 build(deps): bump setuptools in the pip group across 1 directory
	850389f4acfe chore(deps): bump micromatch
---
 ...ptool-native_2.12.0.bb => fiptool-native_2.12.1.bb} |  6 +++---
 ...rmware-a_2.12.0.bb => trusted-firmware-a_2.12.1.bb} | 10 +++++-----
 2 files changed, 8 insertions(+), 8 deletions(-)
 rename meta-arm/recipes-bsp/trusted-firmware-a/{fiptool-native_2.12.0.bb => fiptool-native_2.12.1.bb} (90%)
 rename meta-arm/recipes-bsp/trusted-firmware-a/{trusted-firmware-a_2.12.0.bb => trusted-firmware-a_2.12.1.bb} (77%)
meta-arm/recipes-bsp/trusted-firmware-a/fiptool-native_2.12.1.bb renamed from meta-arm/recipes-bsp/trusted-firmware-a/fiptool-native_2.12.0.bb +3 -3
similarity index 90%
rename from meta-arm/recipes-bsp/trusted-firmware-a/fiptool-native_2.12.0.bb
rename to meta-arm/recipes-bsp/trusted-firmware-a/fiptool-native_2.12.1.bb
index e7fbb8b499ef..98c8edda730c 100644
@@ -9,9 +9,9 @@ SRC_URI_TRUSTED_FIRMWARE_A ?= "git://git.trustedfirmware.org/TF-A/trusted-firmwa
 SRC_URI = "${SRC_URI_TRUSTED_FIRMWARE_A};destsuffix=fiptool-${PV};branch=${SRCBRANCH}"
 LIC_FILES_CHKSUM = "file://docs/license.rst;md5=83b7626b8c7a37263c6a58af8d19bee1"
 
-# Use fiptool from TF-A v2.12.0
-SRCREV = "4ec2948fe3f65dba2f19e691e702f7de2949179c"
-SRCBRANCH = "master"
+# Use fiptool from TF-A v2.12.1
+SRCREV = "8cf9edba5cc3ec11ed5463f206aa5819f7fdbade"
+SRCBRANCH = "lts-v2.12"
 
 DEPENDS += "openssl-native"
 
meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a_2.12.1.bb renamed from meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a_2.12.0.bb +5 -5
similarity index 77%
rename from meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a_2.12.0.bb
rename to meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a_2.12.1.bb
index ceaac263fc75..57c30b581797 100644
@@ -1,15 +1,15 @@
 require recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc
 
-# TF-A v2.12.0
-SRCREV_tfa = "4ec2948fe3f65dba2f19e691e702f7de2949179c"
-SRCBRANCH = "master"
+# TF-A v2.12.1
+SRCREV_tfa = "8cf9edba5cc3ec11ed5463f206aa5819f7fdbade"
+SRCBRANCH = "lts-v2.12"
 
 LIC_FILES_CHKSUM += "file://docs/license.rst;md5=83b7626b8c7a37263c6a58af8d19bee1"
 
 # in TF-A src, docs/getting_started/prerequisites.rst lists the expected version mbedtls
-# mbedtls-3.6.1
+# mbedtls-3.6.2
 SRC_URI_MBEDTLS = "git://github.com/ARMmbed/mbedtls.git;name=mbedtls;protocol=https;destsuffix=git/mbedtls;branch=mbedtls-3.6"
-SRCREV_mbedtls = "71c569d44bf3a8bd53d874c81ee8ac644dd6e9e3"
+SRCREV_mbedtls = "107ea89daaefb9867ea9121002fbbdf926780e98"
 
 LIC_FILES_CHKSUM_MBEDTLS = "file://mbedtls/LICENSE;md5=379d5819937a6c2f1ef1630d341e026d"
 
Signature · 1 line
2.39.5 (Apple Git-154)