From: Marc Kleine-Budde <m...@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 <m...@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 
<m...@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

Reply via email to