From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: References: <20181126102320.31421-1-t.scherer@eckelmann.de> From: Marc Kleine-Budde Message-ID: Date: Wed, 28 Nov 2018 08:57:30 +0100 MIME-Version: 1.0 In-Reply-To: <20181126102320.31421-1-t.scherer@eckelmann.de> Subject: Re: [ptxdist] [PATCH 3/5] ptxdist: add tpm2-tools 3.1.2 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="===============0939215502==" 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) --===============0939215502== Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="jkD1hN3vVFmeBomkjlYeE6qh2uIlmTeLf" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --jkD1hN3vVFmeBomkjlYeE6qh2uIlmTeLf Content-Type: multipart/mixed; boundary="H7Ci2lvAfZWPxaylRSspdW8aqwhRlqk8X"; protected-headers="v1" From: Marc Kleine-Budde To: ptxdist@pengutronix.de, "Thorsten K. Scherer" Message-ID: Subject: Re: [ptxdist] [PATCH 3/5] ptxdist: add tpm2-tools 3.1.2 References: <20181126102320.31421-1-t.scherer@eckelmann.de> In-Reply-To: <20181126102320.31421-1-t.scherer@eckelmann.de> --H7Ci2lvAfZWPxaylRSspdW8aqwhRlqk8X 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 > --- > rules/tpm2-tools.in | 92 ++++++++++++++++++++++++++++ > rules/tpm2-tools.make | 137 ++++++++++++++++++++++++++++++++++++++++++= > 2 files changed, 229 insertions(+) > create mode 100644 rules/tpm2-tools.in > create mode 100644 rules/tpm2-tools.make >=20 > diff --git a/rules/tpm2-tools.in b/rules/tpm2-tools.in > new file mode 100644 > index 0000000..85638f7 > --- /dev/null > +++ b/rules/tpm2-tools.in > @@ -0,0 +1,92 @@ > +## SECTION=3Dtpm > +menuconfig TPM2_TOOLS > + tristate > + prompt "tpm2-tools " > + select TPM2_TSS > + select OPENSSL > + select LIBCURL > + 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. > + > + See https://github.com/tpm2-software/tpm2-tools for details > + > +if TPM2_TOOLS > + > +config TPM2_TOOLS_START_UP > + bool "Start-up" > + help > + tpm2_startup > + > +config TPM2_TOOLS_OBJECT > + bool "Object" > + help > + tpm2_create, tpm2_createprimary, tpm2_load, tpm2_loadexternal, \ > + tpm2_readpublic, tpm2_activatecredential, tpm2_makecredential, \ > + tpm2_unseal No need for \ in the help text > + > +config TPM2_TOOLS_ASYMMETRIC_PRIMITIVES > + bool "Asymmetric primitives" > + help > + tpm2_rsaencrypt, tpm2_rsadecrypt > + > +config TPM2_TOOLS_SYMMETRIC_PRIMITIVES > + bool "Symmetric primitives" > + help > + tpm2_encryptdecrypt, tpm2_hash, tpm2_hmac > + > +config TPM2_TOOLS_RANDOM_NUMBER_GENERATOR > + bool "Random number generator" > + help > + tpm2_getrandom > + > +config TPM2_TOOLS_ATTESTATION > + bool "Attestation" > + help > + tpm2_certify, tpm2_quote > + > +config TPM2_TOOLS_SIGNING_AND_SIGNATURE_VERIFICATION > + bool "Signing and signature verification" > + help > + tpm2_sign, tpm2_verifysignature > + > +config TPM2_TOOLS_INTEGRITY > + bool "Integrity" > + help > + tpm2_pcrextend, tpm2_pcrevent, tpm2_pcrlist > + > +config TPM2_TOOLS_ENHANCED_AUTHORISATION > + bool "Enhanced authorisation (EA)" > + help > + tpm2_createpolicy > + > +config TPM2_TOOLS_DICTIONARY_ATTACK > + bool "Dictionary attack" > + help > + tpm2_dictionarylockout > + > +config TPM2_TOOLS_CONTEXT_MANAGEMENT > + bool "Context management" > + help > + tpm2_evictcontrol > + > +config TPM2_TOOLS_CAPABILITY_COMMANDS > + bool "Capability commands" > + help > + tpm2_getcap > + > +config TPM2_TOOLS_NON_VOLATILE_STORAGE > + bool "Non-volatile storage" > + help > + tpm2_nvdefine, tpm2_nvlist, tpm2_nvread, tpm2_nvreadlock, \ > + tpm2_nvrelease, tpm2_nvwrite same here > > +config TPM2_TOOLS_MISC > + bool "Miscellaneous" > + help > + tpm2_send, tpm2_getmanufec, tpm2_getpubak, tpm2_getpubek, \ > + tpm2_listpersistent, tpm2_rc_decode, tpm2_takeownership same here > + > +endif > diff --git a/rules/tpm2-tools.make b/rules/tpm2-tools.make > new file mode 100644 > index 0000000..3bee70d > --- /dev/null > +++ b/rules/tpm2-tools.make > @@ -0,0 +1,137 @@ > +# -*-makefile-*- > +# > +# Copyright (C) 2017 by Marc Kleine-Budde > +# > +# See CREDITS for details about who has contributed to this project. > +# > +# For further information about the PTXdist project and license condit= ions > +# see the README file. > +# > + > +# > +# We provide this package > +# > +PACKAGES-$(PTXCONF_TPM2_TOOLS) +=3D tpm2-tools > + > +# > +# Paths and names > +# > +TPM2_TOOLS_VERSION :=3D 3.1.2 3.1.3 is the latest release > +TPM2_TOOLS_MD5 :=3D aa8e0f61608bd02a2b0082dafceddb60 > +TPM2_TOOLS :=3D tpm2-tools-$(TPM2_TOOLS_VERSION) > +TPM2_TOOLS_SUFFIX :=3D tar.gz > +TPM2_TOOLS_URL :=3D https://github.com/01org/tpm2-tools.git;ta= g=3D$(TPM2_TOOLS_VERSION) > +TPM2_TOOLS_SOURCE :=3D $(SRCDIR)/$(TPM2_TOOLS).$(TPM2_TOOLS_SUFFI= X) > +TPM2_TOOLS_DIR :=3D $(BUILDDIR)/$(TPM2_TOOLS) > +TPM2_TOOLS_LICENSE :=3D BSD-3-Clause > + > +# --------------------------------------------------------------------= -------- > +# Prepare > +# --------------------------------------------------------------------= -------- > + > +# > +# autoconf > +# > +TPM2_TOOLS_CONF_TOOL :=3D autoconf > +TPM2_TOOLS_CONF_OPT :=3D $(CROSS_AUTOCONF_USR) > + > +# --------------------------------------------------------------------= -------- > +# Target-Install > +# --------------------------------------------------------------------= -------- > + > +$(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 ") > + @$(call install_fixup, tpm2-tools,DESCRIPTION,missing) > + > + > +ifdef PTXCONF_TPM2_TOOLS_START_UP > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_sta= rtup) > +endif > + > +ifdef PTXCONF_TPM2_TOOLS_OBJECT > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_cre= ate) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_cre= ateprimary) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_loa= d) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_loa= dexternal) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_rea= dpublic) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_act= ivatecredential) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_mak= ecredential) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_uns= eal) > +endif > + > +ifdef PTXCONF_TPM2_TOOLS_ASYMMETRIC_PRIMITIVES > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_rsa= encrypt) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_rsa= decrypt) > +endif > + > +ifdef PTXCONF_TPM2_TOOLS_SYMMETRIC_PRIMITIVES > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_enc= ryptdecrypt) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_has= h) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_hma= c) > +endif > + > +ifdef PTXCONF_TPM2_TOOLS_RANDOM_NUMBER_GENERATOR > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_get= random) > +endif > + > +ifdef PTXCONF_TPM2_TOOLS_ATTESTATION > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_cer= tify) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_quo= te) > +endif > + > +ifdef PTXCONF_TPM2_TOOLS_SIGNING_AND_SIGNATURE_VERIFICATION > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_sig= n) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_ver= ifysignature) > +endif > + > +ifdef PTXCONF_TPM2_TOOLS_INTEGRITY > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_pcr= extend) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_pcr= event) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_pcr= list) > +endif > + > +ifdef PTXCONF_TPM2_TOOLS_ENHANCED_AUTHORISATION > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_cre= atepolicy) > +endif > + > +ifdef PTXCONF_TPM2_TOOLS_DICTIONARY_ATTACK > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_dic= tionarylockout) > +endif > + > +ifdef PTXCONF_TPM2_TOOLS_CONTEXT_MANAGEMENT > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_evi= ctcontrol) > +endif > + > +ifdef PTXCONF_TPM2_TOOLS_CAPABILITY_COMMANDS > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_get= cap) > +endif > + > +ifdef PTXCONF_TPM2_TOOLS_NON_VOLATILE_STORAGE > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_nvd= efine) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_nvl= ist) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_nvr= ead) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_nvr= eadlock) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_nvr= elease) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_nvw= rite) > +endif > + > +ifdef PTXCONF_TPM2_TOOLS_MISC > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_sen= d) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_get= manufec) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_get= pubak) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_get= pubek) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_lis= tpersistent) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_rc_= decode) > + $(call install_copy, tpm2-tools, tss, tss, 0755, -, /usr/bin/tpm2_tak= eownership) > +endif > + > + @$(call install_finish, tpm2-tools) > + > + @$(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 | --H7Ci2lvAfZWPxaylRSspdW8aqwhRlqk8X-- --jkD1hN3vVFmeBomkjlYeE6qh2uIlmTeLf Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAEBCgAdFiEENrCndlB/VnAEWuH5k9IU1zQoZfEFAlv+SmwACgkQk9IU1zQo ZfF6oAgApz95mE1iuh6mAKID3jIZ1QmUQ+/Yu4s8H3ENodXQTNrm/AVuE+If8Z/4 b6A5y+EBnwe4WxQ/QyIu1Ro675bbE+MqICQNNd4tWIgv7P7BzWbDqfg4b/z+4FWF NTZbKZOOU4nioT1m77xciIlOikxlZPDKhaUFT5v/QnHPAhtJOnsV+yPthisWN7xx 0x6YF2ahD1+xXqFMSUJoRAr8WZu0Kuzi6XT8YsmH45UOBDXbGej3S1TGuqmJiY7U il+c6PmAusem84khySHzF9OD46GNE9u2Psn8jN6JfH7/RX1FbTANCrtrien1koX4 IZR9vB+oIuVnN3rkiZLJ8mk3fPNBIA== =seGG -----END PGP SIGNATURE----- --jkD1hN3vVFmeBomkjlYeE6qh2uIlmTeLf-- --===============0939215502== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KcHR4ZGlzdCBt YWlsaW5nIGxpc3QKcHR4ZGlzdEBwZW5ndXRyb25peC5kZQ== --===============0939215502==--