mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [PATCH 4/5] ptxdist: add tpm2-tss-engine 2018.11
@ 2018-11-26 10:23 Thorsten K. Scherer
  2018-11-28  8:06 ` Marc Kleine-Budde
  0 siblings, 1 reply; 2+ messages in thread
From: Thorsten K. Scherer @ 2018-11-26 10:23 UTC (permalink / raw)
  To: ptxdist

Signed-off-by: Thorsten K. Scherer <t.scherer@eckelmann.de>
---
 patches/tpm2-tss-engine-2018.11/autogen.sh |  1 +
 rules/tpm2-tss-engine.in                   | 15 ++++++
 rules/tpm2-tss-engine.make                 | 57 ++++++++++++++++++++++
 3 files changed, 73 insertions(+)
 create mode 100644 patches/tpm2-tss-engine-2018.11/autogen.sh
 create mode 100644 rules/tpm2-tss-engine.in
 create mode 100644 rules/tpm2-tss-engine.make

diff --git a/patches/tpm2-tss-engine-2018.11/autogen.sh b/patches/tpm2-tss-engine-2018.11/autogen.sh
new file mode 100644
index 0000000..e62625c
--- /dev/null
+++ b/patches/tpm2-tss-engine-2018.11/autogen.sh
@@ -0,0 +1 @@
+./bootstrap
diff --git a/rules/tpm2-tss-engine.in b/rules/tpm2-tss-engine.in
new file mode 100644
index 0000000..601bdab
--- /dev/null
+++ b/rules/tpm2-tss-engine.in
@@ -0,0 +1,15 @@
+## SECTION=tpm
+
+config TPM2_TSS_ENGINE
+       tristate
+       select TPM2_TSS
+       prompt "tpm2-tss-engine"
+       help
+         The tpm2-tss-engine project implements a cryptographic
+         engine for OpenSSL for Trusted Platform Module (TPM 2.0) 
+         using the tpm2-tss software stack that follows the
+         Trusted Computing Groups (TCG) TPM Software Stack 
+         (TSS 2.0). It uses the Enhanced System API (ESAPI) 
+         interface of the TSS 2.0 for downwards communication.
+         It supports RSA decryption and signatures as well as 
+         ECDSA signatures.
diff --git a/rules/tpm2-tss-engine.make b/rules/tpm2-tss-engine.make
new file mode 100644
index 0000000..536c52a
--- /dev/null
+++ b/rules/tpm2-tss-engine.make
@@ -0,0 +1,57 @@
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_TPM2_TSS_ENGINE) += tpm2-tss-engine
+
+#
+# Paths and names
+#
+TPM2_TSS_ENGINE_COMMIT        := 1dbc98725f61fe8683bab4626b3865915238bee8
+TPM2_TSS_ENGINE_VERSION       := 0+2018.11.22-1-g$(TPM2_TSS_ENGINE_COMMIT)
+TPM2_TSS_ENGINE_MD5           := 9e6b432565a23ec18a771cda7d309955
+TPM2_TSS_ENGINE               := tpm2-tss-engine-$(TPM2_TSS_ENGINE_VERSION)
+TPM2_TSS_ENGINE_SUFFIX        := tar.gz
+TPM2_TSS_ENGINE_URL           := https://github.com/tpm2-software/tpm2-tss-engine/archive/$(TPM2_TSS_ENGINE_COMMIT).$(TPM2_TSS_ENGINE_SUFFIX)
+TPM2_TSS_ENGINE_SOURCE        := $(SRCDIR)/$(TPM2_TSS_ENGINE).$(TPM2_TSS_ENGINE_SUFFIX)
+TPM2_TSS_ENGINE_DIR           := $(BUILDDIR)/$(TPM2_TSS_ENGINE)
+TPM2_TSS_ENGINE_LICENSE       := BSD-3-Clause
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+TPM2_TSS_ENGINE_CONF_TOOL := autoconf
+
+$(STATEDIR)/tpm2-tss-engine.extract.post: $(STATEDIR)/autogen-tools
+	@$(call targetinfo)
+	@cd $(TPM2_TSS_ENGINE_DIR) && ./bootstrap
+	@$(call world/patchin/post, TPM2_TSS_ENGINE)
+	@$(call touch)
+
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/tpm2-tss-engine.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, tpm2-tss-engine)
+	@$(call install_fixup, tpm2-tss-engine,PRIORITY,optional)
+	@$(call install_fixup, tpm2-tss-engine,SECTION,base)
+	@$(call install_fixup, tpm2-tss-engine,AUTHOR,"Marcel Gudert <m.gudert@eckelmann.de>")
+	@$(call install_fixup, tpm2-tss-engine,DESCRIPTION,missing)
+
+	@$(call install_copy, tpm2-tss-engine, tss, tss, 0644, $(TPM2_TSS_ENGINE_DIR)/.libs/libtpm2tss.so, /usr/lib/libtpm2tss.so)
+	@$(call install_link, tpm2-tss-engine, /usr/lib/libtpm2tss.so, /usr/lib/engines/libtpm2tss.so)
+	@$(call install_link, tpm2-tss-engine, /usr/lib/libtpm2tss.so, /usr/lib/engines/tpm2tss.so)
+	@$(call install_copy, tpm2-tss-engine, tss, tss, 0755, -, /usr/bin/tpm2tss-genkey)
+
+	@$(call install_finish, tpm2-tss-engine)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.19.1


-- 
Eckelmann AG
Vorstand: Dipl.-Ing. Peter Frankenbach (Sprecher) Dipl.-Wi.-Ing. Philipp Eckelmann
Dr.-Ing. Marco Münchhof Dr.-Ing. Frank Uhlemann
Vorsitzender des Aufsichtsrats: Hubertus G. Krossa
Stv. Vorsitzender des Aufsichtsrats: Dr.-Ing. Gerd Eckelmann
Sitz der Gesellschaft: Berliner Str. 161, 65205 Wiesbaden, Amtsgericht Wiesbaden HRB 12636
http://www.eckelmann.de

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-28  8:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-26 10:23 [ptxdist] [PATCH 4/5] ptxdist: add tpm2-tss-engine 2018.11 Thorsten K. Scherer
2018-11-28  8:06 ` Marc Kleine-Budde

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox