mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Roland Hieber <rhi@pengutronix.de>
To: PTXdist Mailing List <ptxdist@pengutronix.de>
Cc: Michael Olbrich <m.olbrich@pengutronix.de>,
	Michael Grzeschik <m.grzeschik@pengutronix.de>,
	Marc Kleine-Budde <mkl@pengutronix.de>,
	Jan Luebbe <jlu@pengutronix.de>,
	Roland Hieber <rhi@pengutronix.de>
Subject: [ptxdist] [PATCH v1 11/11] tpm2-tools: new package
Date: Tue, 28 May 2019 13:57:56 +0200	[thread overview]
Message-ID: <20190528115756.2279-11-rhi@pengutronix.de> (raw)
In-Reply-To: <20190528115756.2279-1-rhi@pengutronix.de>

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

Co-authored-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Co-authored-by: Michael Olbrich <m.olbrich@pengutronix.de>
Co-authored-by: Jan Luebbe <jlu@pengutronix.de>
Co-authored-by: Roland Hieber <rhi@pengutronix.de>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Signed-off-by: Jan Luebbe <jlu@pengutronix.de>
Signed-off-by: Roland Hieber <rhi@pengutronix.de>
---
 rules/tpm2-tools.in   |  13 ++++++
 rules/tpm2-tools.make | 105 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 118 insertions(+)
 create mode 100644 rules/tpm2-tools.in
 create mode 100644 rules/tpm2-tools.make

diff --git a/rules/tpm2-tools.in b/rules/tpm2-tools.in
new file mode 100644
index 000000000000..4c9cbaa92352
--- /dev/null
+++ b/rules/tpm2-tools.in
@@ -0,0 +1,13 @@
+## SECTION=tpm
+
+config TPM2_TOOLS
+	tristate
+	select TPM2_TSS
+	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 000000000000..0654c52d87a9
--- /dev/null
+++ b/rules/tpm2-tools.make
@@ -0,0 +1,105 @@
+# -*-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		:= 3.1.4
+TPM2_TOOLS_MD5			:= 61b4a382d24c950148a3f5fe41ac2306
+TPM2_TOOLS			:= tpm2-tools-$(TPM2_TOOLS_VERSION)
+TPM2_TOOLS_SUFFIX		:= tar.gz
+TPM2_TOOLS_URL			:= https://github.com/tpm2-software/tpm2-tools/releases/download/$(TPM2_TOOLS_VERSION)/$(TPM2_TOOLS).$(TPM2_TOOLS_SUFFIX)
+TPM2_TOOLS_SOURCE		:= $(SRCDIR)/$(TPM2_TOOLS).$(TPM2_TOOLS_SUFFIX)
+TPM2_TOOLS_DIR			:= $(BUILDDIR)/$(TPM2_TOOLS)
+TPM2_TOOLS_LICENSE		:= BSD-3-Clause
+TPM2_TOOLS_LICENSE_FILES	:= file://LICENSE;md5=91b7c548d73ea16537799e8060cea819
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+TPM2_TOOLS_CONF_TOOL	:= autoconf
+TPM2_TOOLS_CONF_OPT	:= \
+	$(CROSS_AUTOCONF_USR) \
+	--disable-code-coverage \
+	--disable-unit \
+	--enable-hardening \
+	--without-gcov
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+TPM2_TOOLS_PROGS := \
+	tpm2_activatecredential \
+	tpm2_certify \
+	tpm2_create \
+	tpm2_createpolicy \
+	tpm2_createprimary \
+	tpm2_dictionarylockout \
+	tpm2_encryptdecrypt \
+	tpm2_evictcontrol \
+	tpm2_getcap \
+	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 \
+	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))$(ptx/nl))
+
+	@$(call install_finish, tpm2-tools)
+
+	@$(call touch)
+
+# vim: syntax=make
-- 
2.20.1


_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

      parent reply	other threads:[~2019-05-28 11:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-05-28 11:57 [ptxdist] [PATCH v1 01/11] rsync: add "rsync over ssh" feature Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 02/11] yajl: improve kconfig help text Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 03/11] minicoredumper: enable and configure minicoredumper Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 04/11] paho-mqtt-c: new package Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 05/11] paho-mqtt-cpp: " Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 06/11] host-autotools-autoconf-archive: " Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 07/11] rootfs: add tpm user and group Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 08/11] tpm: add new menu Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 09/11] tpm2-tss: new package Roland Hieber
2019-05-28 11:57 ` [ptxdist] [PATCH v1 10/11] tpm2-abrmd: " Roland Hieber
2019-05-28 11:57 ` Roland Hieber [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=20190528115756.2279-11-rhi@pengutronix.de \
    --to=rhi@pengutronix.de \
    --cc=jlu@pengutronix.de \
    --cc=m.grzeschik@pengutronix.de \
    --cc=m.olbrich@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