From: Michael Grzeschik <m.grzeschik@pengutronix.de>
To: ptxdist@pengutronix.de
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Subject: [ptxdist] [PATCH 5/5] tpm2-tools: added
Date: Mon, 16 Oct 2017 13:02:27 +0200 [thread overview]
Message-ID: <20171016110227.20681-6-m.grzeschik@pengutronix.de> (raw)
In-Reply-To: <20171016110227.20681-1-m.grzeschik@pengutronix.de>
From: Marc Kleine-Budde <mkl@pengutronix.de>
---
.../tpm2-tools-2.0.0-501-g9d0705c99289/autogen.sh | 1 +
rules/tpm2-tools.in | 14 +++
rules/tpm2-tools.make | 100 +++++++++++++++++++++
3 files changed, 115 insertions(+)
create mode 100755 patches/tpm2-tools-2.0.0-501-g9d0705c99289/autogen.sh
create mode 100644 rules/tpm2-tools.in
create mode 100644 rules/tpm2-tools.make
diff --git a/patches/tpm2-tools-2.0.0-501-g9d0705c99289/autogen.sh b/patches/tpm2-tools-2.0.0-501-g9d0705c99289/autogen.sh
new file mode 100755
index 000000000..e62625c77
--- /dev/null
+++ b/patches/tpm2-tools-2.0.0-501-g9d0705c99289/autogen.sh
@@ -0,0 +1 @@
+./bootstrap
diff --git a/rules/tpm2-tools.in b/rules/tpm2-tools.in
new file mode 100644
index 000000000..ed6eb9224
--- /dev/null
+++ b/rules/tpm2-tools.in
@@ -0,0 +1,14 @@
+## SECTION=tpm
+
+config TPM2_TOOLS
+ tristate
+ select TPM2_TSS
+ select TPM2_ABRMD
+ select OPENSSL
+ select LIBCURL
+ prompt "tpm2-tools"
+ help
+ This package contains a set of tools to use with TPM 2.0
+ chips, for common tasks and features provided by the
+ hardware; such as for doing basic key management,
+ attestation, encryption and signing.
diff --git a/rules/tpm2-tools.make b/rules/tpm2-tools.make
new file mode 100644
index 000000000..4cd287906
--- /dev/null
+++ b/rules/tpm2-tools.make
@@ -0,0 +1,100 @@
+# -*-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_TOOLS) += tpm2-tools
+
+#
+# Paths and names
+#
+TPM2_TOOLS_VERSION := 2.0.0-501-g9d0705c99289
+TPM2_TOOLS_MD5 := 99855316c7e7edd8feeefbf0728b707e
+TPM2_TOOLS := tpm2-tools-$(TPM2_TOOLS_VERSION)
+TPM2_TOOLS_SUFFIX := tar.gz
+TPM2_TOOLS_URL := https://github.com/01org/tpm2-tools.git;tag=$(TPM2_TOOLS_VERSION)
+TPM2_TOOLS_SOURCE := $(SRCDIR)/$(TPM2_TOOLS).$(TPM2_TOOLS_SUFFIX)
+TPM2_TOOLS_DIR := $(BUILDDIR)/$(TPM2_TOOLS)
+TPM2_TOOLS_LICENSE := BSD-3-Clause
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+TPM2_TOOLS_CONF_TOOL := autoconf
+TPM2_TOOLS_CONF_OPT := $(CROSS_AUTOCONF_USR)
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+TPM2_TOOLS_PROGS := \
+ tpm2_activatecredential \
+ tpm2_akparse \
+ tpm2_certify \
+ tpm2_create \
+ tpm2_createpolicy \
+ tpm2_createprimary \
+ tpm2_dictionarylockout \
+ tpm2_dump_capability \
+ tpm2_encryptdecrypt \
+ tpm2_evictcontrol \
+ tpm2_getmanufec \
+ tpm2_getpubak \
+ tpm2_getpubek \
+ tpm2_getrandom \
+ tpm2_hash \
+ tpm2_hmac \
+ tpm2_listpersistent \
+ tpm2_load \
+ tpm2_loadexternal \
+ tpm2_makecredential \
+ tpm2_nvdefine \
+ tpm2_nvlist \
+ tpm2_nvread \
+ tpm2_nvreadlock \
+ tpm2_nvrelease \
+ tpm2_nvwrite \
+ tpm2_pcrevent \
+ tpm2_pcrextend \
+ tpm2_pcrlist \
+ tpm2_quote \
+ tpm2_rc_decode \
+ tpm2_readpublic \
+ tpm2_rsadecrypt \
+ tpm2_rsaencrypt \
+ tpm2_send_command \
+ tpm2_sign \
+ tpm2_startup \
+ tpm2_takeownership \
+ tpm2_unseal \
+ tpm2_verifysignature
+
+$(STATEDIR)/tpm2-tools.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, tpm2-tools)
+ @$(call install_fixup, tpm2-tools,PRIORITY,optional)
+ @$(call install_fixup, tpm2-tools,SECTION,base)
+ @$(call install_fixup, tpm2-tools,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
+ @$(call install_fixup, tpm2-tools,DESCRIPTION,missing)
+
+ @$(foreach prog, $(TPM2_TOOLS_PROGS), \
+ $(call install_copy, tpm2-tools, 0, 0, 0755, -, /usr/bin/$(prog));)
+
+ @$(call install_finish, tpm2-tools)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.11.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
prev 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 ` [ptxdist] [PATCH 3/5] tpm2-tss: added Michael Grzeschik
2017-10-16 12:46 ` 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 ` Michael Grzeschik [this message]
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-6-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