mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Michael Grzeschik <m.grzeschik@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Subject: [ptxdist] [PATCH 3/5] tpm2-tss: added
Date: Mon, 16 Oct 2017 13:02:25 +0200	[thread overview]
Message-ID: <20171016110227.20681-4-m.grzeschik@pengutronix.de> (raw)
In-Reply-To: <20171016110227.20681-1-m.grzeschik@pengutronix.de>

From: Marc Kleine-Budde <mkl@pengutronix.de>

---
 .../tpm2-tss-1.1.0-501-g3bc96032d473/autogen.sh    |  1 +
 rules/tpm2-tss.in                                  | 21 ++++++++
 rules/tpm2-tss.make                                | 59 ++++++++++++++++++++++
 3 files changed, 81 insertions(+)
 create mode 100755 patches/tpm2-tss-1.1.0-501-g3bc96032d473/autogen.sh
 create mode 100644 rules/tpm2-tss.in
 create mode 100644 rules/tpm2-tss.make

diff --git a/patches/tpm2-tss-1.1.0-501-g3bc96032d473/autogen.sh b/patches/tpm2-tss-1.1.0-501-g3bc96032d473/autogen.sh
new file mode 100755
index 000000000..e62625c77
--- /dev/null
+++ b/patches/tpm2-tss-1.1.0-501-g3bc96032d473/autogen.sh
@@ -0,0 +1 @@
+./bootstrap
diff --git a/rules/tpm2-tss.in b/rules/tpm2-tss.in
new file mode 100644
index 000000000..2a1b7f09c
--- /dev/null
+++ b/rules/tpm2-tss.in
@@ -0,0 +1,21 @@
+## SECTION=tpm
+
+config TPM2_TSS
+	tristate
+	select HOST_AUTOTOOLS_AUTOCONF_ARCHIVE
+	prompt "tpm2-tss"
+	help
+	  TPM2 Software stack library - TSS and TCTI libraries
+
+	  TPM2.0 TSS (Software Stack) consists of API layers provided
+	  to support TPM 2.0 chips. It is made out of three layers:
+
+	  * System API (SAPI), which implements the system layer API;
+	  * TPM Command Transmission Interface (TCTI), which is used
+	    by SAPI to allow communication with the TAB/RM layer;
+	  * Trusted Access Broker/Resource Manager (TAB/RM), which
+	    handles TPM resources and process coordination.
+
+	  This package contains the TSS and TCTI libraries that client
+	  applications will link against when they require accessing
+	  the TPM.
diff --git a/rules/tpm2-tss.make b/rules/tpm2-tss.make
new file mode 100644
index 000000000..f792abaf4
--- /dev/null
+++ b/rules/tpm2-tss.make
@@ -0,0 +1,59 @@
+# -*-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) += tpm2-tss
+
+#
+# Paths and names
+#
+TPM2_TSS_VERSION	:= 1.1.0-501-g3bc96032d473
+TPM2_TSS_MD5		:= 000e725dd83adbae902421107e660f4c
+TPM2_TSS		:= tpm2-tss-$(TPM2_TSS_VERSION)
+TPM2_TSS_SUFFIX		:= tar.gz
+TPM2_TSS_URL		:= https://github.com/01org/tpm2-tss.git;tag=$(TPM2_TSS_VERSION)
+TPM2_TSS_SOURCE		:= $(SRCDIR)/$(TPM2_TSS).$(TPM2_TSS_SUFFIX)
+TPM2_TSS_DIR		:= $(BUILDDIR)/$(TPM2_TSS)
+TPM2_TSS_LICENSE	:= BSD-2-Clause
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+TPM2_TSS_CONF_TOOL	:= autoconf
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/tpm2-tss.targetinstall:
+	@$(call targetinfo)
+
+	@$(call install_init, tpm2-tss)
+	@$(call install_fixup, tpm2-tss,PRIORITY,optional)
+	@$(call install_fixup, tpm2-tss,SECTION,base)
+	@$(call install_fixup, tpm2-tss,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
+	@$(call install_fixup, tpm2-tss,DESCRIPTION,missing)
+
+	@$(call install_lib, tpm2-tss, 0, 0, 0644, libmarshal)
+	@$(call install_lib, tpm2-tss, 0, 0, 0644, libsapi)
+	@$(call install_lib, tpm2-tss, 0, 0, 0644, libtcti-device)
+	@$(call install_lib, tpm2-tss, 0, 0, 0644, libtcti-socket)
+
+	@$(call install_finish, tpm2-tss)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.11.0


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  parent reply	other threads:[~2017-10-16 11:02 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-10-16 11:02 [ptxdist] [PATCH 0/5] tpm2: added tools and daemon Michael Grzeschik
2017-10-16 11:02 ` [ptxdist] [PATCH 1/5] host-autotools-autoconf-archive: added Michael Grzeschik
2017-10-16 11:02 ` [ptxdist] [PATCH 2/5] tpm: add menu Michael Grzeschik
2017-10-16 11:02 ` Michael Grzeschik [this message]
2017-10-16 12:46   ` [ptxdist] [PATCH 3/5] tpm2-tss: added Roland Hieber
2017-10-16 12:51     ` Michael Grzeschik
2017-10-16 13:28       ` Michael Olbrich
2017-10-19  7:34         ` Marc Kleine-Budde
2017-10-19 15:31           ` Michael Olbrich
2017-10-16 11:02 ` [ptxdist] [PATCH 4/5] tpm2-abrmd: added Michael Grzeschik
2017-10-16 11:02 ` [ptxdist] [PATCH 5/5] tpm2-tools: added Michael Grzeschik

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=20171016110227.20681-4-m.grzeschik@pengutronix.de \
    --to=m.grzeschik@pengutronix.de \
    --cc=mkl@pengutronix.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