mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Marc Kleine-Budde <mkl@pengutronix.de>
To: ptxdist@pengutronix.de, "Thorsten K. Scherer" <t.scherer@eckelmann.de>
Subject: Re: [ptxdist] [PATCH 4/5] ptxdist: add tpm2-tss-engine 2018.11
Date: Wed, 28 Nov 2018 09:06:13 +0100	[thread overview]
Message-ID: <167e9834-c75f-dec0-579e-4277193caadf@pengutronix.de> (raw)
In-Reply-To: <20181126102338.31647-1-t.scherer@eckelmann.de>


[-- Attachment #1.1.1: Type: text/plain, Size: 4696 bytes --]

On 11/26/18 11:23 AM, Thorsten K. Scherer wrote:
> Signed-off-by: Thorsten K. Scherer <t.scherer@eckelmann.de>
> ---
>  patches/tpm2-tss-engine-2018.11/autogen.sh |  1 +
>  rules/tpm2-tss-engine.in                   | 15 ++++++
>  rules/tpm2-tss-engine.make                 | 57 ++++++++++++++++++++++
>  3 files changed, 73 insertions(+)
>  create mode 100644 patches/tpm2-tss-engine-2018.11/autogen.sh
>  create mode 100644 rules/tpm2-tss-engine.in
>  create mode 100644 rules/tpm2-tss-engine.make
> 
> diff --git a/patches/tpm2-tss-engine-2018.11/autogen.sh b/patches/tpm2-tss-engine-2018.11/autogen.sh
> new file mode 100644
> index 0000000..e62625c
> --- /dev/null
> +++ b/patches/tpm2-tss-engine-2018.11/autogen.sh
> @@ -0,0 +1 @@
> +./bootstrap
> diff --git a/rules/tpm2-tss-engine.in b/rules/tpm2-tss-engine.in
> new file mode 100644
> index 0000000..601bdab
> --- /dev/null
> +++ b/rules/tpm2-tss-engine.in
> @@ -0,0 +1,15 @@
> +## SECTION=tpm
> +
> +config TPM2_TSS_ENGINE
> +       tristate
> +       select TPM2_TSS
> +       prompt "tpm2-tss-engine"
> +       help
> +         The tpm2-tss-engine project implements a cryptographic
> +         engine for OpenSSL for Trusted Platform Module (TPM 2.0) 
> +         using the tpm2-tss software stack that follows the
> +         Trusted Computing Groups (TCG) TPM Software Stack 
> +         (TSS 2.0). It uses the Enhanced System API (ESAPI) 
> +         interface of the TSS 2.0 for downwards communication.
> +         It supports RSA decryption and signatures as well as 
> +         ECDSA signatures.
> diff --git a/rules/tpm2-tss-engine.make b/rules/tpm2-tss-engine.make
> new file mode 100644
> index 0000000..536c52a
> --- /dev/null
> +++ b/rules/tpm2-tss-engine.make
> @@ -0,0 +1,57 @@

Please add the usual copyright header.

> +#
> +# We provide this package
> +#
> +PACKAGES-$(PTXCONF_TPM2_TSS_ENGINE) += tpm2-tss-engine
> +
> +#
> +# Paths and names
> +#
> +TPM2_TSS_ENGINE_COMMIT        := 1dbc98725f61fe8683bab4626b3865915238bee8
> +TPM2_TSS_ENGINE_VERSION       := 0+2018.11.22-1-g$(TPM2_TSS_ENGINE_COMMIT)
> +TPM2_TSS_ENGINE_MD5           := 9e6b432565a23ec18a771cda7d309955
> +TPM2_TSS_ENGINE               := tpm2-tss-engine-$(TPM2_TSS_ENGINE_VERSION)
> +TPM2_TSS_ENGINE_SUFFIX        := tar.gz
> +TPM2_TSS_ENGINE_URL           := https://github.com/tpm2-software/tpm2-tss-engine/archive/$(TPM2_TSS_ENGINE_COMMIT).$(TPM2_TSS_ENGINE_SUFFIX)
> +TPM2_TSS_ENGINE_SOURCE        := $(SRCDIR)/$(TPM2_TSS_ENGINE).$(TPM2_TSS_ENGINE_SUFFIX)
> +TPM2_TSS_ENGINE_DIR           := $(BUILDDIR)/$(TPM2_TSS_ENGINE)
> +TPM2_TSS_ENGINE_LICENSE       := BSD-3-Clause
> +
> +# ----------------------------------------------------------------------------
> +# Prepare
> +# ----------------------------------------------------------------------------
> +
> +#
> +# autoconf
> +#
> +TPM2_TSS_ENGINE_CONF_TOOL := autoconf
> +
> +$(STATEDIR)/tpm2-tss-engine.extract.post: $(STATEDIR)/autogen-tools
> +	@$(call targetinfo)
> +	@cd $(TPM2_TSS_ENGINE_DIR) && ./bootstrap
> +	@$(call world/patchin/post, TPM2_TSS_ENGINE)
> +	@$(call touch)

Why is this needed? With the autogen.sh in the patches folder the
bootstrap should be called automatically.

> +
> +
> +# ----------------------------------------------------------------------------
> +# Target-Install
> +# ----------------------------------------------------------------------------
> +
> +$(STATEDIR)/tpm2-tss-engine.targetinstall:
> +	@$(call targetinfo)
> +
> +	@$(call install_init, tpm2-tss-engine)
> +	@$(call install_fixup, tpm2-tss-engine,PRIORITY,optional)
> +	@$(call install_fixup, tpm2-tss-engine,SECTION,base)
> +	@$(call install_fixup, tpm2-tss-engine,AUTHOR,"Marcel Gudert <m.gudert@eckelmann.de>")
> +	@$(call install_fixup, tpm2-tss-engine,DESCRIPTION,missing)
> +
> +	@$(call install_copy, tpm2-tss-engine, tss, tss, 0644, $(TPM2_TSS_ENGINE_DIR)/.libs/libtpm2tss.so, /usr/lib/libtpm2tss.so)
> +	@$(call install_link, tpm2-tss-engine, /usr/lib/libtpm2tss.so, /usr/lib/engines/libtpm2tss.so)
> +	@$(call install_link, tpm2-tss-engine, /usr/lib/libtpm2tss.so, /usr/lib/engines/tpm2tss.so)
> +	@$(call install_copy, tpm2-tss-engine, tss, tss, 0755, -, /usr/bin/tpm2tss-genkey)
> +
> +	@$(call install_finish, tpm2-tss-engine)
> +
> +	@$(call touch)
> +
> +# vim: syntax=make
> 

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

      reply	other threads:[~2018-11-28  8:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-26 10:23 Thorsten K. Scherer
2018-11-28  8:06 ` Marc Kleine-Budde [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=167e9834-c75f-dec0-579e-4277193caadf@pengutronix.de \
    --to=mkl@pengutronix.de \
    --cc=ptxdist@pengutronix.de \
    --cc=t.scherer@eckelmann.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