package/tpm2-tss: remove unused dependency
PATCH 1/3 package/tpm2-tss: remove unused dependency
The last reference of uriparser was removed in:
https://github.com/tpm2-software/tpm2-tss/commit/17a670dd4c0e4effc2ac3cdf021c299fa92df70e
--- package/tpm2-tss/tpm2-tss.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
package/tpm2-tss/tpm2-tss.mk +1 -1
@@ -11,7 +11,7 @@ TPM2_TSS_LICENSE_FILES = LICENSE TPM2_TSS_CPE_ID_VENDOR = tpm2_software_stack_project TPM2_TSS_CPE_ID_PRODUCT = tpm2_software_stack TPM2_TSS_INSTALL_STAGING = YES -TPM2_TSS_DEPENDENCIES = liburiparser openssl host-pkgconf +TPM2_TSS_DEPENDENCIES = openssl host-pkgconf # 0001-configure-Only-use-CXX-when-fuzzing.patch TPM2_TSS_AUTORECONF = YES
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/3 package/tpm2-tools: bump version to 5.2
Depedency on libuuid was removed in:
https://github.com/tpm2-software/tpm2-tools/commit/210b2d639c216df7fa68e38427b13b96edbf78fd
Drop 0001-configure-make-build-gnu99.patch as it is in 5.2
--- .../0001-configure-make-build-gnu99.patch | 30 ------------------- package/tpm2-tools/Config.in | 2 -- package/tpm2-tools/tpm2-tools.hash | 2 +- package/tpm2-tools/tpm2-tools.mk | 4 +-- 4 files changed, 3 insertions(+), 35 deletions(-) delete mode 100644 package/tpm2-tools/0001-configure-make-build-gnu99.patch
package/tpm2-tools/0001-configure-make-build-gnu99.patch deleted +0 -30
@@ -1,30 +0,0 @@ -From 521c3cc506b18c5c84d86e1e90d1daee39849b0c Mon Sep 17 00:00:00 2001 -From: William Roberts <[email protected]> -Date: Mon, 8 Feb 2021 11:57:28 -0600 -Subject: [PATCH] configure: make build gnu99 - -Signed-off-by: William Roberts <[email protected]> - -[Retrieved from: -https://github.com/tpm2-software/tpm2-tools/commit/521c3cc506b18c5c84d86e1e90d1daee39849b0c -and updated to set gnu99 instead of c99 as done by -https://github.com/tpm2-software/tpm2-tools/commit/5d0267428e96989afce406d096994ec5091ee107] -Signed-off-by: Fabrice Fontaine <[email protected]> ---- - configure.ac | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/configure.ac b/configure.ac -index dc15b5595..25039a0d9 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -287,6 +287,9 @@ AC_DEFUN([add_c_flag], [ - # -D_GNU_SOURCE is required for execvpe() in options.c - add_c_flag([-D_GNU_SOURCE], [AC_MSG_ERROR([Cannot enable -D_GNU_SOURCE])]) - -+# Enable gnu99 mode, since we use some of these features. -+add_c_flag([-std=gnu99], [AC_MSG_ERROR([Cannot enable -std=gnu99])]) -+ - # Best attempt compiler options that are on newer versions of GCC that - # we can't widely enforce without killing other peoples builds. - # Works with gcc only. Needs to be disabled on BSD and clang
package/tpm2-tools/Config.in +0 -2
@@ -7,8 +7,6 @@ config BR2_PACKAGE_TPM2_TOOLS select BR2_PACKAGE_LIBCURL select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_TPM2_TSS - select BR2_PACKAGE_UTIL_LINUX - select BR2_PACKAGE_UTIL_LINUX_LIBUUID help TPM (Trusted Platform Module) 2.0 CLI tools based on system API of TPM2-TSS. These tools can be used to manage keys,
package/tpm2-tools/tpm2-tools.hash +1 -1
@@ -1,3 +1,3 @@ # Locally computed: -sha256 e2802d4093a24b2c65b1f913d0f4c68eadde9b8fd8a9b7a3b17a6e50765e8350 tpm2-tools-4.3.2.tar.gz +sha256 c0b402f6a7b3456e8eb2445211e2d41c46c7e769e05fe4d8909ff64119f7a630 tpm2-tools-5.2.tar.gz sha256 f6995d52c8b8e4d2c3bace7fc9c330a77a90d808166fbad4d7ead7e8ba2fc66c doc/LICENSE
package/tpm2-tools/tpm2-tools.mk +2 -2
@@ -4,13 +4,13 @@ # ################################################################################ -TPM2_TOOLS_VERSION = 4.3.2 +TPM2_TOOLS_VERSION = 5.2 TPM2_TOOLS_SITE = https://github.com/tpm2-software/tpm2-tools/releases/download/$(TPM2_TOOLS_VERSION) TPM2_TOOLS_LICENSE = BSD-3-Clause TPM2_TOOLS_LICENSE_FILES = doc/LICENSE TPM2_TOOLS_CPE_ID_VENDOR = tpm2-tools_project TPM2_TOOLS_SELINUX_MODULES = tpm2 -TPM2_TOOLS_DEPENDENCIES = libcurl openssl tpm2-tss host-pkgconf util-linux +TPM2_TOOLS_DEPENDENCIES = libcurl openssl tpm2-tss host-pkgconf # We're patching configure.ac TPM2_TOOLS_AUTORECONF = YES
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/3] package/tpm2-tools: bump version to 5.2
Hi Erik,
Quoted 81 lines · Erik Larsson
Depedency on libuuid was removed in:
https://github.com/tpm2-software/tpm2-tools/commit/210b2d639c216df7fa68e38427b13b96edbf78fdDrop 0001-configure-make-build-gnu99.patch as it is in 5.2
Signed-off-by Erik Larsson <[email protected]>--- .../0001-configure-make-build-gnu99.patch | 30 ------------------- package/tpm2-tools/Config.in | 2 -- package/tpm2-tools/tpm2-tools.hash | 2 +- package/tpm2-tools/tpm2-tools.mk | 4 +-- 4 files changed, 3 insertions(+), 35 deletions(-) delete mode 100644 package/tpm2-tools/0001-configure-make-build-gnu99.patchpackage/tpm2-tools/0001-configure-make-build-gnu99.patch deleted +0
-30@@ -1,30 +0,0 @@ -From 521c3cc506b18c5c84d86e1e90d1daee39849b0c Mon Sep 17 00:00:00 2001 -From: William Roberts <[email protected]> -Date: Mon, 8 Feb 2021 11:57:28 -0600 -Subject: [PATCH] configure: make build gnu99 - -Signed-off-by: William Roberts <[email protected]> - -[Retrieved from: -https://github.com/tpm2-software/tpm2-tools/commit/521c3cc506b18c5c84d86e1e90d1daee39849b0c -and updated to set gnu99 instead of c99 as done by -https://github.com/tpm2-software/tpm2-tools/commit/5d0267428e96989afce406d096994ec5091ee107] -Signed-off-by: Fabrice Fontaine <[email protected]> ---- - configure.ac | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/configure.ac b/configure.ac -index dc15b5595..25039a0d9 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -287,6 +287,9 @@ AC_DEFUN([add_c_flag], [ - # -D_GNU_SOURCE is required for execvpe() in options.c - add_c_flag([-D_GNU_SOURCE], [AC_MSG_ERROR([Cannot enable -D_GNU_SOURCE])]) - -+# Enable gnu99 mode, since we use some of these features. -+add_c_flag([-std=gnu99], [AC_MSG_ERROR([Cannot enable -std=gnu99])]) -+ - # Best attempt compiler options that are on newer versions of GCC that - # we can't widely enforce without killing other peoples builds. - # Works with gcc only. Needs to be disabled on BSD and clangpackage/tpm2-tools/Config.in +0
-2@@ -7,8 +7,6 @@ config BR2_PACKAGE_TPM2_TOOLS select BR2_PACKAGE_LIBCURL select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_TPM2_TSS - select BR2_PACKAGE_UTIL_LINUX - select BR2_PACKAGE_UTIL_LINUX_LIBUUID help TPM (Trusted Platform Module) 2.0 CLI tools based on system API of TPM2-TSS. These tools can be used to manage keys,package/tpm2-tools/tpm2-tools.hash +1
-1@@ -1,3 +1,3 @@ # Locally computed: -sha256 e2802d4093a24b2c65b1f913d0f4c68eadde9b8fd8a9b7a3b17a6e50765e8350 tpm2-tools-4.3.2.tar.gz +sha256 c0b402f6a7b3456e8eb2445211e2d41c46c7e769e05fe4d8909ff64119f7a630 tpm2-tools-5.2.tar.gz sha256 f6995d52c8b8e4d2c3bace7fc9c330a77a90d808166fbad4d7ead7e8ba2fc66c doc/LICENSEpackage/tpm2-tools/tpm2-tools.mk +0
-1@@ -4,13 +4,13 @@ # ################################################################################ -TPM2_TOOLS_VERSION = 4.3.2
package/tpm2-tools/tpm2-tools.mk line 15
Quoted 10 lines
package/tpm2-tools/tpm2-tools.mk +2
-1+TPM2_TOOLS_VERSION = 5.2 TPM2_TOOLS_SITE = https://github.com/tpm2-software/tpm2-tools/releases/download/$(TPM2_TOOLS_VERSION) TPM2_TOOLS_LICENSE = BSD-3-Clause TPM2_TOOLS_LICENSE_FILES = doc/LICENSE TPM2_TOOLS_CPE_ID_VENDOR = tpm2-tools_project TPM2_TOOLS_SELINUX_MODULES = tpm2 -TPM2_TOOLS_DEPENDENCIES = libcurl openssl tpm2-tss host-pkgconf util-linux +TPM2_TOOLS_DEPENDENCIES = libcurl openssl tpm2-tss host-pkgconf # We're patching configure.ac TPM2_TOOLS_AUTORECONF = YES
You can also remove this AUTORECONF since you remove the configure.ac patch.
baruch
Signature · 7 lines
~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- [email protected] - tel: +972.52.368.4656, http://www.tkos.co.il -
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildrootPATCH 2/3 package/tpm2-tools: bump version to 5.2
In reply to Erik LarssonDepedency on libuuid was removed in:
https://github.com/tpm2-software/tpm2-tools/commit/210b2d639c216df7fa68e38427b13b96edbf78fd
Drop 0001-configure-make-build-gnu99.patch as it is in 5.2
--- .../0001-configure-make-build-gnu99.patch | 30 ------------------- package/tpm2-tools/Config.in | 2 -- package/tpm2-tools/tpm2-tools.hash | 2 +- package/tpm2-tools/tpm2-tools.mk | 6 ++-- 4 files changed, 3 insertions(+), 37 deletions(-) delete mode 100644 package/tpm2-tools/0001-configure-make-build-gnu99.patch
package/tpm2-tools/0001-configure-make-build-gnu99.patch deleted +0 -30
@@ -1,30 +0,0 @@ -From 521c3cc506b18c5c84d86e1e90d1daee39849b0c Mon Sep 17 00:00:00 2001 -From: William Roberts <[email protected]> -Date: Mon, 8 Feb 2021 11:57:28 -0600 -Subject: [PATCH] configure: make build gnu99 - -Signed-off-by: William Roberts <[email protected]> - -[Retrieved from: -https://github.com/tpm2-software/tpm2-tools/commit/521c3cc506b18c5c84d86e1e90d1daee39849b0c -and updated to set gnu99 instead of c99 as done by -https://github.com/tpm2-software/tpm2-tools/commit/5d0267428e96989afce406d096994ec5091ee107] -Signed-off-by: Fabrice Fontaine <[email protected]> ---- - configure.ac | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/configure.ac b/configure.ac -index dc15b5595..25039a0d9 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -287,6 +287,9 @@ AC_DEFUN([add_c_flag], [ - # -D_GNU_SOURCE is required for execvpe() in options.c - add_c_flag([-D_GNU_SOURCE], [AC_MSG_ERROR([Cannot enable -D_GNU_SOURCE])]) - -+# Enable gnu99 mode, since we use some of these features. -+add_c_flag([-std=gnu99], [AC_MSG_ERROR([Cannot enable -std=gnu99])]) -+ - # Best attempt compiler options that are on newer versions of GCC that - # we can't widely enforce without killing other peoples builds. - # Works with gcc only. Needs to be disabled on BSD and clang
package/tpm2-tools/Config.in +0 -2
@@ -7,8 +7,6 @@ config BR2_PACKAGE_TPM2_TOOLS select BR2_PACKAGE_LIBCURL select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_TPM2_TSS - select BR2_PACKAGE_UTIL_LINUX - select BR2_PACKAGE_UTIL_LINUX_LIBUUID help TPM (Trusted Platform Module) 2.0 CLI tools based on system API of TPM2-TSS. These tools can be used to manage keys,
package/tpm2-tools/tpm2-tools.hash +1 -1
@@ -1,3 +1,3 @@ # Locally computed: -sha256 e2802d4093a24b2c65b1f913d0f4c68eadde9b8fd8a9b7a3b17a6e50765e8350 tpm2-tools-4.3.2.tar.gz +sha256 c0b402f6a7b3456e8eb2445211e2d41c46c7e769e05fe4d8909ff64119f7a630 tpm2-tools-5.2.tar.gz sha256 f6995d52c8b8e4d2c3bace7fc9c330a77a90d808166fbad4d7ead7e8ba2fc66c doc/LICENSE
package/tpm2-tools/tpm2-tools.mk +2 -4
@@ -4,15 +4,13 @@ # ################################################################################ -TPM2_TOOLS_VERSION = 4.3.2 +TPM2_TOOLS_VERSION = 5.2 TPM2_TOOLS_SITE = https://github.com/tpm2-software/tpm2-tools/releases/download/$(TPM2_TOOLS_VERSION) TPM2_TOOLS_LICENSE = BSD-3-Clause TPM2_TOOLS_LICENSE_FILES = doc/LICENSE TPM2_TOOLS_CPE_ID_VENDOR = tpm2-tools_project TPM2_TOOLS_SELINUX_MODULES = tpm2 -TPM2_TOOLS_DEPENDENCIES = libcurl openssl tpm2-tss host-pkgconf util-linux -# We're patching configure.ac -TPM2_TOOLS_AUTORECONF = YES +TPM2_TOOLS_DEPENDENCIES = libcurl openssl tpm2-tss host-pkgconf # -fstack-protector-all and FORTIFY_SOURCE=2 is used by # default. Disable that so the BR2_SSP_* / BR2_FORTIFY_SOURCE_* options
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Arnout Vandecappelle
AppliedRe: [Buildroot] [PATCH 2/3] package/tpm2-tools: bump version to 5.2
Quoted 6 lines · Erik Larsson
Depedency on libuuid was removed in:
https://github.com/tpm2-software/tpm2-tools/commit/210b2d639c216df7fa68e38427b13b96edbf78fdDrop 0001-configure-make-build-gnu99.patch as it is in 5.2
Signed-off-by Erik Larsson <[email protected]>
Applied to master, thanks.
Regards,
Arnout
Quoted 79 lines
--- .../0001-configure-make-build-gnu99.patch | 30 ------------------- package/tpm2-tools/Config.in | 2 -- package/tpm2-tools/tpm2-tools.hash | 2 +- package/tpm2-tools/tpm2-tools.mk | 6 ++-- 4 files changed, 3 insertions(+), 37 deletions(-)delete mode 100644
package/tpm2-tools/0001-configure-make-build-gnu99.patchpackage/tpm2-tools/0001-configure-make-build-gnu99.patch deleted +0
-30@@ -1,30 +0,0 @@ -From 521c3cc506b18c5c84d86e1e90d1daee39849b0c Mon Sep 17 00:00:00 2001 -From: William Roberts <[email protected]> -Date: Mon, 8 Feb 2021 11:57:28 -0600 -Subject: [PATCH] configure: make build gnu99 - -Signed-off-by: William Roberts <[email protected]> - -[Retrieved from: -https://github.com/tpm2-software/tpm2-tools/commit/521c3cc506b18c5c84d86e1e90d1daee39849b0c -and updated to set gnu99 instead of c99 as done by -https://github.com/tpm2-software/tpm2-tools/commit/5d0267428e96989afce406d096994ec5091ee107] -Signed-off-by: Fabrice Fontaine <[email protected]> ---- - configure.ac | 3 +++ - 1 file changed, 3 insertions(+) - -diff --git a/configure.ac b/configure.ac -index dc15b5595..25039a0d9 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -287,6 +287,9 @@ AC_DEFUN([add_c_flag], [ - # -D_GNU_SOURCE is required for execvpe() in options.c - add_c_flag([-D_GNU_SOURCE], [AC_MSG_ERROR([Cannot enable -D_GNU_SOURCE])]) - -+# Enable gnu99 mode, since we use some of these features. -+add_c_flag([-std=gnu99], [AC_MSG_ERROR([Cannot enable -std=gnu99])]) -+ - # Best attempt compiler options that are on newer versions of GCC that - # we can't widely enforce without killing other peoples builds. - # Works with gcc only. Needs to be disabled on BSD and clangpackage/tpm2-tools/Config.in +0
-2@@ -7,8 +7,6 @@ config BR2_PACKAGE_TPM2_TOOLS select BR2_PACKAGE_LIBCURL select BR2_PACKAGE_OPENSSL select BR2_PACKAGE_TPM2_TSS - select BR2_PACKAGE_UTIL_LINUX - select BR2_PACKAGE_UTIL_LINUX_LIBUUID help TPM (Trusted Platform Module) 2.0 CLI tools based on system API of TPM2-TSS. These tools can be used to manage keys,package/tpm2-tools/tpm2-tools.hash +1
-1@@ -1,3 +1,3 @@ # Locally computed: -sha256 e2802d4093a24b2c65b1f913d0f4c68eadde9b8fd8a9b7a3b17a6e50765e8350 tpm2-tools-4.3.2.tar.gz +sha256 c0b402f6a7b3456e8eb2445211e2d41c46c7e769e05fe4d8909ff64119f7a630 tpm2-tools-5.2.tar.gz sha256 f6995d52c8b8e4d2c3bace7fc9c330a77a90d808166fbad4d7ead7e8ba2fc66c doc/LICENSEpackage/tpm2-tools/tpm2-tools.mk +1
-1@@ -4,15 +4,13 @@ # ################################################################################ -TPM2_TOOLS_VERSION = 4.3.2 +TPM2_TOOLS_VERSION = 5.2 TPM2_TOOLS_SITE = https://github.com/tpm2-software/tpm2-tools/releases/download/$(TPM2_TOOLS_VERSION) TPM2_TOOLS_LICENSE = BSD-3-Clause
package/tpm2-tools/tpm2-tools.mk line 16
Quoted 10 lines
package/tpm2-tools/tpm2-tools.mk +1
-3TPM2_TOOLS_LICENSE_FILES = doc/LICENSE TPM2_TOOLS_CPE_ID_VENDOR = tpm2-tools_project TPM2_TOOLS_SELINUX_MODULES = tpm2 -TPM2_TOOLS_DEPENDENCIES = libcurl openssl tpm2-tss host-pkgconf util-linux -# We're patching configure.ac -TPM2_TOOLS_AUTORECONF = YES +TPM2_TOOLS_DEPENDENCIES = libcurl openssl tpm2-tss host-pkgconf # -fstack-protector-all and FORTIFY_SOURCE=2 is used by # default. Disable that so the BR2_SSP_* / BR2_FORTIFY_SOURCE_* options
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 3/3 package/tpm2-tools: add option for enabling FAPI tools
In reply to Erik Larsson--- package/tpm2-tools/Config.in | 11 +++++++++++ package/tpm2-tools/tpm2-tools.mk | 6 ++++++ 2 files changed, 17 insertions(+)
package/tpm2-tools/Config.in +11 -0
@@ -21,6 +21,17 @@ config BR2_PACKAGE_TPM2_TOOLS https://github.com/tpm2-software/tpm2-tools +if BR2_PACKAGE_TPM2_TOOLS + +config BR2_PACKAGE_TPM2_TOOLS_FAPI + bool "tpm2-tools fapi support" + select BR2_PACKAGE_TPM2_TSS_FAPI + help + This option enables Feature API (FAPI) support in tpm2-tools. + The FAPI tools are prefixed with tss2_. + +endif + comment "tpm2-tools needs a glibc or musl toolchain w/ dynamic library, wchar" depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR || \ !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)
package/tpm2-tools/tpm2-tools.mk +6 -0
@@ -22,4 +22,10 @@ TPM2_TOOLS_CONF_OPTS = --disable-hardening # do not build man pages TPM2_TOOLS_CONF_ENV += ac_cv_prog_PANDOC='' +ifeq ($(BR2_PACKAGE_TPM2_TOOLS_FAPI),y) +TPM2_TOOLS_CONF_OPTS += --enable-fapi +else +TPM2_TOOLS_CONF_OPTS += --disable-fapi +endif + $(eval $(autotools-package))
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 3/3] package/tpm2-tools: add option for enabling FAPI tools
Quoted 33 lines · Erik Larsson
Signed-off-by Erik Larsson <[email protected]>--- package/tpm2-tools/Config.in | 11 +++++++++++ package/tpm2-tools/tpm2-tools.mk | 6 ++++++ 2 files changed, 17 insertions(+)package/tpm2-tools/Config.in +11
-0@@ -21,6 +21,17 @@ config BR2_PACKAGE_TPM2_TOOLS https://github.com/tpm2-software/tpm2-tools +if BR2_PACKAGE_TPM2_TOOLS + +config BR2_PACKAGE_TPM2_TOOLS_FAPI + bool "tpm2-tools fapi support" + select BR2_PACKAGE_TPM2_TSS_FAPI + help + This option enables Feature API (FAPI) support in tpm2-tools. + The FAPI tools are prefixed with tss2_. + +endif + comment "tpm2-tools needs a glibc or musl toolchain w/ dynamic library, wchar" depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR || \ !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)package/tpm2-tools/tpm2-tools.mk +0
-0
package/tpm2-tools/tpm2-tools.mk TPM2_TOOLS_CONF_OPTS = --disable-hardening · line 25
Quoted 4 lines
package/tpm2-tools/tpm2-tools.mk +1
-0@@ -22,4 +22,10 @@ TPM2_TOOLS_CONF_OPTS = --disable-hardening # do not build man pages TPM2_TOOLS_CONF_ENV += ac_cv_prog_PANDOC='' +ifeq ($(BR2_PACKAGE_TPM2_TOOLS_FAPI),y)
Does this optoin make a big difference in size? If not, we'd normally make it
an automatic option, i.e.
ifeq ($(BR2_PACKAGE_TPM2_TSS_FAPI),y)
(and remove the Config.in option).
Regards,
Arnout
package/tpm2-tools/tpm2-tools.mk TPM2_TOOLS_CONF_OPTS = --disable-hardening · line 31
Quoted 7 lines
package/tpm2-tools/tpm2-tools.mk +5
-0+TPM2_TOOLS_CONF_OPTS += --enable-fapi +else +TPM2_TOOLS_CONF_OPTS += --disable-fapi +endif + $(eval $(autotools-package))
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 3/3] package/tpm2-tools: add option for enabling FAPI tools
Quoted 38 lines · Arnout Vandecappelle
Quoted 36 lines · Erik Larsson
Signed-off-by Erik Larsson <[email protected]>--- package/tpm2-tools/Config.in | 11 +++++++++++ package/tpm2-tools/tpm2-tools.mk | 6 ++++++ 2 files changed, 17 insertions(+)package/tpm2-tools/Config.in +11
-0@@ -21,6 +21,17 @@ config BR2_PACKAGE_TPM2_TOOLS https://github.com/tpm2-software/tpm2-tools +if BR2_PACKAGE_TPM2_TOOLS + +config BR2_PACKAGE_TPM2_TOOLS_FAPI + bool "tpm2-tools fapi support" + select BR2_PACKAGE_TPM2_TSS_FAPI + help + This option enables Feature API (FAPI) support in tpm2-tools. + The FAPI tools are prefixed with tss2_. + +endif + comment "tpm2-tools needs a glibc or musl toolchain w/ dynamic library, wchar" depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR || \ !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)package/tpm2-tools/tpm2-tools.mk +0
-0@@ -22,4 +22,10 @@ TPM2_TOOLS_CONF_OPTS = --disable-hardening # do not build man pages TPM2_TOOLS_CONF_ENV += ac_cv_prog_PANDOC=''
Quoted 8 lines
package/tpm2-tools/tpm2-tools.mk TPM2_TOOLS_CONF_OPTS = --disable-hardening · line 25
Quoted 1 line
package/tpm2-tools/tpm2-tools.mk +1
-0+ifeq ($(BR2_PACKAGE_TPM2_TOOLS_FAPI),y)Does this optoin make a big difference in size? If not, we'd normally make it
an automatic option, i.e.ifeq ($(BR2_PACKAGE_TPM2_TSS_FAPI),y)
(and remove the Config.in option).
The size difference is minimal (about 100K).
The FAPI tools are enabled automatically if tss2-fapi is available, so I think this patch can be skipped in that case.
/Erik
Quoted 4 lines
Regards,
Arnout
Quoted 11 lines
package/tpm2-tools/tpm2-tools.mk TPM2_TOOLS_CONF_OPTS = --disable-hardening · line 31
Quoted 7 lines
package/tpm2-tools/tpm2-tools.mk +5
-0+TPM2_TOOLS_CONF_OPTS += --enable-fapi +else +TPM2_TOOLS_CONF_OPTS += --disable-fapi +endif + $(eval $(autotools-package))_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 3/3] package/tpm2-tools: add option for enabling FAPI tools
In reply to Erik LarssonQuoted 33 lines · Erik Larsson
Signed-off-by Erik Larsson <[email protected]>--- package/tpm2-tools/Config.in | 11 +++++++++++ package/tpm2-tools/tpm2-tools.mk | 6 ++++++ 2 files changed, 17 insertions(+)package/tpm2-tools/Config.in +11
-0@@ -21,6 +21,17 @@ config BR2_PACKAGE_TPM2_TOOLS https://github.com/tpm2-software/tpm2-tools +if BR2_PACKAGE_TPM2_TOOLS + +config BR2_PACKAGE_TPM2_TOOLS_FAPI + bool "tpm2-tools fapi support" + select BR2_PACKAGE_TPM2_TSS_FAPI + help + This option enables Feature API (FAPI) support in tpm2-tools. + The FAPI tools are prefixed with tss2_. + +endif + comment "tpm2-tools needs a glibc or musl toolchain w/ dynamic library, wchar" depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR || \ !(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)package/tpm2-tools/tpm2-tools.mk +0
-0
package/tpm2-tools/tpm2-tools.mk TPM2_TOOLS_CONF_OPTS = --disable-hardening · line 25
Quoted 4 lines
package/tpm2-tools/tpm2-tools.mk +1
-0@@ -22,4 +22,10 @@ TPM2_TOOLS_CONF_OPTS = --disable-hardening # do not build man pages TPM2_TOOLS_CONF_ENV += ac_cv_prog_PANDOC='' +ifeq ($(BR2_PACKAGE_TPM2_TOOLS_FAPI),y)
Does this optoin make a big difference in size? If not, we'd normally make it
an automatic option, i.e.
ifeq ($(BR2_PACKAGE_TPM2_TSS_FAPI),y)
(and remove the Config.in option).
Regards,
Arnout
package/tpm2-tools/tpm2-tools.mk TPM2_TOOLS_CONF_OPTS = --disable-hardening · line 31
Quoted 7 lines
package/tpm2-tools/tpm2-tools.mk +5
-0+TPM2_TOOLS_CONF_OPTS += --enable-fapi +else +TPM2_TOOLS_CONF_OPTS += --disable-fapi +endif + $(eval $(autotools-package))
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 3/3] package/tpm2-tools: add option for enabling FAPI tools
Quoted 6 lines · On Tue, 4 Jan 2022 18:54:41 +0100 Arnout Vandecappelle <[email protected]> wrote:
Quoted 1 line
+ifeq ($(BR2_PACKAGE_TPM2_TOOLS_FAPI),y)
Does this optoin make a big difference in size? If not, we'd normally make it
an automatic option, i.e.ifeq ($(BR2_PACKAGE_TPM2_TSS_FAPI),y)
Erik had replied that the difference was 100KB in size, so I thought it was worth having the extra Config.in option, and applied what Erik proposed, with some small changes.
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 3/3] package/tpm2-tools: add option for enabling FAPI tools
In reply to Erik LarssonHello Erik,
Quoted 11 lines · On Sat, 1 Jan 2022 23:39:00 +0100 Erik Larsson <[email protected]>…
Signed-off-by Erik Larsson <[email protected]>--- package/tpm2-tools/Config.in | 11 +++++++++++ package/tpm2-tools/tpm2-tools.mk | 6 ++++++ 2 files changed, 17 insertions(+)package/tpm2-tools/Config.in +0
-0
package/tpm2-tools/Config.in config BR2_PACKAGE_TPM2_TOOLS · line 28
Quoted 8 lines
package/tpm2-tools/Config.in +5
-0@@ -21,6 +21,17 @@ config BR2_PACKAGE_TPM2_TOOLS https://github.com/tpm2-software/tpm2-tools +if BR2_PACKAGE_TPM2_TOOLS + +config BR2_PACKAGE_TPM2_TOOLS_FAPI + bool "tpm2-tools fapi support" + select BR2_PACKAGE_TPM2_TSS_FAPI
This was missing a:
depends on BR2_TOOLCHAIN_HAS_SYNC_4
which we inherit because we select BR2_PACKAGE_TPM2_TSS_FAPI.
Also I changed the prompt to "fapi tools", as repeating "tpm2-tools" is not useful, and the option is more about "fapi tools" than "fapi support" I believe.
With these small changes, applied to master. Thanks a lot!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Arnout Vandecappelle
AppliedQuoted 4 lines · Erik Larsson
The last reference of uriparser was removed in:
https://github.com/tpm2-software/tpm2-tss/commit/17a670dd4c0e4effc2ac3cdf021c299fa92df70eSigned-off-by Erik Larsson <[email protected]>
Applied to master, thanks.
Regards,
Arnout
Quoted 10 lines
--- package/tpm2-tss/tpm2-tss.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)package/tpm2-tss/tpm2-tss.mk +0
-0
package/tpm2-tss/tpm2-tss.mk TPM2_TSS_LICENSE_FILES = LICENSE · line 17
Quoted 8 lines
package/tpm2-tss/tpm2-tss.mk +1
-1@@ -11,7 +11,7 @@ TPM2_TSS_LICENSE_FILES = LICENSE TPM2_TSS_CPE_ID_VENDOR = tpm2_software_stack_project TPM2_TSS_CPE_ID_PRODUCT = tpm2_software_stack TPM2_TSS_INSTALL_STAGING = YES -TPM2_TSS_DEPENDENCIES = liburiparser openssl host-pkgconf +TPM2_TSS_DEPENDENCIES = openssl host-pkgconf # 0001-configure-Only-use-CXX-when-fuzzing.patch TPM2_TSS_AUTORECONF = YES
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Erik" == Erik Larsson <[email protected]> writes:
The last reference of uriparser was removed in:
https://github.com/tpm2-software/tpm2-tss/commit/17a670dd4c0e4effc2ac3cdf021c299fa92df70eSigned-off-by Erik Larsson <[email protected]>
Committed to 2021.11.x, thanks.
Signature · 5 lines
Bye, Peter Korsgaard _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot