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 v3 3/3] package/swtpm: add host package
Date: Mon, 20 May 2024 00:02:35 +0300 [thread overview]
Message-ID: <20240519210235.8493-4-jarkko@kernel.org> (raw)
In-Reply-To: <20240519210235.8493-1-jarkko@kernel.org>
The SWTPM package provides TPM emulators with different front-end
interfaces to libtpms. TPM emulators provide socket interfaces (TCP/IP and
Unix) and the Linux CUSE interface for the creation of multiple native
/dev/vtpm* devices.
Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org>
---
v3:
- Remove libtool from Config.host.in.
v2:
- Remove libraries from Config.host.in.
- Put deps line-by-line.
---
DEVELOPERS | 1 +
package/Config.in.host | 1 +
package/swtpm/Config.in.host | 11 +++++++++++
package/swtpm/swtpm.hash | 2 ++
package/swtpm/swtpm.mk | 24 ++++++++++++++++++++++++
5 files changed, 39 insertions(+)
create mode 100644 package/swtpm/Config.in.host
create mode 100644 package/swtpm/swtpm.hash
create mode 100644 package/swtpm/swtpm.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index db0dc702a8..732002f85b 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -1521,6 +1521,7 @@ F: package/libvirt/
N: Jarkko Sakkinen <jarkko@kernel.org>
F: package/libtpms/
F: package/quota/
+F: package/swtpm/
N: Jason Pruitt <jrspruitt@gmail.com>
F: package/librtlsdr/
diff --git a/package/Config.in.host b/package/Config.in.host
index 986b2854d0..0cf9dc3897 100644
--- a/package/Config.in.host
+++ b/package/Config.in.host
@@ -110,6 +110,7 @@ menu "Host utilities"
source "package/starfive-spltool/Config.in.host"
source "package/sunxi-tools/Config.in.host"
source "package/swig/Config.in.host"
+ source "package/swtpm/Config.in.host"
source "package/swugenerator/Config.in.host"
source "package/systemd/Config.in.host"
source "package/tegrarcm/Config.in.host"
diff --git a/package/swtpm/Config.in.host b/package/swtpm/Config.in.host
new file mode 100644
index 0000000000..0dd984ff8d
--- /dev/null
+++ b/package/swtpm/Config.in.host
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_HOST_SWTPM
+ bool "host swtpm"
+ help
+ Compiles SWTPM software TPM emulator for the host.
+
+ The SWTPM package provides TPM emulators with different
+ front-end interfaces to libtpms. TPM emulators provide socket
+ interfaces (TCP/IP and Unix) and the Linux CUSE interface for
+ the creation of multiple native /dev/vtpm* devices.
+
+ https://github.com/stefanberger/swtpm/wiki
diff --git a/package/swtpm/swtpm.hash b/package/swtpm/swtpm.hash
new file mode 100644
index 0000000000..934d3b6ee0
--- /dev/null
+++ b/package/swtpm/swtpm.hash
@@ -0,0 +1,2 @@
+sha256 b281b4e8c39f68e1928675f788abc70072e4081152e129144359a8c5c304c06b swtpm-0.8.2.tar.gz
+sha256 19d27d6e96d07022e5e688f75c974f1ceb9aae9e90e0fccae68666d02099cc4b LICENSE
diff --git a/package/swtpm/swtpm.mk b/package/swtpm/swtpm.mk
new file mode 100644
index 0000000000..f1e42a8bef
--- /dev/null
+++ b/package/swtpm/swtpm.mk
@@ -0,0 +1,24 @@
+################################################################################
+#
+# swtpm
+#
+################################################################################
+
+SWTPM_VERSION = 0.8.2
+SWTPM_SITE = $(call github,stefanberger,swtpm,v$(SWTPM_VERSION))
+SWTPM_LICENSE = BSD-4-Clause
+SWTPM_LICENSE_FILES = LICENSE
+# Straight from the git repository:
+SWTPM_AUTORECONF = YES
+
+HOST_SWTPM_DEPENDENCIES = \
+ host-json-glib \
+ host-libopenssl \
+ host-libtasn1 \
+ host-libtool \
+ host-libtpms \
+ host-pkgconf
+
+HOST_SWTPM_CONF_OPTS = --with-openssl --without-seccomp
+
+$(eval $(host-autotools-package))
--
2.45.1
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2024-05-19 21:03 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-19 21:02 [Buildroot] [PATCH v3 0/3] swtpm and libtpms host packages Jarkko Sakkinen
2024-05-19 21:02 ` [Buildroot] [PATCH v3 1/3] package/json-glib: add host build Jarkko Sakkinen
2024-05-19 21:02 ` [Buildroot] [PATCH v3 2/3] package/libtpms: add host package Jarkko Sakkinen
2024-05-20 3:06 ` Baruch Siach via buildroot
2024-05-19 21:02 ` Jarkko Sakkinen [this message]
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=20240519210235.8493-4-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.