From: Marc Kleine-Budde <[email protected]> --- .../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 <[email protected]> +# +# 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 <[email protected]>") + @$(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 [email protected]
