@@ -1519,6 +1519,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>
@@ -1569,6 +1569,7 @@ menu "Crypto"
source "package/libssh/Config.in"
source "package/libssh2/Config.in"
source "package/libtomcrypt/Config.in"
+ source "package/libtpms/Config.in"
source "package/libuecc/Config.in"
source "package/libxcrypt/Config.in"
source "package/mbedtls/Config.in"
new file mode 100644
@@ -0,0 +1,20 @@
+config BR2_PACKAGE_LIBTPMS
+ bool "libtpms"
+ select BR2_PACKAGE_LIBTOOL
+ select BR2_PACKAGE_OPENSSL
+ help
+ 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.
+
+ It is assumed that the user of libtpms is familiar with the
+ concepts of the Trusted Platform Module (TPM). For the
+ interaction with libtpms it is necessary to know how to
+ construct valid TPM commands and to be able to parse their
+ results. It is not within the scope of libtpms's documentation
+ to provide background on this. See the section on references
+ below.
+
+ https://github.com/stefanberger/libtpms/wiki
new file mode 100644
@@ -0,0 +1,2 @@
+sha256 2807466f1563ebe45fdd12dd26e501e8a0c4fbb99c7c428fbb508789efd221c0 libtpms-0.9.6.tar.gz
+sha256 82f1e6bae374bb6a9d4f4596767fd33e499718d560de140fd9f3d402cc5e41fb LICENSE
new file mode 100644
@@ -0,0 +1,21 @@
+################################################################################
+#
+# 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
+# Straight from the git repository:
+LIBTPMS_AUTORECONF = YES
+
+LIBTPMS_DEPENDENCIES = libtool pkgconf openssl
+LIBTPMS_CONF_OPTS = --with-openssl -with-tpm2
+
+HOST_LIBTPMS_DEPENDENCIES = host-libtool host-pkgconf host-openssl
+HOST_LIBTPMS_CONF_OPTS = --with-openssl -with-tpm2
+
+$(eval $(host-autotools-package))
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> --- 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/Config.in | 1 + package/libtpms/Config.in | 20 ++++++++++++++++++++ package/libtpms/libtpms.hash | 2 ++ package/libtpms/libtpms.mk | 21 +++++++++++++++++++++ 5 files changed, 45 insertions(+) create mode 100644 package/libtpms/Config.in create mode 100644 package/libtpms/libtpms.hash create mode 100644 package/libtpms/libtpms.mk -- 2.45.1