Skip to content

Add support for pkcs11 to host-gnutls

Vincent Stehlé buildroot 1 version In review

Get series with b4
b4 am [email protected] change-id 20260603-p11-53a6f87c7d2e

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2package/p11-kit: enable host buildpackage/p11-kit/p11-kit.mk+9 -00 replies
2/2package/gnutls: add host support for pkcs11package/gnutls/gnutls.mk+3 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Buildroot] [PATCH next 0/2] Add support for pkcs11 to host-gnutls

Future U-Boot 2026.07 will build mkeficapsule with pkcs11 support. [1]

This causes link errors with Buildroot, such as the following one:

mkeficapsule.c:(.text.startup+0xcd3): undefined reference to `gnutls_pkcs11_init'

(Other symbols the linker complains about are: gnutls_pkcs11_add_provider, gnutls_pkcs11_obj_list_import_url4, gnutls_x509_crt_import_pkcs11 and gnutls_pkcs11_deinit.)

The following example commands can be used to reproduce the issue:

make qemu_aarch64_ebbr_defconfig
echo 'BR2_TARGET_UBOOT_CUSTOM_VERSION_VALUE="2026.07-rc3"' >>.config echo 'BR2_TARGET_UBOOT_NEEDS_GNUTLS=y' >>.config
echo '# BR2_DOWNLOAD_FORCE_CHECK_HASHES is not set' >>.config make olddefconfig
make uboot

This series does the following changes to solve this issue:
1. Enable host compilation for p11-kit
2. Build host-gnutls with pkcs11 support, leveraging the new host-p11-kit.

For the sake of simplicity, pkcs11 support is added unconditionally to host-gnutls. If this is preferred, a config option could be added instead.

---
Vincent Stehlé (2):
package/p11-kit: enable host build
package/gnutls: add host support for pkcs11

 package/gnutls/gnutls.mk   | 5 +++--
 package/p11-kit/p11-kit.mk | 9 +++++++++
 2 files changed, 12 insertions(+), 2 deletions(-)

---
base-commit: 32351f979822a0b3a45b82c2d82bdb2328b02f5a
change-id: 20260603-p11-53a6f87c7d2e

Best regards,

Signature · 6 lines
Vincent.

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot