From: "Thorsten K. Scherer" <t.scherer@eckelmann.de>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH 4/5] ptxdist: add tpm2-tss-engine 2018.11
Date: Mon, 26 Nov 2018 11:23:38 +0100 [thread overview]
Message-ID: <20181126102338.31647-1-t.scherer@eckelmann.de> (raw)
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
next reply other threads:[~2018-11-26 10:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-26 10:23 Thorsten K. Scherer [this message]
2018-11-28 8:06 ` Marc Kleine-Budde
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=20181126102338.31647-1-t.scherer@eckelmann.de \
--to=t.scherer@eckelmann.de \
--cc=ptxdist@pengutronix.de \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox