diff --git a/DEVELOPERS b/DEVELOPERS index e51d56daa2..7d6b364e58 100644 --- a/DEVELOPERS +++ b/DEVELOPERS @@ -2834,6 +2834,7 @@ F: package/supertux/ F: package/supertuxkart/ F: package/terminology/ F: package/tk/ +F: package/tpm2-openssl/ F: package/upower/ F: package/waffle/ F: package/xenomai/ diff --git a/package/Config.in b/package/Config.in index d6658f185f..5f0e7491c8 100644 --- a/package/Config.in +++ b/package/Config.in @@ -1584,6 +1584,7 @@ menu "Crypto" source "package/pkcs11-helper/Config.in" source "package/rhash/Config.in" source "package/tinydtls/Config.in" + source "package/tpm2-openssl/Config.in" source "package/tpm2-pkcs11/Config.in" source "package/tpm2-tss/Config.in" source "package/trousers/Config.in" diff --git a/package/tpm2-openssl/Config.in b/package/tpm2-openssl/Config.in new file mode 100644 index 0000000000..0e151a94d3 --- /dev/null +++ b/package/tpm2-openssl/Config.in @@ -0,0 +1,17 @@ +config BR2_PACKAGE_TPM2_OPENSSL + bool "tpm2-openssl" + depends on !BR2_STATIC_LIBS # tpm2-tss + depends on BR2_TOOLCHAIN_HAS_THREADS + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_TPM2_TSS + help + Provider for integration of TPM 2.0 to OpenSSL 3.0. + + tpm2-openssl is based on a major refactoring of the + tpm2-tss-engine. The code is still there, but largely + reshuffled to match the new OpenSSL API. + + https://github.com/tpm2-software/tpm2-openssl + +comment "tpm2-openssl needs a toolchain w/ dynamic library, threads" + depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS diff --git a/package/tpm2-openssl/tpm2-openssl.hash b/package/tpm2-openssl/tpm2-openssl.hash new file mode 100644 index 0000000000..ee15ee885f --- /dev/null +++ b/package/tpm2-openssl/tpm2-openssl.hash @@ -0,0 +1,3 @@ +# Locally computed: +sha256 2ee15da2dceae1466ffba868e75a00b119d752babc1b6a2792286336a3324fb0 tpm2-openssl-1.2.0.tar.gz +sha256 7ffba9d66226eb67abb9747ce1cd47477d566143a8ded597bbd974c6fb5fe9f5 LICENSE diff --git a/package/tpm2-openssl/tpm2-openssl.mk b/package/tpm2-openssl/tpm2-openssl.mk new file mode 100644 index 0000000000..ed590c2f47 --- /dev/null +++ b/package/tpm2-openssl/tpm2-openssl.mk @@ -0,0 +1,19 @@ +################################################################################ +# +# tpm2-openssl +# +################################################################################ + +TPM2_OPENSSL_VERSION = 1.2.0 +TPM2_OPENSSL_SITE = https://github.com/tpm2-software/tpm2-openssl/releases/download/$(TPM2_OPENSSL_VERSION) +TPM2_OPENSSL_LICENSE = BSD-3-Clause +TPM2_OPENSSL_LICENSE_FILES = LICENSE +TPM2_OPENSSL_INSTALL_STAGING = YES +TPM2_OPENSSL_DEPENDENCIES = host-pkgconf openssl tpm2-tss + +# Provide --with-modulesdir to avoid using abs_builddir and DESTDIR +# (also defined as absolute path) at the same time to define modules +# install path (am__installdirs). +TPM2_OPENSSL_CONF_OPTS = --with-modulesdir="/usr/lib/ossl-modules" + +$(eval $(autotools-package))