[PATCH 1/2] arm/trusted-firmware-m: apply local patches in the git version

Ross Burton <[email protected]> Mon, 15 Dec 2025 18:00:50 +0000
Newsgroups org.yoctoproject.lists.meta-arm
Message-ID <[email protected]>
When the git version of this recipe was created, the application of local
patches was left out.

Signed-off-by: Ross Burton <[email protected]>
---
 .../trusted-firmware-m-git-src.inc                   | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m-git-src.inc b/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m-git-src.inc
index fc23c0285d..bf3a07d218 100644
--- a/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m-git-src.inc
+++ b/meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m-git-src.inc
@@ -62,3 +62,15 @@ SRCREV_t-cose = "3076010eeb6383f0827bd992c75b68af9311cf1d"
 SRCREV_FORMAT = "tfm"
 
 S = "${UNPACKDIR}/tfm"
+
+# Apply patches
+inherit apply_local_src_patches
+LOCAL_SRC_PATCHES_INPUT_DIR = "N/A"
+
+do_apply_local_src_patches() {
+    apply_local_src_patches ${S}/lib/ext/qcbor ${UNPACKDIR}/qcbor
+    apply_local_src_patches ${S}/lib/ext/mbedcrypto ${UNPACKDIR}/mbedtls
+    apply_local_src_patches ${S}/lib/ext/mcuboot ${UNPACKDIR}/mcuboot
+    apply_local_src_patches ${S}/lib/ext/tf-m-tests ${UNPACKDIR}/tf-m-tests
+    apply_local_src_patches ${S}/lib/ext/t_cose ${UNPACKDIR}/t_cose
+}
-- 
2.43.0