* [ptxdist] [PATCH 1/5] host-autotools-autoconf-archive: added
2017-10-16 11:02 [ptxdist] [PATCH 0/5] tpm2: added tools and daemon Michael Grzeschik
@ 2017-10-16 11:02 ` Michael Grzeschik
2017-10-16 11:02 ` [ptxdist] [PATCH 2/5] tpm: add menu Michael Grzeschik
` (3 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: Michael Grzeschik @ 2017-10-16 11:02 UTC (permalink / raw)
To: ptxdist; +Cc: Marc Kleine-Budde
From: Marc Kleine-Budde <mkl@pengutronix.de>
---
rules/host-autotools-autoconf-archive.in | 12 ++++++++++
rules/host-autotools-autoconf-archive.make | 36 ++++++++++++++++++++++++++++++
2 files changed, 48 insertions(+)
create mode 100644 rules/host-autotools-autoconf-archive.in
create mode 100644 rules/host-autotools-autoconf-archive.make
diff --git a/rules/host-autotools-autoconf-archive.in b/rules/host-autotools-autoconf-archive.in
new file mode 100644
index 000000000..fe955a96a
--- /dev/null
+++ b/rules/host-autotools-autoconf-archive.in
@@ -0,0 +1,12 @@
+## SECTION=hosttools_noprompt
+
+config HOST_AUTOTOOLS_AUTOCONF_ARCHIVE
+ tristate
+ help
+ Autoconf Macro Archive
+
+ Autoconf Macro Archive aims to provide a central repository
+ of useful and tested Autoconf macros for software developers
+ around the world. This package contains the complete content
+ of the Autoconf Macro Archive as found at
+ http://www.gnu.org/software/autoconf-archive/.
diff --git a/rules/host-autotools-autoconf-archive.make b/rules/host-autotools-autoconf-archive.make
new file mode 100644
index 000000000..b072f0c38
--- /dev/null
+++ b/rules/host-autotools-autoconf-archive.make
@@ -0,0 +1,36 @@
+# -*-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
+#
+HOST_PACKAGES-$(PTXCONF_HOST_AUTOTOOLS_AUTOCONF_ARCHIVE) += host-autotools-autoconf-archive
+
+#
+# Paths and names
+#
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_VERSION := 2017.03.21
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_MD5 := 39549f8b3f34d2c910c92e58912e1a64
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE := autoconf-archive-$(HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_VERSION)
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_SUFFIX := tar.xz
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_URL := $(call ptx/mirror, GNU, autoconf-archive/$(HOST_AUTOTOOLS_AUTOCONF_ARCHIVE).$(HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_SUFFIX))
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_SOURCE := $(SRCDIR)/$(HOST_AUTOTOOLS_AUTOCONF_ARCHIVE).$(HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_SUFFIX)
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_DIR := $(HOST_BUILDDIR)/$(HOST_AUTOTOOLS_AUTOCONF_ARCHIVE)
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+HOST_AUTOTOOLS_AUTOCONF_ARCHIVE_CONF_TOOL := autoconf
+
+# vim: syntax=make
--
2.11.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* [ptxdist] [PATCH 2/5] tpm: add menu
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 ` Michael Grzeschik
2017-10-16 11:02 ` [ptxdist] [PATCH 3/5] tpm2-tss: added Michael Grzeschik
` (2 subsequent siblings)
4 siblings, 0 replies; 11+ messages in thread
From: Michael Grzeschik @ 2017-10-16 11:02 UTC (permalink / raw)
To: ptxdist; +Cc: Marc Kleine-Budde
From: Marc Kleine-Budde <mkl@pengutronix.de>
---
rules/tpm.in | 5 +++++
1 file changed, 5 insertions(+)
create mode 100644 rules/tpm.in
diff --git a/rules/tpm.in b/rules/tpm.in
new file mode 100644
index 000000000..ef93315a3
--- /dev/null
+++ b/rules/tpm.in
@@ -0,0 +1,5 @@
+## SECTION=security
+
+menu "tpm "
+source "generated/tpm.in"
+endmenu
--
2.11.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* [ptxdist] [PATCH 3/5] tpm2-tss: added
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
2017-10-16 12:46 ` Roland Hieber
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
4 siblings, 1 reply; 11+ messages in thread
From: Michael Grzeschik @ 2017-10-16 11:02 UTC (permalink / raw)
To: ptxdist; +Cc: Marc Kleine-Budde
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
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [ptxdist] [PATCH 3/5] tpm2-tss: added
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
0 siblings, 1 reply; 11+ messages in thread
From: Roland Hieber @ 2017-10-16 12:46 UTC (permalink / raw)
To: ptxdist, Michael Grzeschik; +Cc: Marc Kleine-Budde
On 16.10.2017 13:02, Michael Grzeschik wrote:
> 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)
This one errors. Did you maybe confuse cgit URL syntax with GitHub URL
syntax? :)
- Roland
> +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
>
--
Pengutronix e.K. | Roland Hieber |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim | Phone: +49-5121-206917-5086 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [ptxdist] [PATCH 3/5] tpm2-tss: added
2017-10-16 12:46 ` Roland Hieber
@ 2017-10-16 12:51 ` Michael Grzeschik
2017-10-16 13:28 ` Michael Olbrich
0 siblings, 1 reply; 11+ messages in thread
From: Michael Grzeschik @ 2017-10-16 12:51 UTC (permalink / raw)
To: Roland Hieber; +Cc: Marc Kleine-Budde, ptxdist
[-- Attachment #1.1: Type: text/plain, Size: 3369 bytes --]
On Mon, Oct 16, 2017 at 02:46:52PM +0200, Roland Hieber wrote:
>
>
> On 16.10.2017 13:02, Michael Grzeschik wrote:
> > 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)
>
> This one errors. Did you maybe confuse cgit URL syntax with GitHub URL
> syntax? :)
This works as a git rule. Yor probably confused this as a curlable tarball.
mgr
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
[-- Attachment #1.2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
[-- Attachment #2: Type: text/plain, Size: 91 bytes --]
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [ptxdist] [PATCH 3/5] tpm2-tss: added
2017-10-16 12:51 ` Michael Grzeschik
@ 2017-10-16 13:28 ` Michael Olbrich
2017-10-19 7:34 ` Marc Kleine-Budde
0 siblings, 1 reply; 11+ messages in thread
From: Michael Olbrich @ 2017-10-16 13:28 UTC (permalink / raw)
To: ptxdist
On Mon, Oct 16, 2017 at 02:51:13PM +0200, Michael Grzeschik wrote:
> On Mon, Oct 16, 2017 at 02:46:52PM +0200, Roland Hieber wrote:
> > On 16.10.2017 13:02, Michael Grzeschik wrote:
> > > 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)
> >
> > This one errors. Did you maybe confuse cgit URL syntax with GitHub URL
> > syntax? :)
>
> This works as a git rule. Yor probably confused this as a curlable tarball.
Maybe use https://github.com/01org/tpm2-tss/archive/$(TPM2_TSS_VERSION).zip ?
That way we don't need to use git.
Michael
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [ptxdist] [PATCH 3/5] tpm2-tss: added
2017-10-16 13:28 ` Michael Olbrich
@ 2017-10-19 7:34 ` Marc Kleine-Budde
2017-10-19 15:31 ` Michael Olbrich
0 siblings, 1 reply; 11+ messages in thread
From: Marc Kleine-Budde @ 2017-10-19 7:34 UTC (permalink / raw)
To: ptxdist
[-- Attachment #1.1.1: Type: text/plain, Size: 3716 bytes --]
On 10/16/2017 03:28 PM, Michael Olbrich wrote:
> On Mon, Oct 16, 2017 at 02:51:13PM +0200, Michael Grzeschik wrote:
>> On Mon, Oct 16, 2017 at 02:46:52PM +0200, Roland Hieber wrote:
>>> On 16.10.2017 13:02, Michael Grzeschik wrote:
>>>> 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)
>>>
>>> This one errors. Did you maybe confuse cgit URL syntax with GitHub URL
>>> syntax? :)
>>
>> This works as a git rule. Yor probably confused this as a curlable tarball.
>
> Maybe use https://github.com/01org/tpm2-tss/archive/$(TPM2_TSS_VERSION).zip ?
> That way we don't need to use git.
The features we need are not available in a release yet.
Marc
--
Pengutronix e.K. | Marc Kleine-Budde |
Industrial Linux Solutions | Phone: +49-231-2826-924 |
Vertretung West/Dortmund | Fax: +49-5121-206917-5555 |
Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de |
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
[-- Attachment #2: Type: text/plain, Size: 91 bytes --]
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: [ptxdist] [PATCH 3/5] tpm2-tss: added
2017-10-19 7:34 ` Marc Kleine-Budde
@ 2017-10-19 15:31 ` Michael Olbrich
0 siblings, 0 replies; 11+ messages in thread
From: Michael Olbrich @ 2017-10-19 15:31 UTC (permalink / raw)
To: ptxdist
On Thu, Oct 19, 2017 at 09:34:02AM +0200, Marc Kleine-Budde wrote:
> On 10/16/2017 03:28 PM, Michael Olbrich wrote:
> > On Mon, Oct 16, 2017 at 02:51:13PM +0200, Michael Grzeschik wrote:
> >> On Mon, Oct 16, 2017 at 02:46:52PM +0200, Roland Hieber wrote:
> >>> On 16.10.2017 13:02, Michael Grzeschik wrote:
> >>>> 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)
> >>>
> >>> This one errors. Did you maybe confuse cgit URL syntax with GitHub URL
> >>> syntax? :)
> >>
> >> This works as a git rule. Yor probably confused this as a curlable tarball.
> >
> > Maybe use https://github.com/01org/tpm2-tss/archive/$(TPM2_TSS_VERSION).zip ?
> > That way we don't need to use git.
>
> The features we need are not available in a release yet.
This URL works for any comitt-ish.
Michael
--
Pengutronix e.K. | |
Industrial Linux Solutions | http://www.pengutronix.de/ |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 |
Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* [ptxdist] [PATCH 4/5] tpm2-abrmd: added
2017-10-16 11:02 [ptxdist] [PATCH 0/5] tpm2: added tools and daemon Michael Grzeschik
` (2 preceding siblings ...)
2017-10-16 11:02 ` [ptxdist] [PATCH 3/5] tpm2-tss: added Michael Grzeschik
@ 2017-10-16 11:02 ` Michael Grzeschik
2017-10-16 11:02 ` [ptxdist] [PATCH 5/5] tpm2-tools: added Michael Grzeschik
4 siblings, 0 replies; 11+ messages in thread
From: Michael Grzeschik @ 2017-10-16 11:02 UTC (permalink / raw)
To: ptxdist; +Cc: Marc Kleine-Budde
From: Marc Kleine-Budde <mkl@pengutronix.de>
---
patches/tpm2-abrmd-1.1.1-51-g1f83a5f/autogen.sh | 1 +
projectroot/etc/group | 1 +
projectroot/etc/passwd | 1 +
.../system-services/com.intel.tss2.Tabrmd.service | 5 ++
rules/tpm2-abrmd.in | 17 +++++
rules/tpm2-abrmd.make | 72 ++++++++++++++++++++++
6 files changed, 97 insertions(+)
create mode 100755 patches/tpm2-abrmd-1.1.1-51-g1f83a5f/autogen.sh
create mode 100644 projectroot/usr/share/dbus-1/system-services/com.intel.tss2.Tabrmd.service
create mode 100644 rules/tpm2-abrmd.in
create mode 100644 rules/tpm2-abrmd.make
diff --git a/patches/tpm2-abrmd-1.1.1-51-g1f83a5f/autogen.sh b/patches/tpm2-abrmd-1.1.1-51-g1f83a5f/autogen.sh
new file mode 100755
index 000000000..e62625c77
--- /dev/null
+++ b/patches/tpm2-abrmd-1.1.1-51-g1f83a5f/autogen.sh
@@ -0,0 +1 @@
+./bootstrap
diff --git a/projectroot/etc/group b/projectroot/etc/group
index 452be04a2..ad1aee5f4 100644
--- a/projectroot/etc/group
+++ b/projectroot/etc/group
@@ -20,6 +20,7 @@ lock:x:114:
audio:x:115:
input:x:116:
mysql:x:117:
+tss:x:118:
systemd-journal:x:201:
systemd-network:x:202:
systemd-journal-gateway:x:206:
diff --git a/projectroot/etc/passwd b/projectroot/etc/passwd
index 65653c044..dc6a7e2cd 100644
--- a/projectroot/etc/passwd
+++ b/projectroot/etc/passwd
@@ -4,6 +4,7 @@ ftp:x:11:101:ftp user:/home:/bin/false
www:x:12:102:www user:/home:/bin/false
sshd:x:100:65534:SSH Server:/var/run/sshd:/bin/false
mysql:x:101:117:mySQL Server:/var/run/mysql:/bin/false
+tss:x:102:118:TSS Daemon User:/dev/null:/bin/false
messagebus:x:103:104:messagebus:/dev/null:/bin/false
systemd-network:x:202:202:systemd-network:/dev/null:/bin/false
systemd-resolve:x:203:65534:systemd-resolve:/dev/null:/bin/false
diff --git a/projectroot/usr/share/dbus-1/system-services/com.intel.tss2.Tabrmd.service b/projectroot/usr/share/dbus-1/system-services/com.intel.tss2.Tabrmd.service
new file mode 100644
index 000000000..f5749a49f
--- /dev/null
+++ b/projectroot/usr/share/dbus-1/system-services/com.intel.tss2.Tabrmd.service
@@ -0,0 +1,5 @@
+[D-BUS Service]
+Name=com.intel.tss2.Tabrmd
+Exec=/usr/sbin/tpm2-abrmd
+User=tss
+SystemdService=tpm2-abrmd.service
diff --git a/rules/tpm2-abrmd.in b/rules/tpm2-abrmd.in
new file mode 100644
index 000000000..de76f60a6
--- /dev/null
+++ b/rules/tpm2-abrmd.in
@@ -0,0 +1,17 @@
+## SECTION=tpm
+
+config TPM2_ABRMD
+ tristate
+ select HOST_AUTOTOOLS_AUTOCONF_ARCHIVE
+ select DBUS
+ select GLIB
+ select TPM2_TSS
+ prompt "tpm2-abrmd"
+ help
+ TPM2 Access Broker & Resource Management Daemon implementing
+ the TCG spec.
+
+ This is a system daemon implementing the TPM2 access broker
+ (TAB) & Resource Manager (RM) spec from the TCG. The daemon
+ (tpm2-abrmd) is implemented using Glib and the GObject
+ system.
diff --git a/rules/tpm2-abrmd.make b/rules/tpm2-abrmd.make
new file mode 100644
index 000000000..8d982106a
--- /dev/null
+++ b/rules/tpm2-abrmd.make
@@ -0,0 +1,72 @@
+# -*-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_ABRMD) += tpm2-abrmd
+
+#
+# Paths and names
+#
+TPM2_ABRMD_VERSION := 1.1.1-51-g1f83a5f
+TPM2_ABRMD_MD5 := 78fed24c27f35b407a2bc67b153f7521
+TPM2_ABRMD := tpm2-abrmd-$(TPM2_ABRMD_VERSION)
+TPM2_ABRMD_SUFFIX := tar.gz
+TPM2_ABRMD_URL := https://github.com/01org/tpm2-abrmd.git;tag=$(TPM2_ABRMD_VERSION)
+TPM2_ABRMD_SOURCE := $(SRCDIR)/$(TPM2_ABRMD).$(TPM2_ABRMD_SUFFIX)
+TPM2_ABRMD_DIR := $(BUILDDIR)/$(TPM2_ABRMD)
+TPM2_ABRMD_LICENSE := BSD-2-Clause
+
+# ----------------------------------------------------------------------------
+# Prepare
+# ----------------------------------------------------------------------------
+
+#
+# autoconf
+#
+TPM2_ABRMD_CONF_TOOL := autoconf
+TPM2_ABRMD_CONF_OPT := \
+ $(CROSS_AUTOCONF_USR) \
+ --with-dbuspolicydir=/usr/share/dbus-1/system.d \
+ --with-systemdsystemunitdir=/lib/systemd/system \
+ --with-udevrulesdir=/lib/udev/rules.d
+
+# ----------------------------------------------------------------------------
+# Target-Install
+# ----------------------------------------------------------------------------
+
+$(STATEDIR)/tpm2-abrmd.targetinstall:
+ @$(call targetinfo)
+
+ @$(call install_init, tpm2-abrmd)
+ @$(call install_fixup, tpm2-abrmd,PRIORITY,optional)
+ @$(call install_fixup, tpm2-abrmd,SECTION,base)
+ @$(call install_fixup, tpm2-abrmd,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
+ @$(call install_fixup, tpm2-abrmd,DESCRIPTION,missing)
+
+ @$(call install_lib, tpm2-abrmd, 0, 0, 0644, libtcti-tabrmd)
+ @$(call install_copy, tpm2-abrmd, 0, 0, 0755, -, /usr/sbin/tpm2-abrmd)
+
+ @$(call install_copy, tpm2-abrmd, 0, 0, 0644, -, \
+ /usr/share/dbus-1/system.d/tpm2-abrmd.conf)
+ @$(call install_copy, tpm2-abrmd, 0, 0, 0644, -, \
+ /lib/systemd/system/tpm2-abrmd.service)
+ @$(call install_copy, tpm2-abrmd, 0, 0, 0644, -, \
+ /lib/udev/rules.d/tpm-udev.rules)
+
+ @$(call install_alternative, tpm2-abrmd, 0, 0, 0644, \
+ /usr/share/dbus-1/system-services/com.intel.tss2.Tabrmd.service)
+
+ @$(call install_finish, tpm2-abrmd)
+
+ @$(call touch)
+
+# vim: syntax=make
--
2.11.0
_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de
^ permalink raw reply [flat|nested] 11+ messages in thread
* [ptxdist] [PATCH 5/5] tpm2-tools: added
2017-10-16 11:02 [ptxdist] [PATCH 0/5] tpm2: added tools and daemon Michael Grzeschik
` (3 preceding siblings ...)
2017-10-16 11:02 ` [ptxdist] [PATCH 4/5] tpm2-abrmd: added Michael Grzeschik
@ 2017-10-16 11:02 ` Michael Grzeschik
4 siblings, 0 replies; 11+ messages in thread
From: Michael Grzeschik @ 2017-10-16 11:02 UTC (permalink / raw)
To: ptxdist; +Cc: Marc Kleine-Budde
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
^ permalink raw reply [flat|nested] 11+ messages in thread