package/ibm-sw-tpm2: new package
PATCH 1/1 package/ibm-sw-tpm2: new package
This project is an implementation of the TCG TPM 2.0 specification. It is based on the TPM specification Parts 3 and 4 source code donated by Microsoft, with additional files to complete the implementation.
--- package/Config.in | 1 + package/ibm-sw-tpm2/Config.in | 15 +++++++++++++++ package/ibm-sw-tpm2/ibm-sw-tpm2.hash | 5 +++++ package/ibm-sw-tpm2/ibm-sw-tpm2.mk | 22 ++++++++++++++++++++++ 4 files changed, 43 insertions(+) create mode 100644 package/ibm-sw-tpm2/Config.in create mode 100644 package/ibm-sw-tpm2/ibm-sw-tpm2.hash create mode 100644 package/ibm-sw-tpm2/ibm-sw-tpm2.mk
package/Config.in +1 -0
@@ -2285,6 +2285,7 @@ menu "System tools" source "package/ftop/Config.in" source "package/getent/Config.in" source "package/htop/Config.in" + source "package/ibm-sw-tpm2/Config.in" source "package/initscripts/Config.in" source "package/iotop/Config.in" source "package/iprutils/Config.in"
package/ibm-sw-tpm2/Config.in new file +15 -0
@@ -0,0 +1,15 @@ +config BR2_PACKAGE_IBM_SW_TPM2 + bool "ibm-sw-tpm2" + depends on !BR2_STATIC_LIBS # ibm-sw-tpm2 + select BR2_PACKAGE_OPENSSL + select BR2_PACKAGE_OPENSSL_FORCE_LIBOPENSSL + help + This project is an implementation of the TCG TPM 2.0 + specification. It is based on the TPM specification + Parts 3 and 4 source code donated by Microsoft, with + additional files to complete the implementation. + + https://sourceforge.net/projects/ibmswtpm2/ + +comment "ibm-sw-tpm2 needs a toolchain w/ dynamic library" + depends on BR2_STATIC_LIBS
package/ibm-sw-tpm2/ibm-sw-tpm2.hash new file +5 -0
@@ -0,0 +1,5 @@ +# from https://sourceforge.net/projects/ibmswtpm2/files +sha1 a2a5335024a2edc1739f08b99e716fa355be627d ibmtpm1563.tar.gz +md5 13013612b3a13dc935fefe1a5684179c ibmtpm1563.tar.gz +# Locally computed: +sha256 fc3a17f8315c1f47670764f2384943afc0d3ba1e9a0422dacb08d455733bd1e9 ibmtpm1563.tar.gz
package/ibm-sw-tpm2/ibm-sw-tpm2.mk new file +22 -0
@@ -0,0 +1,22 @@ +################################################################################ +# +# ibm-sw-tpm2 +# +################################################################################ + +IBM_SW_TPM2_VERSION = 1563 +IBM_SW_TPM2_SOURCE = ibmtpm$(IBM_SW_TPM2_VERSION).tar.gz +IBM_SW_TPM2_SITE = https://sourceforge.net/projects/ibmswtpm2/files +IBM_SW_TPM2_LICENSE = BSD +IBM_SW_TPM2_LICENSE_FILES = LICENSE +IBM_SW_TPM2_DEPENDENCIES = openssl + +define IBM_SW_TPM2_BUILD_CMDS + $(MAKE) -C $(@D)/src $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) +endef + +define IBM_SW_TPM2_INSTALL_TARGET_CMDS + $(MAKE) -C $(@D)/src $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) install DESTDIR=$(TARGET_DIR) +endef + +$(eval $(generic-package))
Signature · 1 line
2.7.4
PATCH 1/1 package/ibm-sw-tpm2: new package
Hello Philippe,
Sorry for the slow feedback. I have applied your patch, after doing a number of changes, see below.
Quoted 5 lines · On Fri, 3 Jan 2020 16:16:57 +0100 Philippe Reynes…
This project is an implementation of the TCG TPM 2.0 specification. It is based on the TPM specification Parts 3 and 4 source code donated by Microsoft, with additional files to complete the implementation.
Quoted 7 lines
Signed-off-by Philippe Reynes <[email protected]>--- package/Config.in | 1 + package/ibm-sw-tpm2/Config.in | 15 +++++++++++++++ package/ibm-sw-tpm2/ibm-sw-tpm2.hash | 5 +++++ package/ibm-sw-tpm2/ibm-sw-tpm2.mk | 22 ++++++++++++++++++++++ 4 files changed, 43 insertions(+)
Every package should have an entry in the DEVELOPERS file, so I've added one under your name.
package/ibm-sw-tpm2/ibm-sw-tpm2.hash line 5
Quoted 11 lines
package/ibm-sw-tpm2/ibm-sw-tpm2.hash new file +5
-0@@ -0,0 +1,5 @@ +# from https://sourceforge.net/projects/ibmswtpm2/files +sha1 a2a5335024a2edc1739f08b99e716fa355be627d ibmtpm1563.tar.gz +md5 13013612b3a13dc935fefe1a5684179c ibmtpm1563.tar.gz +# Locally computed: +sha256 fc3a17f8315c1f47670764f2384943afc0d3ba1e9a0422dacb08d455733bd1e9 ibmtpm1563.tar.gz
We want the hash of the license file here. Also we've updated our coding style to normalize on two spaces as a separator between the fields in the hash file.
Quoted 6 lines
package/ibm-sw-tpm2/ibm-sw-tpm2.mk new file +0
-0
package/ibm-sw-tpm2/ibm-sw-tpm2.mk line 10
Quoted 10 lines
package/ibm-sw-tpm2/ibm-sw-tpm2.mk new file +10
-0@@ -0,0 +1,22 @@ +################################################################################ +# +# ibm-sw-tpm2 +# +################################################################################ + +IBM_SW_TPM2_VERSION = 1563 +IBM_SW_TPM2_SOURCE = ibmtpm$(IBM_SW_TPM2_VERSION).tar.gz +IBM_SW_TPM2_SITE = https://sourceforge.net/projects/ibmswtpm2/files +IBM_SW_TPM2_LICENSE = BSD
This is not a valid SPDX tag, I've changed to BSD-3-Clause.
package/ibm-sw-tpm2/ibm-sw-tpm2.mk line 15
Quoted 5 lines
package/ibm-sw-tpm2/ibm-sw-tpm2.mk new file +5
-0+IBM_SW_TPM2_LICENSE_FILES = LICENSE +IBM_SW_TPM2_DEPENDENCIES = openssl + +define IBM_SW_TPM2_BUILD_CMDS + $(MAKE) -C $(@D)/src $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS)
TARGET_MAKE_ENV is supposed to be in the make environment, i.e on the left hand-side of make.
package/ibm-sw-tpm2/ibm-sw-tpm2.mk line 19
Quoted 4 lines
package/ibm-sw-tpm2/ibm-sw-tpm2.mk new file +4
-0+endef + +define IBM_SW_TPM2_INSTALL_TARGET_CMDS + $(MAKE) -C $(@D)/src $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) install DESTDIR=$(TARGET_DIR)
Ditto.
As said above, I fixed those issues and applied. Thanks for your contribution!
Best regards,
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin Embedded Linux and Kernel engineering https://bootlin.com