* [Buildroot] [PATCH 1/6] tpm2-tss: declare dependency on a toolchain with C++
2018-03-22 20:27 [Buildroot] [PATCH 0/6] tpm2-{tss, abrmd, tools} fix compilation errors Carlos Santos
@ 2018-03-22 20:27 ` Carlos Santos
2018-03-22 22:51 ` Peter Korsgaard
2018-03-22 20:27 ` [Buildroot] [PATCH 2/6] tpm2-tss: allow building without stack smashing protection (SSP) Carlos Santos
` (4 subsequent siblings)
5 siblings, 1 reply; 13+ messages in thread
From: Carlos Santos @ 2018-03-22 20:27 UTC (permalink / raw)
To: buildroot
Version 1.4.0 still contains some C++ code. This has already changed on
upstream, so future versions will drop the dependency on a C++ compiler.
Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
---
package/tpm2-tss/Config.in | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/tpm2-tss/Config.in b/package/tpm2-tss/Config.in
index ebf0fd262d..f1a9920700 100644
--- a/package/tpm2-tss/Config.in
+++ b/package/tpm2-tss/Config.in
@@ -29,3 +29,6 @@ config BR2_PACKAGE_TPM2_TSS
Microsoft software TPM2 simulator.
https://github.com/tpm2-software/tpm2-tss
+
+comment "tpm2-tss needs a toolchain w/ C++"
+ depends on !BR2_INSTALL_LIBSTDCPP
--
2.14.3
^ permalink raw reply related [flat|nested] 13+ messages in thread* [Buildroot] [PATCH 1/6] tpm2-tss: declare dependency on a toolchain with C++
2018-03-22 20:27 ` [Buildroot] [PATCH 1/6] tpm2-tss: declare dependency on a toolchain with C++ Carlos Santos
@ 2018-03-22 22:51 ` Peter Korsgaard
0 siblings, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2018-03-22 22:51 UTC (permalink / raw)
To: buildroot
>>>>> "Carlos" == Carlos Santos <casantos@datacom.ind.br> writes:
> Version 1.4.0 still contains some C++ code. This has already changed on
> upstream, so future versions will drop the dependency on a C++ compiler.
> Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
> ---
> package/tpm2-tss/Config.in | 3 +++
> 1 file changed, 3 insertions(+)
> diff --git a/package/tpm2-tss/Config.in b/package/tpm2-tss/Config.in
> index ebf0fd262d..f1a9920700 100644
> --- a/package/tpm2-tss/Config.in
> +++ b/package/tpm2-tss/Config.in
> @@ -29,3 +29,6 @@ config BR2_PACKAGE_TPM2_TSS
> Microsoft software TPM2 simulator.
> https://github.com/tpm2-software/tpm2-tss
> +
> +comment "tpm2-tss needs a toolchain w/ C++"
> + depends on !BR2_INSTALL_LIBSTDCPP
This should have been indented with a <tab> and the BR2_PACKAGE_TPM2_TSS
option should also have the C++ dependency.
Consider running utils/check-package on your patches.
Committed with that fixed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH 2/6] tpm2-tss: allow building without stack smashing protection (SSP)
2018-03-22 20:27 [Buildroot] [PATCH 0/6] tpm2-{tss, abrmd, tools} fix compilation errors Carlos Santos
2018-03-22 20:27 ` [Buildroot] [PATCH 1/6] tpm2-tss: declare dependency on a toolchain with C++ Carlos Santos
@ 2018-03-22 20:27 ` Carlos Santos
2018-03-22 22:55 ` Peter Korsgaard
2018-03-22 20:27 ` [Buildroot] [PATCH 3/6] tpm2-abrmd: declare dependency on a toolchain with C++ Carlos Santos
` (3 subsequent siblings)
5 siblings, 1 reply; 13+ messages in thread
From: Carlos Santos @ 2018-03-22 20:27 UTC (permalink / raw)
To: buildroot
Disable SSP if the toolchain does not support it. This must be done
explicitly because configure.ac passes -fstack-protector-all to the
compiler but doesn't contain a link test, so it doesn't detect when
libssp is missing.
Fixes:
http://autobuild.buildroot.net/results/f98749311c5a4338f5fbd6d29c9ca29ac6c24abd
http://autobuild.buildroot.net/results/4112a001038eb5e04c67c7b5c79280813d196911
http://autobuild.buildroot.net/results/451fcf7e36ea8774967b84279abb89ffb0fd6923
http://autobuild.buildroot.net/results/8e1181836249105be28f04a59cf6d31afcea91d7
http://autobuild.buildroot.net/results/49151df111ad3d03c70551e4516c3d3b36e12d70
http://autobuild.buildroot.net/results/42d625c579a8a16fb0c0a3df441ea186c3d52b9a
http://autobuild.buildroot.net/results/b0af881e080c4fcc6094489c037ee853fdf42869
http://autobuild.buildroot.net/results/0909d94af3f9589dd6b8897e2501c05b421262c4
http://autobuild.buildroot.net/results/2fd0ee29c0b28cb1fee1b43433ab8373f49ca397
http://autobuild.buildroot.net/results/3fa19441fd2594b064c8ff759df8849705100a65
http://autobuild.buildroot.net/results/8675d2aa8f1e8e568a42bc0dbfae8f3721e86796
http://autobuild.buildroot.net/results/786de50b53fa9a325c92a5d48f3928082eff0045
http://autobuild.buildroot.net/results/a575b340f7cc562c1b87eb31d4304131b52698a7
http://autobuild.buildroot.net/results/0b1d50d9e266d889d7e848275ebfbce45ccb419d
http://autobuild.buildroot.net/results/d632b0e1efbb5e133dfb6595554badea9e31c492
http://autobuild.buildroot.net/results/0c95459bfa82048d7e99661cf5f2d6d393179090
http://autobuild.buildroot.net/results/bd494dc69fb0da46065f10a3cd8a4cab0bcbcc9b
http://autobuild.buildroot.net/results/b397e44cd17b3d576cc55f02d5463e9c14743907
http://autobuild.buildroot.net/results/40ed7a3b519c18102df515b5c4b993ed9a488236
http://autobuild.buildroot.net/results/e5fc04c2ded86e03eb174a89845a50f52e407d48
http://autobuild.buildroot.net/results/95a7c14da225d9e42545ee7a155f461303c62aa6
http://autobuild.buildroot.net/results/25ebda7a13afa4790ad28018f42c46a795f3c284
http://autobuild.buildroot.net/results/1bc081b78c625f13327c733fc734e36fe28ecc2a
http://autobuild.buildroot.net/results/273108e2798155464109b9fb4d16884e7d0f9ab3
http://autobuild.buildroot.net/results/f677d340cd42ea7242d4102fbb5fa6091a05e8ef
http://autobuild.buildroot.net/results/ae15b625260801b494bbfa541ef86edcdbaedfe0
Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
---
package/tpm2-tss/tpm2-tss.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/tpm2-tss/tpm2-tss.mk b/package/tpm2-tss/tpm2-tss.mk
index f5169a2770..6a46868b22 100644
--- a/package/tpm2-tss/tpm2-tss.mk
+++ b/package/tpm2-tss/tpm2-tss.mk
@@ -11,4 +11,8 @@ TPM2_TSS_LICENSE_FILES = LICENSE
TPM2_TSS_INSTALL_STAGING = YES
TPM2_TSS_DEPENDENCIES = liburiparser host-pkgconf
+# configure.ac doesn't contain a link test, so it doesn't detect when
+# libssp is missing.
+TPM2_TSS_CONF_ENV = ax_cv_check_cflags___________Wall__Werror_______fstack_protector_all=$(if $(BR2_TOOLCHAIN_HAS_SSP),yes,no)
+
$(eval $(autotools-package))
--
2.14.3
^ permalink raw reply related [flat|nested] 13+ messages in thread* [Buildroot] [PATCH 2/6] tpm2-tss: allow building without stack smashing protection (SSP)
2018-03-22 20:27 ` [Buildroot] [PATCH 2/6] tpm2-tss: allow building without stack smashing protection (SSP) Carlos Santos
@ 2018-03-22 22:55 ` Peter Korsgaard
0 siblings, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2018-03-22 22:55 UTC (permalink / raw)
To: buildroot
>>>>> "Carlos" == Carlos Santos <casantos@datacom.ind.br> writes:
> Disable SSP if the toolchain does not support it. This must be done
> explicitly because configure.ac passes -fstack-protector-all to the
> compiler but doesn't contain a link test, so it doesn't detect when
> libssp is missing.
> Fixes:
> http://autobuild.buildroot.net/results/f98749311c5a4338f5fbd6d29c9ca29ac6c24abd
> http://autobuild.buildroot.net/results/4112a001038eb5e04c67c7b5c79280813d196911
> http://autobuild.buildroot.net/results/451fcf7e36ea8774967b84279abb89ffb0fd6923
> http://autobuild.buildroot.net/results/8e1181836249105be28f04a59cf6d31afcea91d7
> http://autobuild.buildroot.net/results/49151df111ad3d03c70551e4516c3d3b36e12d70
> http://autobuild.buildroot.net/results/42d625c579a8a16fb0c0a3df441ea186c3d52b9a
> http://autobuild.buildroot.net/results/b0af881e080c4fcc6094489c037ee853fdf42869
> http://autobuild.buildroot.net/results/0909d94af3f9589dd6b8897e2501c05b421262c4
> http://autobuild.buildroot.net/results/2fd0ee29c0b28cb1fee1b43433ab8373f49ca397
> http://autobuild.buildroot.net/results/3fa19441fd2594b064c8ff759df8849705100a65
> http://autobuild.buildroot.net/results/8675d2aa8f1e8e568a42bc0dbfae8f3721e86796
> http://autobuild.buildroot.net/results/786de50b53fa9a325c92a5d48f3928082eff0045
> http://autobuild.buildroot.net/results/a575b340f7cc562c1b87eb31d4304131b52698a7
> http://autobuild.buildroot.net/results/0b1d50d9e266d889d7e848275ebfbce45ccb419d
> http://autobuild.buildroot.net/results/d632b0e1efbb5e133dfb6595554badea9e31c492
> http://autobuild.buildroot.net/results/0c95459bfa82048d7e99661cf5f2d6d393179090
> http://autobuild.buildroot.net/results/bd494dc69fb0da46065f10a3cd8a4cab0bcbcc9b
> http://autobuild.buildroot.net/results/b397e44cd17b3d576cc55f02d5463e9c14743907
> http://autobuild.buildroot.net/results/40ed7a3b519c18102df515b5c4b993ed9a488236
> http://autobuild.buildroot.net/results/e5fc04c2ded86e03eb174a89845a50f52e407d48
> http://autobuild.buildroot.net/results/95a7c14da225d9e42545ee7a155f461303c62aa6
> http://autobuild.buildroot.net/results/25ebda7a13afa4790ad28018f42c46a795f3c284
> http://autobuild.buildroot.net/results/1bc081b78c625f13327c733fc734e36fe28ecc2a
> http://autobuild.buildroot.net/results/273108e2798155464109b9fb4d16884e7d0f9ab3
> http://autobuild.buildroot.net/results/f677d340cd42ea7242d4102fbb5fa6091a05e8ef
> http://autobuild.buildroot.net/results/ae15b625260801b494bbfa541ef86edcdbaedfe0
> Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
> ---
> package/tpm2-tss/tpm2-tss.mk | 4 ++++
> 1 file changed, 4 insertions(+)
> diff --git a/package/tpm2-tss/tpm2-tss.mk b/package/tpm2-tss/tpm2-tss.mk
> index f5169a2770..6a46868b22 100644
> --- a/package/tpm2-tss/tpm2-tss.mk
> +++ b/package/tpm2-tss/tpm2-tss.mk
> @@ -11,4 +11,8 @@ TPM2_TSS_LICENSE_FILES = LICENSE
> TPM2_TSS_INSTALL_STAGING = YES
> TPM2_TSS_DEPENDENCIES = liburiparser host-pkgconf
> +# configure.ac doesn't contain a link test, so it doesn't detect when
> +# libssp is missing.
> +TPM2_TSS_CONF_ENV = ax_cv_check_cflags___________Wall__Werror_______fstack_protector_all=$(if $(BR2_TOOLCHAIN_HAS_SSP),yes,no)
Funky variable name ;)
Does this mean that tpm2-tss is built with -Wall -Werror? If so, that
unfortunately tends to cause compilations as even minor issues are
treated as errors.
Committed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH 3/6] tpm2-abrmd: declare dependency on a toolchain with C++
2018-03-22 20:27 [Buildroot] [PATCH 0/6] tpm2-{tss, abrmd, tools} fix compilation errors Carlos Santos
2018-03-22 20:27 ` [Buildroot] [PATCH 1/6] tpm2-tss: declare dependency on a toolchain with C++ Carlos Santos
2018-03-22 20:27 ` [Buildroot] [PATCH 2/6] tpm2-tss: allow building without stack smashing protection (SSP) Carlos Santos
@ 2018-03-22 20:27 ` Carlos Santos
2018-03-22 22:57 ` Peter Korsgaard
2018-03-22 20:27 ` [Buildroot] [PATCH 4/6] tpm2-abrmd: allow building without stack smashing protection (SSP) Carlos Santos
` (2 subsequent siblings)
5 siblings, 1 reply; 13+ messages in thread
From: Carlos Santos @ 2018-03-22 20:27 UTC (permalink / raw)
To: buildroot
It depends on tpm2-tss, whose current version contains C++ code.
Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
---
package/tpm2-abrmd/Config.in | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/package/tpm2-abrmd/Config.in b/package/tpm2-abrmd/Config.in
index 31c5ae7d6b..5c236d1d5c 100644
--- a/package/tpm2-abrmd/Config.in
+++ b/package/tpm2-abrmd/Config.in
@@ -20,6 +20,7 @@ config BR2_PACKAGE_TPM2_ABRMD
https://github.com/tpm2-software/tpm2-abrmd
-comment "tpm2-abrmd needs a toolchain w/ wchar, threads"
+comment "tpm2-abrmd needs a toolchain w/ C++, wchar, threads"
depends on BR2_USE_MMU
- depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
+ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR \
+ || !BR2_TOOLCHAIN_HAS_THREADS
--
2.14.3
^ permalink raw reply related [flat|nested] 13+ messages in thread* [Buildroot] [PATCH 3/6] tpm2-abrmd: declare dependency on a toolchain with C++
2018-03-22 20:27 ` [Buildroot] [PATCH 3/6] tpm2-abrmd: declare dependency on a toolchain with C++ Carlos Santos
@ 2018-03-22 22:57 ` Peter Korsgaard
0 siblings, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2018-03-22 22:57 UTC (permalink / raw)
To: buildroot
>>>>> "Carlos" == Carlos Santos <casantos@datacom.ind.br> writes:
> It depends on tpm2-tss, whose current version contains C++ code.
> Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
> ---
> package/tpm2-abrmd/Config.in | 5 +++--
> 1 file changed, 3 insertions(+), 2 deletions(-)
> diff --git a/package/tpm2-abrmd/Config.in b/package/tpm2-abrmd/Config.in
> index 31c5ae7d6b..5c236d1d5c 100644
> --- a/package/tpm2-abrmd/Config.in
> +++ b/package/tpm2-abrmd/Config.in
> @@ -20,6 +20,7 @@ config BR2_PACKAGE_TPM2_ABRMD
> https://github.com/tpm2-software/tpm2-abrmd
> -comment "tpm2-abrmd needs a toolchain w/ wchar, threads"
> +comment "tpm2-abrmd needs a toolchain w/ C++, wchar, threads"
You again forgot to add the dependency to the config symbol itself.
Committed with that fixed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 13+ messages in thread
* [Buildroot] [PATCH 4/6] tpm2-abrmd: allow building without stack smashing protection (SSP)
2018-03-22 20:27 [Buildroot] [PATCH 0/6] tpm2-{tss, abrmd, tools} fix compilation errors Carlos Santos
` (2 preceding siblings ...)
2018-03-22 20:27 ` [Buildroot] [PATCH 3/6] tpm2-abrmd: declare dependency on a toolchain with C++ Carlos Santos
@ 2018-03-22 20:27 ` Carlos Santos
2018-03-22 22:58 ` Peter Korsgaard
2018-03-22 20:27 ` [Buildroot] [PATCH 5/6] tpm2-tools: propagate dependencies of selected packages Carlos Santos
2018-03-22 20:27 ` [Buildroot] [PATCH 6/6] tpm2-tools: allow building without stack smashing protection (SSP) Carlos Santos
5 siblings, 1 reply; 13+ messages in thread
From: Carlos Santos @ 2018-03-22 20:27 UTC (permalink / raw)
To: buildroot
Disable SSP if the toolchain does not support it. This must be done
explicitly because configure.ac passes -fstack-protector-all to the
compiler but doesn't contain a link test, so it doesn't detect when
libssp is missing.
Fixes:
http://autobuild.buildroot.net/results/83ad1f33f523321f841e70d2d8cf5ce861dee217
http://autobuild.buildroot.net/results/cef047751534fef23d1022e9a276424bc84bf461
http://autobuild.buildroot.net/results/6048355337804f7841dffa1655f44b9f6db56314
http://autobuild.buildroot.net/results/d934a2ea90e7bf1c7b93dbb367998abab536daf4
http://autobuild.buildroot.net/results/c0daaf37b8d1515d62d2441ba6aa57125437e191
http://autobuild.buildroot.net/results/9482ea5554938865e0061dcbdcf3c2c918b96954
http://autobuild.buildroot.net/results/282a8b6769f19f0a40089207bc54e7302663751f
Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
---
package/tpm2-abrmd/tpm2-abrmd.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/tpm2-abrmd/tpm2-abrmd.mk b/package/tpm2-abrmd/tpm2-abrmd.mk
index 0d6a167210..69d09a59e4 100644
--- a/package/tpm2-abrmd/tpm2-abrmd.mk
+++ b/package/tpm2-abrmd/tpm2-abrmd.mk
@@ -11,6 +11,10 @@ TPM2_ABRMD_LICENSE_FILES = LICENSE
TPM2_ABRMD_INSTALL_STAGING = YES
TPM2_ABRMD_DEPENDENCIES = dbus libglib2 tpm2-tss host-pkgconf
+# configure.ac doesn't contain a link test, so it doesn't detect when
+# libssp is missing.
+TPM2_ABRMD_CONF_ENV = ax_cv_check_cflags___fstack_protector_all=$(if $(BR2_TOOLCHAIN_HAS_SSP),yes,no)
+
TPM2_ABRMD_CONF_OPTS += \
--with-systemdsystemunitdir=$(if $(BR2_INIT_SYSTEMD),/usr/lib/systemd/system,no) \
--with-udevrulesdir=$(if $(BR2_PACKAGE_HAS_UDEV),/usr/lib/udev/rules.d,no)
--
2.14.3
^ permalink raw reply related [flat|nested] 13+ messages in thread* [Buildroot] [PATCH 5/6] tpm2-tools: propagate dependencies of selected packages
2018-03-22 20:27 [Buildroot] [PATCH 0/6] tpm2-{tss, abrmd, tools} fix compilation errors Carlos Santos
` (3 preceding siblings ...)
2018-03-22 20:27 ` [Buildroot] [PATCH 4/6] tpm2-abrmd: allow building without stack smashing protection (SSP) Carlos Santos
@ 2018-03-22 20:27 ` Carlos Santos
2018-03-22 23:01 ` Peter Korsgaard
2018-03-22 20:27 ` [Buildroot] [PATCH 6/6] tpm2-tools: allow building without stack smashing protection (SSP) Carlos Santos
5 siblings, 1 reply; 13+ messages in thread
From: Carlos Santos @ 2018-03-22 20:27 UTC (permalink / raw)
To: buildroot
- C++ (tpm2-tss)
- MMU (dbus, libglib)
- threads (libglib)
- wchar (libglib -> gettext)
Fixes (libglib):
http://autobuild.buildroot.net/results/786859fccc477de1519d85d8a180626bb8ebe062
http://autobuild.buildroot.net/results/df6518f331c16b477c6e934914d0e56dc102c228
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
---
package/tpm2-tools/Config.in | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/package/tpm2-tools/Config.in b/package/tpm2-tools/Config.in
index 6429b24531..5992cc1174 100644
--- a/package/tpm2-tools/Config.in
+++ b/package/tpm2-tools/Config.in
@@ -1,5 +1,8 @@
config BR2_PACKAGE_TPM2_TOOLS
bool "tpm2-tools"
+ depends on BR2_USE_MMU # dbus, libglib
+ depends on BR2_USE_WCHAR # libglib -> gettext
+ depends on BR2_TOOLCHAIN_HAS_THREADS # libglib
select BR2_PACKAGE_DBUS
select BR2_PACKAGE_LIBCURL
select BR2_PACKAGE_LIBGLIB2
@@ -14,3 +17,8 @@ config BR2_PACKAGE_TPM2_TOOLS
implementation.
https://github.com/tpm2-software/tpm2-tools
+
+comment "tpm2-tools needs a toolchain w/ C++, wchar, threads"
+ depends on BR2_USE_MMU
+ depends on !BR2_INSTALL_LIBSTDCPP || !BR2_USE_WCHAR \
+ || !BR2_TOOLCHAIN_HAS_THREADS
--
2.14.3
^ permalink raw reply related [flat|nested] 13+ messages in thread* [Buildroot] [PATCH 6/6] tpm2-tools: allow building without stack smashing protection (SSP)
2018-03-22 20:27 [Buildroot] [PATCH 0/6] tpm2-{tss, abrmd, tools} fix compilation errors Carlos Santos
` (4 preceding siblings ...)
2018-03-22 20:27 ` [Buildroot] [PATCH 5/6] tpm2-tools: propagate dependencies of selected packages Carlos Santos
@ 2018-03-22 20:27 ` Carlos Santos
2018-03-22 23:02 ` Peter Korsgaard
5 siblings, 1 reply; 13+ messages in thread
From: Carlos Santos @ 2018-03-22 20:27 UTC (permalink / raw)
To: buildroot
Disable SSP if the toolchain does not support it. This must be done
explicitly because configure enables hardening by default but doesn't
contain a link test, so it doesn't detect when libssp is missing.
Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
---
package/tpm2-tools/tpm2-tools.mk | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package/tpm2-tools/tpm2-tools.mk b/package/tpm2-tools/tpm2-tools.mk
index 0697900d2d..8d2cfa2cb2 100644
--- a/package/tpm2-tools/tpm2-tools.mk
+++ b/package/tpm2-tools/tpm2-tools.mk
@@ -10,4 +10,8 @@ TPM2_TOOLS_LICENSE = BSD-2-Clause
TPM2_TOOLS_LICENSE_FILES = LICENSE
TPM2_TOOLS_DEPENDENCIES = dbus libcurl libglib2 openssl tpm2-tss host-pkgconf
+# configure.ac doesn't contain a link test, so it doesn't detect when
+# libssp is missing.
+TPM2_TOOLS_CONF_OPTS = $(if $(BR2_TOOLCHAIN_HAS_SSP),--enable-hardening,--disable-hardening)
+
$(eval $(autotools-package))
--
2.14.3
^ permalink raw reply related [flat|nested] 13+ messages in thread* [Buildroot] [PATCH 6/6] tpm2-tools: allow building without stack smashing protection (SSP)
2018-03-22 20:27 ` [Buildroot] [PATCH 6/6] tpm2-tools: allow building without stack smashing protection (SSP) Carlos Santos
@ 2018-03-22 23:02 ` Peter Korsgaard
0 siblings, 0 replies; 13+ messages in thread
From: Peter Korsgaard @ 2018-03-22 23:02 UTC (permalink / raw)
To: buildroot
>>>>> "Carlos" == Carlos Santos <casantos@datacom.ind.br> writes:
> Disable SSP if the toolchain does not support it. This must be done
> explicitly because configure enables hardening by default but doesn't
> contain a link test, so it doesn't detect when libssp is missing.
> Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
> ---
> package/tpm2-tools/tpm2-tools.mk | 4 ++++
> 1 file changed, 4 insertions(+)
> diff --git a/package/tpm2-tools/tpm2-tools.mk b/package/tpm2-tools/tpm2-tools.mk
> index 0697900d2d..8d2cfa2cb2 100644
> --- a/package/tpm2-tools/tpm2-tools.mk
> +++ b/package/tpm2-tools/tpm2-tools.mk
> @@ -10,4 +10,8 @@ TPM2_TOOLS_LICENSE = BSD-2-Clause
> TPM2_TOOLS_LICENSE_FILES = LICENSE
> TPM2_TOOLS_DEPENDENCIES = dbus libcurl libglib2 openssl tpm2-tss host-pkgconf
> +# configure.ac doesn't contain a link test, so it doesn't detect when
A trailing space here. Committed with that fixed, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 13+ messages in thread