All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/gnutls: add tpm2-tss optional dependency
@ 2024-06-27  8:40 Romain Naour via buildroot
  2024-07-10 12:28 ` Thomas Petazzoni via buildroot
  0 siblings, 1 reply; 2+ messages in thread
From: Romain Naour via buildroot @ 2024-06-27  8:40 UTC (permalink / raw)
  To: buildroot; +Cc: Romain Naour

tpm2-tss support is available since gnutls 3.7.3 using
--{with,without}-tpm2 configure option [1].

Since the option is not handled by gnutls package, tpm2-tss support
can be enabled if tpm2-tss package is build before gnutls package.

Likewise, tpm2-tss support can be enabled for the gnutls host variant
if tpm2-tss libraries are installed on the host.
Make sure to disable tpm2-tss support for the host-gnutls.

[1] https://lists.gnupg.org/pipermail/gnutls-help/2022-January/004736.html

Signed-off-by: Romain Naour <romain.naour@smile.fr>
---
 package/gnutls/gnutls.mk | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/package/gnutls/gnutls.mk b/package/gnutls/gnutls.mk
index 8a4f3345aa..8302194812 100644
--- a/package/gnutls/gnutls.mk
+++ b/package/gnutls/gnutls.mk
@@ -57,6 +57,7 @@ HOST_GNUTLS_CONF_OPTS = \
 	--without-librt-prefix \
 	--without-libz-prefix \
 	--without-tpm \
+	--without-tpm2 \
 	--disable-openssl-compatibility \
 	--without-libbrotli \
 	--without-idn \
@@ -98,6 +99,13 @@ else
 GNUTLS_CONF_OPTS += --without-p11-kit
 endif
 
+ifeq ($(BR2_PACKAGE_TPM2_TSS),y)
+GNUTLS_CONF_OPTS += --with-tpm2
+GNUTLS_DEPENDENCIES += tpm2-tss
+else
+GNUTLS_CONF_OPTS += --without-tpm2
+endif
+
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 GNUTLS_CONF_OPTS += --with-zlib
 GNUTLS_DEPENDENCIES += zlib
-- 
2.45.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [Buildroot] [PATCH] package/gnutls: add tpm2-tss optional dependency
  2024-06-27  8:40 [Buildroot] [PATCH] package/gnutls: add tpm2-tss optional dependency Romain Naour via buildroot
@ 2024-07-10 12:28 ` Thomas Petazzoni via buildroot
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-07-10 12:28 UTC (permalink / raw)
  To: Romain Naour via buildroot; +Cc: Romain Naour

On Thu, 27 Jun 2024 10:40:39 +0200
Romain Naour via buildroot <buildroot@buildroot.org> wrote:

> tpm2-tss support is available since gnutls 3.7.3 using
> --{with,without}-tpm2 configure option [1].
> 
> Since the option is not handled by gnutls package, tpm2-tss support
> can be enabled if tpm2-tss package is build before gnutls package.
> 
> Likewise, tpm2-tss support can be enabled for the gnutls host variant
> if tpm2-tss libraries are installed on the host.
> Make sure to disable tpm2-tss support for the host-gnutls.
> 
> [1] https://lists.gnupg.org/pipermail/gnutls-help/2022-January/004736.html
> 
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> ---
>  package/gnutls/gnutls.mk | 8 ++++++++
>  1 file changed, 8 insertions(+)

Applied to master, thanks.

Thomas
-- 
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-07-10 12:28 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-27  8:40 [Buildroot] [PATCH] package/gnutls: add tpm2-tss optional dependency Romain Naour via buildroot
2024-07-10 12:28 ` Thomas Petazzoni via buildroot

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.