* [Buildroot] [PATCH 0/6] add missing tpm2-openssl package and tpm2_ptool script
@ 2024-06-27 7:54 Romain Naour via buildroot
2024-06-27 7:54 ` [Buildroot] [PATCH 1/6] package/ima-evm-utils: update url to github Romain Naour via buildroot
` (6 more replies)
0 siblings, 7 replies; 10+ messages in thread
From: Romain Naour via buildroot @ 2024-06-27 7:54 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
This series complete the tpm2 related package list in Buildroot in
order to ease getting started with tpm devices. For example, some
tutorial uses tpm2_ptool script that is currently not installed by
tpm2-pkcs11 package.
Romain Naour (6):
package/ima-evm-utils: update url to github
package/tpm2-openssl: new package
package/python-asn1crypto: add host-variant
package/python-pkgconfig: new host package
package/python-tpm2-pytss: new package
package/tpm2-pkcs11: install tool script (tpm2_ptool)
DEVELOPERS | 3 +++
package/Config.in | 2 ++
package/ima-evm-utils/ima-evm-utils.mk | 2 +-
.../python-asn1crypto/python-asn1crypto.mk | 1 +
.../python-pkgconfig/python-pkgconfig.hash | 5 +++++
package/python-pkgconfig/python-pkgconfig.mk | 16 ++++++++++++++
package/python-tpm2-pytss/Config.in | 14 ++++++++++++
.../python-tpm2-pytss/python-tpm2-pytss.hash | 5 +++++
.../python-tpm2-pytss/python-tpm2-pytss.mk | 22 +++++++++++++++++++
package/tpm2-openssl/Config.in | 17 ++++++++++++++
package/tpm2-openssl/tpm2-openssl.hash | 3 +++
package/tpm2-openssl/tpm2-openssl.mk | 19 ++++++++++++++++
package/tpm2-pkcs11/Config.in | 22 +++++++++++++++++++
package/tpm2-pkcs11/tpm2-pkcs11.mk | 20 +++++++++++++++++
14 files changed, 150 insertions(+), 1 deletion(-)
create mode 100644 package/python-pkgconfig/python-pkgconfig.hash
create mode 100644 package/python-pkgconfig/python-pkgconfig.mk
create mode 100644 package/python-tpm2-pytss/Config.in
create mode 100644 package/python-tpm2-pytss/python-tpm2-pytss.hash
create mode 100644 package/python-tpm2-pytss/python-tpm2-pytss.mk
create mode 100644 package/tpm2-openssl/Config.in
create mode 100644 package/tpm2-openssl/tpm2-openssl.hash
create mode 100644 package/tpm2-openssl/tpm2-openssl.mk
--
2.45.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 1/6] package/ima-evm-utils: update url to github
2024-06-27 7:54 [Buildroot] [PATCH 0/6] add missing tpm2-openssl package and tpm2_ptool script Romain Naour via buildroot
@ 2024-06-27 7:54 ` Romain Naour via buildroot
2024-07-17 21:36 ` Thomas Petazzoni via buildroot
2024-06-27 7:54 ` [Buildroot] [PATCH 2/6] package/tpm2-openssl: new package Romain Naour via buildroot
` (5 subsequent siblings)
6 siblings, 1 reply; 10+ messages in thread
From: Romain Naour via buildroot @ 2024-06-27 7:54 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
The project moved from Mimi Zohar personal github account to
https://github.com/linux-integrity/ima-evm-utils.
Signed-off-by: Romain Naour <romain.naour@smile.fr>
---
package/ima-evm-utils/ima-evm-utils.mk | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/ima-evm-utils/ima-evm-utils.mk b/package/ima-evm-utils/ima-evm-utils.mk
index b969b4709e..a7d70bc1bb 100644
--- a/package/ima-evm-utils/ima-evm-utils.mk
+++ b/package/ima-evm-utils/ima-evm-utils.mk
@@ -5,7 +5,7 @@
################################################################################
IMA_EVM_UTILS_VERSION = 1.5
-IMA_EVM_UTILS_SITE = https://github.com/mimizohar/ima-evm-utils/releases/download/v$(IMA_EVM_UTILS_VERSION)
+IMA_EVM_UTILS_SITE = https://github.com/linux-integrity/ima-evm-utils/releases/download/v$(IMA_EVM_UTILS_VERSION)
IMA_EVM_UTILS_LICENSE = GPL-2.0
IMA_EVM_UTILS_LICENSE_FILES = COPYING
IMA_EVM_UTILS_INSTALL_STAGING = YES
--
2.45.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 2/6] package/tpm2-openssl: new package
2024-06-27 7:54 [Buildroot] [PATCH 0/6] add missing tpm2-openssl package and tpm2_ptool script Romain Naour via buildroot
2024-06-27 7:54 ` [Buildroot] [PATCH 1/6] package/ima-evm-utils: update url to github Romain Naour via buildroot
@ 2024-06-27 7:54 ` Romain Naour via buildroot
2024-07-17 21:44 ` Thomas Petazzoni via buildroot
2024-06-27 7:54 ` [Buildroot] [PATCH 3/6] package/python-asn1crypto: add host-variant Romain Naour via buildroot
` (4 subsequent siblings)
6 siblings, 1 reply; 10+ messages in thread
From: Romain Naour via buildroot @ 2024-06-27 7:54 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
Signed-off-by: Romain Naour <romain.naour@smile.fr>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/tpm2-openssl/Config.in | 17 +++++++++++++++++
package/tpm2-openssl/tpm2-openssl.hash | 3 +++
package/tpm2-openssl/tpm2-openssl.mk | 19 +++++++++++++++++++
5 files changed, 41 insertions(+)
create mode 100644 package/tpm2-openssl/Config.in
create mode 100644 package/tpm2-openssl/tpm2-openssl.hash
create mode 100644 package/tpm2-openssl/tpm2-openssl.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 8a5cceba78..423fb2dd64 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2780,6 +2780,7 @@ F: package/supertux/
F: package/supertuxkart/
F: package/terminology/
F: package/tk/
+F: package/tpm2-openssl/
F: package/upower/
F: package/waffle/
F: package/xenomai/
diff --git a/package/Config.in b/package/Config.in
index 550fdc1f41..20fd8a965a 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1574,6 +1574,7 @@ menu "Crypto"
source "package/pkcs11-helper/Config.in"
source "package/rhash/Config.in"
source "package/tinydtls/Config.in"
+ source "package/tpm2-openssl/Config.in"
source "package/tpm2-pkcs11/Config.in"
source "package/tpm2-tss/Config.in"
source "package/trousers/Config.in"
diff --git a/package/tpm2-openssl/Config.in b/package/tpm2-openssl/Config.in
new file mode 100644
index 0000000000..0e151a94d3
--- /dev/null
+++ b/package/tpm2-openssl/Config.in
@@ -0,0 +1,17 @@
+config BR2_PACKAGE_TPM2_OPENSSL
+ bool "tpm2-openssl"
+ depends on !BR2_STATIC_LIBS # tpm2-tss
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ select BR2_PACKAGE_OPENSSL
+ select BR2_PACKAGE_TPM2_TSS
+ help
+ Provider for integration of TPM 2.0 to OpenSSL 3.0.
+
+ tpm2-openssl is based on a major refactoring of the
+ tpm2-tss-engine. The code is still there, but largely
+ reshuffled to match the new OpenSSL API.
+
+ https://github.com/tpm2-software/tpm2-openssl
+
+comment "tpm2-openssl needs a toolchain w/ dynamic library, threads"
+ depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/tpm2-openssl/tpm2-openssl.hash b/package/tpm2-openssl/tpm2-openssl.hash
new file mode 100644
index 0000000000..ee15ee885f
--- /dev/null
+++ b/package/tpm2-openssl/tpm2-openssl.hash
@@ -0,0 +1,3 @@
+# Locally computed:
+sha256 2ee15da2dceae1466ffba868e75a00b119d752babc1b6a2792286336a3324fb0 tpm2-openssl-1.2.0.tar.gz
+sha256 7ffba9d66226eb67abb9747ce1cd47477d566143a8ded597bbd974c6fb5fe9f5 LICENSE
diff --git a/package/tpm2-openssl/tpm2-openssl.mk b/package/tpm2-openssl/tpm2-openssl.mk
new file mode 100644
index 0000000000..ed590c2f47
--- /dev/null
+++ b/package/tpm2-openssl/tpm2-openssl.mk
@@ -0,0 +1,19 @@
+################################################################################
+#
+# tpm2-openssl
+#
+################################################################################
+
+TPM2_OPENSSL_VERSION = 1.2.0
+TPM2_OPENSSL_SITE = https://github.com/tpm2-software/tpm2-openssl/releases/download/$(TPM2_OPENSSL_VERSION)
+TPM2_OPENSSL_LICENSE = BSD-3-Clause
+TPM2_OPENSSL_LICENSE_FILES = LICENSE
+TPM2_OPENSSL_INSTALL_STAGING = YES
+TPM2_OPENSSL_DEPENDENCIES = host-pkgconf openssl tpm2-tss
+
+# Provide --with-modulesdir to avoid using abs_builddir and DESTDIR
+# (also defined as absolute path) at the same time to define modules
+# install path (am__installdirs).
+TPM2_OPENSSL_CONF_OPTS = --with-modulesdir="/usr/lib/ossl-modules"
+
+$(eval $(autotools-package))
--
2.45.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 3/6] package/python-asn1crypto: add host-variant
2024-06-27 7:54 [Buildroot] [PATCH 0/6] add missing tpm2-openssl package and tpm2_ptool script Romain Naour via buildroot
2024-06-27 7:54 ` [Buildroot] [PATCH 1/6] package/ima-evm-utils: update url to github Romain Naour via buildroot
2024-06-27 7:54 ` [Buildroot] [PATCH 2/6] package/tpm2-openssl: new package Romain Naour via buildroot
@ 2024-06-27 7:54 ` Romain Naour via buildroot
2024-06-27 7:54 ` [Buildroot] [PATCH 4/6] package/python-pkgconfig: new host package Romain Naour via buildroot
` (3 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Romain Naour via buildroot @ 2024-06-27 7:54 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
Required to build python-tpm2-pytss.
Signed-off-by: Romain Naour <romain.naour@smile.fr>
---
package/python-asn1crypto/python-asn1crypto.mk | 1 +
1 file changed, 1 insertion(+)
diff --git a/package/python-asn1crypto/python-asn1crypto.mk b/package/python-asn1crypto/python-asn1crypto.mk
index 480b70d17a..d8d6176150 100644
--- a/package/python-asn1crypto/python-asn1crypto.mk
+++ b/package/python-asn1crypto/python-asn1crypto.mk
@@ -12,3 +12,4 @@ PYTHON_ASN1CRYPTO_LICENSE = MIT
PYTHON_ASN1CRYPTO_LICENSE_FILES = LICENSE
$(eval $(python-package))
+$(eval $(host-python-package))
--
2.45.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 4/6] package/python-pkgconfig: new host package
2024-06-27 7:54 [Buildroot] [PATCH 0/6] add missing tpm2-openssl package and tpm2_ptool script Romain Naour via buildroot
` (2 preceding siblings ...)
2024-06-27 7:54 ` [Buildroot] [PATCH 3/6] package/python-asn1crypto: add host-variant Romain Naour via buildroot
@ 2024-06-27 7:54 ` Romain Naour via buildroot
2024-06-27 7:54 ` [Buildroot] [PATCH 5/6] package/python-tpm2-pytss: new package Romain Naour via buildroot
` (2 subsequent siblings)
6 siblings, 0 replies; 10+ messages in thread
From: Romain Naour via buildroot @ 2024-06-27 7:54 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
Required to build python-tpm2-pytss.
Signed-off-by: Romain Naour <romain.naour@smile.fr>
---
DEVELOPERS | 1 +
package/python-pkgconfig/python-pkgconfig.hash | 5 +++++
package/python-pkgconfig/python-pkgconfig.mk | 16 ++++++++++++++++
3 files changed, 22 insertions(+)
create mode 100644 package/python-pkgconfig/python-pkgconfig.hash
create mode 100644 package/python-pkgconfig/python-pkgconfig.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 423fb2dd64..91aed11860 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2773,6 +2773,7 @@ F: package/openpowerlink/
F: package/physfs/
F: package/piglit/
F: package/python-libevdev/
+F: package/python-pkgconfig/
F: package/qemu/
F: package/solarus/
F: package/stress-ng/
diff --git a/package/python-pkgconfig/python-pkgconfig.hash b/package/python-pkgconfig/python-pkgconfig.hash
new file mode 100644
index 0000000000..2fa57a7be5
--- /dev/null
+++ b/package/python-pkgconfig/python-pkgconfig.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/pkgconfig/json
+md5 12523e11b91b050ca49975cc033689a4 pkgconfig-1.5.5.tar.gz
+sha256 deb4163ef11f75b520d822d9505c1f462761b4309b1bb713d08689759ea8b899 pkgconfig-1.5.5.tar.gz
+# Locally computed sha256 checksums
+sha256 cdfc7f89d8c93b15d447c9ed71d5a533b4e44b82ec86daaefb10f6db37b9e13a LICENSE
diff --git a/package/python-pkgconfig/python-pkgconfig.mk b/package/python-pkgconfig/python-pkgconfig.mk
new file mode 100644
index 0000000000..239dd90a5d
--- /dev/null
+++ b/package/python-pkgconfig/python-pkgconfig.mk
@@ -0,0 +1,16 @@
+################################################################################
+#
+# python-pkgconfig
+#
+################################################################################
+
+PYTHON_PKGCONFIG_VERSION = 1.5.5
+PYTHON_PKGCONFIG_SOURCE = pkgconfig-$(PYTHON_PKGCONFIG_VERSION).tar.gz
+PYTHON_PKGCONFIG_SITE = https://files.pythonhosted.org/packages/c4/e0/e05fee8b5425db6f83237128742e7e5ef26219b687ab8f0d41ed0422125e
+PYTHON_PKGCONFIG_SETUP_TYPE = setuptools
+PYTHON_PKGCONFIG_LICENSE = MIT
+PYTHON_PKGCONFIG_LICENSE_FILES = LICENSE
+
+HOST_PYTHON_PKGCONFIG_DEPENDENCIES = host-python-poetry-core
+
+$(eval $(host-python-package))
--
2.45.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 5/6] package/python-tpm2-pytss: new package
2024-06-27 7:54 [Buildroot] [PATCH 0/6] add missing tpm2-openssl package and tpm2_ptool script Romain Naour via buildroot
` (3 preceding siblings ...)
2024-06-27 7:54 ` [Buildroot] [PATCH 4/6] package/python-pkgconfig: new host package Romain Naour via buildroot
@ 2024-06-27 7:54 ` Romain Naour via buildroot
2024-06-27 7:54 ` [Buildroot] [PATCH 6/6] package/tpm2-pkcs11: install tool script (tpm2_ptool) Romain Naour via buildroot
2024-07-18 21:25 ` [Buildroot] [PATCH 0/6] add missing tpm2-openssl package and tpm2_ptool script Thomas Petazzoni via buildroot
6 siblings, 0 replies; 10+ messages in thread
From: Romain Naour via buildroot @ 2024-06-27 7:54 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
Signed-off-by: Romain Naour <romain.naour@smile.fr>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/python-tpm2-pytss/Config.in | 14 ++++++++++++
.../python-tpm2-pytss/python-tpm2-pytss.hash | 5 +++++
.../python-tpm2-pytss/python-tpm2-pytss.mk | 22 +++++++++++++++++++
5 files changed, 43 insertions(+)
create mode 100644 package/python-tpm2-pytss/Config.in
create mode 100644 package/python-tpm2-pytss/python-tpm2-pytss.hash
create mode 100644 package/python-tpm2-pytss/python-tpm2-pytss.mk
diff --git a/DEVELOPERS b/DEVELOPERS
index 91aed11860..69dd0a5fb0 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -2774,6 +2774,7 @@ F: package/physfs/
F: package/piglit/
F: package/python-libevdev/
F: package/python-pkgconfig/
+F: package/python-tpm2-pytss/
F: package/qemu/
F: package/solarus/
F: package/stress-ng/
diff --git a/package/Config.in b/package/Config.in
index 20fd8a965a..a24c47a440 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -1388,6 +1388,7 @@ menu "External python modules"
source "package/python-toml/Config.in"
source "package/python-tomli/Config.in"
source "package/python-tornado/Config.in"
+ source "package/python-tpm2-pytss/Config.in"
source "package/python-tqdm/Config.in"
source "package/python-trafaret/Config.in"
source "package/python-traitlets/Config.in"
diff --git a/package/python-tpm2-pytss/Config.in b/package/python-tpm2-pytss/Config.in
new file mode 100644
index 0000000000..60d9e8b9d3
--- /dev/null
+++ b/package/python-tpm2-pytss/Config.in
@@ -0,0 +1,14 @@
+config BR2_PACKAGE_PYTHON_TPM2_PYTSS
+ bool "python-tpm2-pytss"
+ depends on !BR2_STATIC_LIBS # tpm2-tss
+ select BR2_PACKAGE_PYTHON_ASN1CRYPTO # runtime
+ select BR2_PACKAGE_PYTHON_CFFI # runtime
+ select BR2_PACKAGE_PYTHON_CRYPTOGRAPHY # runtime
+ select BR2_PACKAGE_TPM2_TSS
+ help
+ TPM 2.0 TSS Bindings for Python.
+
+ https://github.com/tpm2-software/tpm2-pytss
+
+comment "python-tpm2-pytss needs a toolchain w/ dynamic library"
+ depends on BR2_STATIC_LIBS
diff --git a/package/python-tpm2-pytss/python-tpm2-pytss.hash b/package/python-tpm2-pytss/python-tpm2-pytss.hash
new file mode 100644
index 0000000000..10a9f112b7
--- /dev/null
+++ b/package/python-tpm2-pytss/python-tpm2-pytss.hash
@@ -0,0 +1,5 @@
+# md5, sha256 from https://pypi.org/pypi/tpm2-pytss/json
+md5 069a02c99d3203fada940c3dd43b699c tpm2-pytss-2.2.1.tar.gz
+sha256 b8f15473422f377f59c7217dcd1479165cce62dfa33934ec976a278baf2e9efe tpm2-pytss-2.2.1.tar.gz
+# Locally computed sha256 checksums
+sha256 18c1bf4b1ba1fb2c4ffa7398c234d83c0d55475298e470ae1e5e3a8a8bd2e448 LICENSE
diff --git a/package/python-tpm2-pytss/python-tpm2-pytss.mk b/package/python-tpm2-pytss/python-tpm2-pytss.mk
new file mode 100644
index 0000000000..80491aac46
--- /dev/null
+++ b/package/python-tpm2-pytss/python-tpm2-pytss.mk
@@ -0,0 +1,22 @@
+################################################################################
+#
+# python-tpm2-pytss
+#
+################################################################################
+
+PYTHON_TPM2_PYTSS_VERSION = 2.2.1
+PYTHON_TPM2_PYTSS_SOURCE = tpm2-pytss-$(PYTHON_TPM2_PYTSS_VERSION).tar.gz
+PYTHON_TPM2_PYTSS_SITE = https://files.pythonhosted.org/packages/13/e5/8d4a9ac91579c741ec9fb63befcf6577107f22f3508c364fd53e277d7237
+PYTHON_TPM2_PYTSS_SETUP_TYPE = setuptools
+PYTHON_TPM2_PYTSS_LICENSE = BSD-2-Clause
+PYTHON_TPM2_PYTSS_LICENSE_FILES = LICENSE
+
+PYTHON_TPM2_PYTSS_DEPENDENCIES = host-pkgconf \
+ host-python-asn1crypto \
+ host-python-cffi \
+ host-python-cryptography \
+ host-python-pkgconfig \
+ host-python-pycparser \
+ tpm2-tss
+
+$(eval $(python-package))
--
2.45.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 10+ messages in thread
* [Buildroot] [PATCH 6/6] package/tpm2-pkcs11: install tool script (tpm2_ptool)
2024-06-27 7:54 [Buildroot] [PATCH 0/6] add missing tpm2-openssl package and tpm2_ptool script Romain Naour via buildroot
` (4 preceding siblings ...)
2024-06-27 7:54 ` [Buildroot] [PATCH 5/6] package/python-tpm2-pytss: new package Romain Naour via buildroot
@ 2024-06-27 7:54 ` Romain Naour via buildroot
2024-07-18 21:25 ` [Buildroot] [PATCH 0/6] add missing tpm2-openssl package and tpm2_ptool script Thomas Petazzoni via buildroot
6 siblings, 0 replies; 10+ messages in thread
From: Romain Naour via buildroot @ 2024-06-27 7:54 UTC (permalink / raw)
To: buildroot; +Cc: Romain Naour
tpm2_ptool script appear on several TPM2 tutorial and it's packaged as
"tpm2-pkcs11-tools" package on several Linux distribution.
Add a new tpm2-pkcs11 option to install tpm2_ptool script along with
its dependencies.
Signed-off-by: Romain Naour <romain.naour@smile.fr>
---
package/tpm2-pkcs11/Config.in | 22 ++++++++++++++++++++++
package/tpm2-pkcs11/tpm2-pkcs11.mk | 20 ++++++++++++++++++++
2 files changed, 42 insertions(+)
diff --git a/package/tpm2-pkcs11/Config.in b/package/tpm2-pkcs11/Config.in
index 5d45703223..93aa4a847a 100644
--- a/package/tpm2-pkcs11/Config.in
+++ b/package/tpm2-pkcs11/Config.in
@@ -11,5 +11,27 @@ config BR2_PACKAGE_TPM2_PKCS11
https://github.com/tpm2-software/tpm2-pkcs11
+if BR2_PACKAGE_TPM2_PKCS11
+
+config BR2_PACKAGE_TPM2_PKCS11_PYTHON_TOOLS
+ bool "Install python tools (tpm2_ptool)"
+ depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS # python-bcrypt, python-cryptography
+ depends on BR2_PACKAGE_PYTHON3
+ select BR2_PACKAGE_PYTHON_BCRYPT # runtime
+ select BR2_PACKAGE_PYTHON_CRYPTOGRAPHY # runtime
+ select BR2_PACKAGE_PYTHON_PYASN1 # runtime
+ select BR2_PACKAGE_PYTHON_PYASN1_MODULES # runtime
+ select BR2_PACKAGE_PYTHON_PYYAML # runtime
+ select BR2_PACKAGE_PYTHON_TPM2_PYTSS # runtime
+ select BR2_PACKAGE_PYTHON3_SQLITE # runtime
+ help
+ Enable Python-related tools (tpm2_ptool)
+
+comment "python tools needs python3"
+ depends on !BR2_PACKAGE_PYTHON3
+ depends on BR2_PACKAGE_HOST_RUSTC_TARGET_ARCH_SUPPORTS
+
+endif
+
comment "tpm2-pkcs11 needs a toolchain w/ dynamic library, threads"
depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/tpm2-pkcs11/tpm2-pkcs11.mk b/package/tpm2-pkcs11/tpm2-pkcs11.mk
index 18f04157e3..c6218d772e 100644
--- a/package/tpm2-pkcs11/tpm2-pkcs11.mk
+++ b/package/tpm2-pkcs11/tpm2-pkcs11.mk
@@ -44,4 +44,24 @@ TPM2_PKCS11_CONF_OPTS += \
--with-p11kitconfigdir=/usr/share/p11-kit/modules
endif
+ifeq ($(BR2_PACKAGE_TPM2_PKCS11_PYTHON_TOOLS),y)
+TPM2_PKCS11_DEPENDENCIES += python-tpm2-pytss
+
+define TPM2_PKCS11_BUILD_TOOLS
+ (cd $(@D)/tools; \
+ $(PKG_PYTHON_SETUPTOOLS_ENV) \
+ $(HOST_DIR)/bin/python setup.py build)
+endef
+TPM2_PKCS11_POST_BUILD_HOOKS += TPM2_PKCS11_BUILD_TOOLS
+
+define TPM2_PKCS11_INSTALL_TARGET_TOOLS
+ (cd $(@D)/tools; \
+ $(PKG_PYTHON_SETUPTOOLS_ENV) \
+ $(HOST_DIR)/bin/python setup.py install \
+ $(PKG_PYTHON_SETUPTOOLS_INSTALL_OPTS) \
+ --root=$(TARGET_DIR))
+endef
+TPM2_PKCS11_POST_INSTALL_TARGET_HOOKS += TPM2_PKCS11_INSTALL_TARGET_TOOLS
+endif
+
$(eval $(autotools-package))
--
2.45.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: [Buildroot] [PATCH 1/6] package/ima-evm-utils: update url to github
2024-06-27 7:54 ` [Buildroot] [PATCH 1/6] package/ima-evm-utils: update url to github Romain Naour via buildroot
@ 2024-07-17 21:36 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 10+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-07-17 21:36 UTC (permalink / raw)
To: Romain Naour via buildroot; +Cc: Romain Naour
On Thu, 27 Jun 2024 09:54:36 +0200
Romain Naour via buildroot <buildroot@buildroot.org> wrote:
> The project moved from Mimi Zohar personal github account to
> https://github.com/linux-integrity/ima-evm-utils.
>
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> ---
> package/ima-evm-utils/ima-evm-utils.mk | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Thanks a lot, but as part of the bump to v1.6, Petr Vorel had also
proposed to change the github URL, and Petr's patch has already been
applied. Therefore, I marked this patch as "Not Applicable".
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Buildroot] [PATCH 2/6] package/tpm2-openssl: new package
2024-06-27 7:54 ` [Buildroot] [PATCH 2/6] package/tpm2-openssl: new package Romain Naour via buildroot
@ 2024-07-17 21:44 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 10+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-07-17 21:44 UTC (permalink / raw)
To: Romain Naour via buildroot; +Cc: Romain Naour
On Thu, 27 Jun 2024 09:54:37 +0200
Romain Naour via buildroot <buildroot@buildroot.org> wrote:
> Signed-off-by: Romain Naour <romain.naour@smile.fr>
> ---
> DEVELOPERS | 1 +
> package/Config.in | 1 +
> package/tpm2-openssl/Config.in | 17 +++++++++++++++++
> package/tpm2-openssl/tpm2-openssl.hash | 3 +++
> package/tpm2-openssl/tpm2-openssl.mk | 19 +++++++++++++++++++
> 5 files changed, 41 insertions(+)
> create mode 100644 package/tpm2-openssl/Config.in
> create mode 100644 package/tpm2-openssl/tpm2-openssl.hash
> create mode 100644 package/tpm2-openssl/tpm2-openssl.mk
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [Buildroot] [PATCH 0/6] add missing tpm2-openssl package and tpm2_ptool script
2024-06-27 7:54 [Buildroot] [PATCH 0/6] add missing tpm2-openssl package and tpm2_ptool script Romain Naour via buildroot
` (5 preceding siblings ...)
2024-06-27 7:54 ` [Buildroot] [PATCH 6/6] package/tpm2-pkcs11: install tool script (tpm2_ptool) Romain Naour via buildroot
@ 2024-07-18 21:25 ` Thomas Petazzoni via buildroot
6 siblings, 0 replies; 10+ messages in thread
From: Thomas Petazzoni via buildroot @ 2024-07-18 21:25 UTC (permalink / raw)
To: Romain Naour via buildroot; +Cc: Romain Naour
Hello Romain,
On Thu, 27 Jun 2024 09:54:35 +0200
Romain Naour via buildroot <buildroot@buildroot.org> wrote:
> Romain Naour (6):
> package/ima-evm-utils: update url to github
> package/tpm2-openssl: new package
> package/python-asn1crypto: add host-variant
> package/python-pkgconfig: new host package
> package/python-tpm2-pytss: new package
> package/tpm2-pkcs11: install tool script (tpm2_ptool)
Series applied, except PATCH 1/6, which was already done by someone
else.
Thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2024-07-18 21:25 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-06-27 7:54 [Buildroot] [PATCH 0/6] add missing tpm2-openssl package and tpm2_ptool script Romain Naour via buildroot
2024-06-27 7:54 ` [Buildroot] [PATCH 1/6] package/ima-evm-utils: update url to github Romain Naour via buildroot
2024-07-17 21:36 ` Thomas Petazzoni via buildroot
2024-06-27 7:54 ` [Buildroot] [PATCH 2/6] package/tpm2-openssl: new package Romain Naour via buildroot
2024-07-17 21:44 ` Thomas Petazzoni via buildroot
2024-06-27 7:54 ` [Buildroot] [PATCH 3/6] package/python-asn1crypto: add host-variant Romain Naour via buildroot
2024-06-27 7:54 ` [Buildroot] [PATCH 4/6] package/python-pkgconfig: new host package Romain Naour via buildroot
2024-06-27 7:54 ` [Buildroot] [PATCH 5/6] package/python-tpm2-pytss: new package Romain Naour via buildroot
2024-06-27 7:54 ` [Buildroot] [PATCH 6/6] package/tpm2-pkcs11: install tool script (tpm2_ptool) Romain Naour via buildroot
2024-07-18 21:25 ` [Buildroot] [PATCH 0/6] add missing tpm2-openssl package and tpm2_ptool script Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox