From: Fabio Estevam <[email protected]>

U-Boot 2026.07 enables the mkeficapsule tool by default. During its
build, mkeficapsule links against libgnutls and requires PKCS#11
symbols such as gnutls_pkcs11_init().

Commit e9f12f64279c ("gnutls: Add p11-kit for native builds") enabled
p11-kit only for gnutls-native. However, this is not sufficient to
build u-boot-tools, which still fails to link mkeficapsule with
undefined references to the PKCS#11 API.

Enable p11-kit in the default PACKAGECONFIG so that the required
symbols are available and u-boot-tools builds successfully.

Signed-off-by: Fabio Estevam <[email protected]>
---
 meta/recipes-support/gnutls/gnutls_3.8.13.bb | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/meta/recipes-support/gnutls/gnutls_3.8.13.bb 
b/meta/recipes-support/gnutls/gnutls_3.8.13.bb
index 943864d4ba..ce9f2b16ff 100644
--- a/meta/recipes-support/gnutls/gnutls_3.8.13.bb
+++ b/meta/recipes-support/gnutls/gnutls_3.8.13.bb
@@ -31,8 +31,7 @@ SRC_URI[sha256sum] = 
"ffed8ec1bf09c2426d4f14aae377de4753b53e537d685e604e99a8b16c
 
 inherit autotools texinfo pkgconfig gettext lib_package gtk-doc ptest
 
-PACKAGECONFIG ??= "libidn libtasn1 ${@bb.utils.filter('DISTRO_FEATURES', 
'seccomp', d)}"
-PACKAGECONFIG:append:class-native = " p11-kit"
+PACKAGECONFIG ??= "libidn libtasn1 p11-kit 
${@bb.utils.filter('DISTRO_FEATURES', 'seccomp', d)}"
 
 # You must also have CONFIG_SECCOMP enabled in the kernel for
 # seccomp to work.
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#241089): 
https://lists.openembedded.org/g/openembedded-core/message/241089
Mute This Topic: https://lists.openembedded.org/mt/120297465/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to