From: Jarkko Sakkinen <jarkko@kernel.org>
To: buildroot@buildroot.org
Cc: Jarkko Sakkinen <jarkko@kernel.org>,
"Yann E . MORIN" <yann.morin.1998@free.fr>,
Stefan Berger <stefanb@linux.ibm.com>
Subject: [Buildroot] [PATCH v7 2/3] package/libtpms: add host package
Date: Thu, 6 Jun 2024 02:35:02 +0300 [thread overview]
Message-ID: <20240605233503.23516-3-jarkko@kernel.org> (raw)
In-Reply-To: <20240605233503.23516-1-jarkko@kernel.org>
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>
---
v7:
- Rebase to f77d698f83b2 ("support/scripts/apply-patches: use appropriate TAR").
v6:
- Remove Config.in.host entirely. Not required for pure deps.
v5:
- Config.in.host
- s/"libtpms"/"host libtpms"/
v4:
- Changed in libtpms.mk to purely HOST_*.
v3:
- Use package deps in Kconfig as this just a library.
- DEPENDENCIES and CONF_OPTS for the host build
v2:
- Use host packages in package/libtpms/Config.in.
- Select BR2_HOST_PACKAGE_LIBOPENSSL.
---
DEVELOPERS | 1 +
package/libtpms/libtpms.hash | 2 ++
package/libtpms/libtpms.mk | 18 ++++++++++++++++++
3 files changed, 21 insertions(+)
create mode 100644 package/libtpms/libtpms.hash
create mode 100644 package/libtpms/libtpms.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 03aa7bfa74..3ca7fcc36e 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1521,6 +1521,7 @@ N: Jared Bents <jared.bents@rockwellcollins.com>
F: package/libvirt/
N: Jarkko Sakkinen <jarkko@kernel.org>
+F: package/libtpms/
F: package/quota/
N: Jason Pruitt <jrspruitt@gmail.com>
diff --git a/package/libtpms/libtpms.hash b/package/libtpms/libtpms.hash
new file mode 100644
index 0000000000..1026aaa4f4
--- /dev/null
+++ b/package/libtpms/libtpms.hash
@@ -0,0 +1,2 @@
+sha256 2807466f1563ebe45fdd12dd26e501e8a0c4fbb99c7c428fbb508789efd221c0 libtpms-0.9.6.tar.gz
+sha256 82f1e6bae374bb6a9d4f4596767fd33e499718d560de140fd9f3d402cc5e41fb LICENSE
diff --git a/package/libtpms/libtpms.mk b/package/libtpms/libtpms.mk
new file mode 100644
index 0000000000..19d7cef89f
--- /dev/null
+++ b/package/libtpms/libtpms.mk
@@ -0,0 +1,18 @@
+################################################################################
+#
+# 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
+
+# Required because a plain Git clone is used:
+HOST_LIBTPMS_AUTORECONF = YES
+HOST_LIBTPMS_DEPENDENCIES = host-pkgconf host-openssl
+HOST_LIBTPMS_CONF_OPTS = --with-openssl -with-tpm2
+
+$(eval $(host-autotools-package))
--
2.45.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2024-06-05 23:35 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-05 23:35 [Buildroot] [PATCH v7 0/3] swtpm and libtpms host packages Jarkko Sakkinen
2024-06-05 23:35 ` [Buildroot] [PATCH v7 1/3] package/json-glib: add host build Jarkko Sakkinen
2024-06-06 9:31 ` Yann E. MORIN
2024-06-05 23:35 ` Jarkko Sakkinen [this message]
2024-06-05 23:35 ` [Buildroot] [PATCH v7 3/3] package/swtpm: add host package Jarkko Sakkinen
2024-06-06 9:30 ` Yann E. MORIN
2024-06-06 11:49 ` Jarkko Sakkinen
2024-06-06 11:54 ` Yann E. MORIN
2024-06-06 9:26 ` [Buildroot] [PATCH v7 0/3] swtpm and libtpms host packages 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=20240605233503.23516-3-jarkko@kernel.org \
--to=jarkko@kernel.org \
--cc=buildroot@buildroot.org \
--cc=stefanb@linux.ibm.com \
--cc=yann.morin.1998@free.fr \
/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 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.