All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/1] package/ibm-sw-tpm2: enable only on supported architectures
@ 2020-04-21  9:26 Fabrice Fontaine
  2020-04-21  9:41 ` Thomas Petazzoni
  0 siblings, 1 reply; 3+ messages in thread
From: Fabrice Fontaine @ 2020-04-21  9:26 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.org/results/12d2c27c38cc52248d3277995a9bb5eae4b8bb9e
 - http://autobuild.buildroot.org/results/34151bded9737f7c128b7a2d763c9e0af8018068
 - http://autobuild.buildroot.org/results/9abbbdd2735991277c0b821a47c579b053335caf

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 package/ibm-sw-tpm2/Config.in | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/package/ibm-sw-tpm2/Config.in b/package/ibm-sw-tpm2/Config.in
index dc5630490f..1f97b62405 100644
--- a/package/ibm-sw-tpm2/Config.in
+++ b/package/ibm-sw-tpm2/Config.in
@@ -1,5 +1,14 @@
+config BR2_PACKAGE_IBM_SW_TPM2_ARCH_SUPPORTS
+	bool
+	# see src/LibSupport.h
+	default y if BR2_arm || BR2_armeb
+	default y if BR2_aarch64 || BR2_aarch64_be
+	default y if BR2_i386 || BR2_x86_64
+	default y if BR2_powerpc64 || BR2_powerpc64le
+
 config BR2_PACKAGE_IBM_SW_TPM2
 	bool "ibm-sw-tpm2"
+	depends on BR2_PACKAGE_IBM_SW_TPM2_ARCH_SUPPORTS
 	depends on !BR2_STATIC_LIBS # ibm-sw-tpm2
 	select BR2_PACKAGE_OPENSSL
 	# libressl is not supported
@@ -13,4 +22,5 @@ config BR2_PACKAGE_IBM_SW_TPM2
 	  https://sourceforge.net/projects/ibmswtpm2/
 
 comment "ibm-sw-tpm2 needs a toolchain w/ dynamic library"
+	depends on BR2_PACKAGE_IBM_SW_TPM2_ARCH_SUPPORTS
 	depends on BR2_STATIC_LIBS
-- 
2.25.1

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-04-21  9:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-04-21  9:26 [Buildroot] [PATCH 1/1] package/ibm-sw-tpm2: enable only on supported architectures Fabrice Fontaine
2020-04-21  9:41 ` Thomas Petazzoni
2020-04-21  9:57   ` Fabrice Fontaine

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.