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 > > 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 ") > + @$(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 |