From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: References: <20181126102338.31647-1-t.scherer@eckelmann.de> From: Marc Kleine-Budde Message-ID: <167e9834-c75f-dec0-579e-4277193caadf@pengutronix.de> Date: Wed, 28 Nov 2018 09:06:13 +0100 MIME-Version: 1.0 In-Reply-To: <20181126102338.31647-1-t.scherer@eckelmann.de> Subject: Re: [ptxdist] [PATCH 4/5] ptxdist: add tpm2-tss-engine 2018.11 List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: multipart/mixed; boundary="===============0795274797==" Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de, "Thorsten K. Scherer" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============0795274797== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="i5y7eOGnrntszqM6UXFK4pHiKuE9zgvs6" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --i5y7eOGnrntszqM6UXFK4pHiKuE9zgvs6 Content-Type: multipart/mixed; boundary="T5qfLGeD6hk3Sz6bhNx72GLXLEyNKClQD"; protected-headers="v1" From: Marc Kleine-Budde To: ptxdist@pengutronix.de, "Thorsten K. Scherer" Message-ID: <167e9834-c75f-dec0-579e-4277193caadf@pengutronix.de> Subject: Re: [ptxdist] [PATCH 4/5] ptxdist: add tpm2-tss-engine 2018.11 References: <20181126102338.31647-1-t.scherer@eckelmann.de> In-Reply-To: <20181126102338.31647-1-t.scherer@eckelmann.de> --T5qfLGeD6hk3Sz6bhNx72GLXLEyNKClQD Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: quoted-printable On 11/26/18 11:23 AM, Thorsten K. Scherer wrote: > Signed-off-by: Thorsten K. Scherer > --- > 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 >=20 > 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=3Dtpm > + > +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)=20 > + using the tpm2-tss software stack that follows the > + Trusted Computing Groups (TCG) TPM Software Stack=20 > + (TSS 2.0). It uses the Enhanced System API (ESAPI)=20 > + interface of the TSS 2.0 for downwards communication. > + It supports RSA decryption and signatures as well as=20 > + 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) +=3D tpm2-tss-engine > + > +# > +# Paths and names > +# > +TPM2_TSS_ENGINE_COMMIT :=3D 1dbc98725f61fe8683bab4626b386591523= 8bee8 > +TPM2_TSS_ENGINE_VERSION :=3D 0+2018.11.22-1-g$(TPM2_TSS_ENGINE_C= OMMIT) > +TPM2_TSS_ENGINE_MD5 :=3D 9e6b432565a23ec18a771cda7d309955 > +TPM2_TSS_ENGINE :=3D tpm2-tss-engine-$(TPM2_TSS_ENGINE_V= ERSION) > +TPM2_TSS_ENGINE_SUFFIX :=3D tar.gz > +TPM2_TSS_ENGINE_URL :=3D https://github.com/tpm2-software/tp= m2-tss-engine/archive/$(TPM2_TSS_ENGINE_COMMIT).$(TPM2_TSS_ENGINE_SUFFIX)= > +TPM2_TSS_ENGINE_SOURCE :=3D $(SRCDIR)/$(TPM2_TSS_ENGINE).$(TPM2= _TSS_ENGINE_SUFFIX) > +TPM2_TSS_ENGINE_DIR :=3D $(BUILDDIR)/$(TPM2_TSS_ENGINE) > +TPM2_TSS_ENGINE_LICENSE :=3D BSD-3-Clause > + > +# --------------------------------------------------------------------= -------- > +# Prepare > +# --------------------------------------------------------------------= -------- > + > +# > +# autoconf > +# > +TPM2_TSS_ENGINE_CONF_TOOL :=3D 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 ") > + @$(call install_fixup, tpm2-tss-engine,DESCRIPTION,missing) > + > + @$(call install_copy, tpm2-tss-engine, tss, tss, 0644, $(TPM2_TSS_ENG= INE_DIR)/.libs/libtpm2tss.so, /usr/lib/libtpm2tss.so) > + @$(call install_link, tpm2-tss-engine, /usr/lib/libtpm2tss.so, /usr/l= ib/engines/libtpm2tss.so) > + @$(call install_link, tpm2-tss-engine, /usr/lib/libtpm2tss.so, /usr/l= ib/engines/tpm2tss.so) > + @$(call install_copy, tpm2-tss-engine, tss, tss, 0755, -, /usr/bin/tp= m2tss-genkey) > + > + @$(call install_finish, tpm2-tss-engine) > + > + @$(call touch) > + > +# vim: syntax=3Dmake >=20 Marc --=20 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 | --T5qfLGeD6hk3Sz6bhNx72GLXLEyNKClQD-- --i5y7eOGnrntszqM6UXFK4pHiKuE9zgvs6 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEENrCndlB/VnAEWuH5k9IU1zQoZfEFAlv+THUACgkQk9IU1zQo ZfFQ7wf9EDUEdBjLAvOn1pmLEGKw47heR6WIvA6/zl2hFHfVj/PkQQIcmk9WYoOb x1hNXem5lXcg/xuWMTx7vKDv0jkLoGmyBYXpyc+UXk0aRDYPIHs2NdByNoxlAwQF zzYviuiDj2AN030kWk/47OaTE88ge1wNvp9cM/itndoJPZuTOqxeXUfcu8JdvliM 3JHQZdV4nKzjzo/Bke44ms+9HMYOnzEott1wnnu7JLvLELn8t3ALTF6jBukn8tSw iZPONkgqctiHzC9VMKsM6sgOOdtohqB9JCoB/FvamhVa+4JWuFbNovkbNxBW9uAH +tBupwY02oalTRoE8NkScgrUhAySGg== =UeDT -----END PGP SIGNATURE----- --i5y7eOGnrntszqM6UXFK4pHiKuE9zgvs6-- --===============0795274797== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============0795274797==--