diff mbox series

[1/3] arm-bsp/u-boot: enable OpenSSL engine stub API

Message ID 20260909180341.3858400-1-ross.burton@arm.com
State New
Headers show
Series [1/3] arm-bsp/u-boot: enable OpenSSL engine stub API | expand

Commit Message

Ross Burton Sept. 9, 2026, 6:03 p.m. UTC
u-boot/lib/rsa/rsa-sign.c uses the OpenSSL engine API, but this has been
removed from OpenSSL 4. Patches are being worked on upstream and the
recipe in oe-core has those patches, but for ease we can simply enable
the stub API to fix the build until this old recipe is removed.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta-arm-bsp/recipes-bsp/u-boot/u-boot_2025.10.bb | 5 +++++
 1 file changed, 5 insertions(+)
diff mbox series

Patch

diff --git a/meta-arm-bsp/recipes-bsp/u-boot/u-boot_2025.10.bb b/meta-arm-bsp/recipes-bsp/u-boot/u-boot_2025.10.bb
index 39af337d362..e9a7e52a68e 100644
--- a/meta-arm-bsp/recipes-bsp/u-boot/u-boot_2025.10.bb
+++ b/meta-arm-bsp/recipes-bsp/u-boot/u-boot_2025.10.bb
@@ -5,3 +5,8 @@  DEPENDS += "bc-native dtc-native gnutls-native python3-pyelftools-native"
 
 SRCREV = "e50b1e8715011def8aff1588081a2649a2c6cd47"
 SRC_URI = "git://source.denx.de/u-boot/u-boot.git;protocol=https;branch=master"
+
+# u-boot/lib/rsa/rsa-sign.c uses the OpenSSL engine API, but this has been removed
+# from OpenSSL 4.  Upstream u-boot has been fixed but we can enable the stub engine
+# API in OpenSSL until this recipe is removed.
+BUILD_CFLAGS += "-DOPENSSL_ENGINE_STUBS"