Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Yann E. MORIN" <yann.morin.1998@free.fr>
To: Jarkko Sakkinen <jarkko@kernel.org>
Cc: Stefan Berger <stefanb@linux.ibm.com>, buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH v2 2/3] package/libtpms: add host package
Date: Fri, 17 May 2024 20:44:32 +0200	[thread overview]
Message-ID: <ZkelkMYnP8ykEFkY@landeda> (raw)
In-Reply-To: <20240517173140.24531-3-jarkko@kernel.org>

Jarkko, All,

On 2024-05-17 20:31 +0300, Jarkko Sakkinen spake thusly:
> Libtpms is a library that targets the integration of TPM functionality
> into hypervisors, primarily into Qemu. Libtpms provides a very narrow
> public API for this purpose so that integration is possible. Only the
> minimum of necessary APIs are made publicly available.
> 
> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
> ---
> v2:
> - Use host packages in package/libtpms/Config.in.
> - Select BR2_HOST_PACKAGE_LIBOPENSSL.

s/HOST_PACKAGE/PACKAGE_HOST/

However [0]...

[--SNIP--]
> diff --git a/package/libtpms/Config.in b/package/libtpms/Config.in
> new file mode 100644
> index 0000000000..9308458248
> --- /dev/null
> +++ b/package/libtpms/Config.in
> @@ -0,0 +1,19 @@
> +config BR2_HOST_PACKAGE_LIBTPMS

s/HOST_PACKAGE/PACKAGE_HOST/

> +	bool "libtpms"
> +	select BR2_HOST_PACKAGE_LIBTOOL

[0]... here you select libtool instead of openssl.

And we can't select libopenssl; instead we select openssl:

    $ git grep 'select BR2_PACKAGE_LIBOPENSSL\>'
    [nada, naught, zilch]

    $ git grep 'select BR2_PACKAGE_OPENSSL\>'
    [156 results]

And anyway, in this case again there is no need for a Kconfig xymbo, as
libtpms only provides a library, so there is only the need for
libtpms.mk (and the hash file too).

[--SNIP--]
> diff --git a/package/libtpms/libtpms.mk b/package/libtpms/libtpms.mk
> new file mode 100644
> index 0000000000..c588b2892c
> --- /dev/null
> +++ b/package/libtpms/libtpms.mk
> @@ -0,0 +1,17 @@
> +################################################################################
> +#
> +# libtpms
> +#
> +################################################################################
> +
> +LIBTPMS_VERSION = 0.9.6
> +LIBTPMS_SITE = $(call github,stefanberger,libtpms,v$(LIBTPMS_VERSION))
> +LIBTPMS_LICENSE = BSD-4-Clause
> +LIBTPMS_LICENSE_FILES = LICENSE
> +LIBTPMS_INSTALL_STAGING = YES
> +LIBTPMS_AUTORECONF = YES

Sorry, I missed that in my previous review, but we usually add a little
comment why autoreconf is needed:

    # Straight from the git repository
    LIBTPMS_AUTORECONF = YES

Regards,
Yann E. MORIN.

> +HOST_LIBTPMS_DEPENDENCIES = host-libtool host-pkgconf host-libopenssl
> +HOST_LIBTPMS_CONF_OPTS = --with-openssl  -with-tpm2
> +
> +$(eval $(host-autotools-package))
> --
> 2.45.0
> 
> _______________________________________________
> buildroot mailing list
> buildroot@buildroot.org
> https://lists.buildroot.org/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 561 099 427 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

  reply	other threads:[~2024-05-17 18:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-17 17:31 [Buildroot] [PATCH v2 0/3] swtpm and libtpms host packages Jarkko Sakkinen
2024-05-17 17:31 ` [Buildroot] [PATCH v2 1/3] package/json-glib: add host build Jarkko Sakkinen
2024-05-17 18:35   ` Yann E. MORIN
2024-05-17 17:31 ` [Buildroot] [PATCH v2 2/3] package/libtpms: add host package Jarkko Sakkinen
2024-05-17 18:44   ` Yann E. MORIN [this message]
2024-05-17 17:31 ` [Buildroot] [PATCH v2 3/3] package/swtpm: " Jarkko Sakkinen
2024-05-17 19:23   ` Yann E. MORIN

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZkelkMYnP8ykEFkY@landeda \
    --to=yann.morin.1998@free.fr \
    --cc=buildroot@buildroot.org \
    --cc=jarkko@kernel.org \
    --cc=stefanb@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox