mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: "Thorsten K. Scherer" <t.scherer@eckelmann.de>
To: ptxdist@pengutronix.de
Cc: "Thorsten K. Scherer" <t.scherer@eckelmann.de>
Subject: [ptxdist] [PATCH v2 5/5] ptxdist: add tpm2-tss-engine c9061a7
Date: Mon, 17 Dec 2018 11:50:01 +0100	[thread overview]
Message-ID: <cb4f8ce22bb6e7bfad7ad1dcbcba8e7cd7500a4e.1545042465.git.t.scherer@eckelmann.de> (raw)
In-Reply-To: <cover.1545042465.git.t.scherer@eckelmann.de>

Signed-off-by: Thorsten K. Scherer <t.scherer@eckelmann.de>
---
 .../autogen.sh                                |  5 ++
 rules/tpm2-tss-engine.in                      | 15 +++++
 rules/tpm2-tss-engine.make                    | 61 +++++++++++++++++++
 3 files changed, 81 insertions(+)
 create mode 100755 patches/tpm2-tss-engine-2018-11-28-gc9061a7/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-28-gc9061a7/autogen.sh b/patches/tpm2-tss-engine-2018-11-28-gc9061a7/autogen.sh
new file mode 100755
index 000000000..15e9332e2
--- /dev/null
+++ b/patches/tpm2-tss-engine-2018-11-28-gc9061a7/autogen.sh
@@ -0,0 +1,5 @@
+#!/bin/bash
+
+set -e
+
+./bootstrap
diff --git a/rules/tpm2-tss-engine.in b/rules/tpm2-tss-engine.in
new file mode 100644
index 000000000..fc386a074
--- /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 000000000..072f15dff
--- /dev/null
+++ b/rules/tpm2-tss-engine.make
@@ -0,0 +1,61 @@
+# -*-makefile-*-
+#
+# Copyright (C) 2017 by Marc Kleine-Budde <mkl@pengutronix.de>
+#
+# See CREDITS for details about who has contributed to this project.
+#
+# For further information about the PTXdist project and license conditions
+# see the README file.
+#
+
+#
+# We provide this package
+#
+PACKAGES-$(PTXCONF_TPM2_TSS_ENGINE) += tpm2-tss-engine
+
+#
+# Paths and names
+#
+TPM2_TSS_ENGINE_COMMIT        := c9061a7
+TPM2_TSS_ENGINE_VERSION       := 2018-11-28-g$(TPM2_TSS_ENGINE_COMMIT)
+TPM2_TSS_ENGINE_MD5           := 05fdca60fd429461346418580f230efe
+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
+TPM2_TSS_ENGINE_CONF_OPT := $(CROSS_AUTOCONF_USR)
+
+# ----------------------------------------------------------------------------
+# 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

  parent reply	other threads:[~2018-12-17 10:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-12-17 10:49 [ptxdist] [PATCH v2 0/5] add packages for tpm Thorsten K. Scherer
2018-12-17 10:49 ` [ptxdist] [PATCH v2 1/5] ptxdist: add host autotools macro archive for tpm2 Thorsten K. Scherer
     [not found]   ` <20181230033939.3mawbfpfgv5ab5vb@pengutronix.de>
     [not found]     ` <20190315150902.GA6173@ws067.eckelmann.group>
2019-03-18  8:51       ` Roland Hieber
2018-12-17 10:49 ` [ptxdist] [PATCH v2 2/5] ptxdist: add tpm2-abrmd 2.0.3 Thorsten K. Scherer
2018-12-17 10:49 ` [ptxdist] [PATCH v2 3/5] ptxdist: add tpm2-tss version 2.1.0 Thorsten K. Scherer
2018-12-17 10:50 ` [ptxdist] [PATCH v2 4/5] ptxdist: add tpm2-tools 3.1.3 Thorsten K. Scherer
2018-12-17 10:50 ` Thorsten K. Scherer [this message]
2018-12-20 14:56 ` [ptxdist] [PATCH v2 0/5] add packages for tpm Scherer, Thorsten

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=cb4f8ce22bb6e7bfad7ad1dcbcba8e7cd7500a4e.1545042465.git.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