package/tpm2-pkcs11: needs threads
authorFabrice Fontaine <fontaine.fabrice@gmail.com>
Sat, 27 Feb 2021 19:26:39 +0000 (20:26 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 1 Mar 2021 21:34:22 +0000 (22:34 +0100)
tpm2-pkcs11 fails to build without threads since its addition with
commit 42db2c7236c2249ec02608ed714fa6f95e36161b

Fixes:
 - http://autobuild.buildroot.org/results/8218776da34cc4a20663ae6737ad7727b12d8cd2

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/tpm2-pkcs11/Config.in

index 46d5cab07e202d1b9a916eaf7e18d557848ff58d..5d457032238266fafa9cf5b9ac5887dc23e6a79f 100644 (file)
@@ -1,6 +1,7 @@
 config BR2_PACKAGE_TPM2_PKCS11
        bool "tpm2-pkcs11"
        depends on !BR2_STATIC_LIBS # tpm2-tss
+       depends on BR2_TOOLCHAIN_HAS_THREADS
        select BR2_PACKAGE_LIBYAML
        select BR2_PACKAGE_OPENSSL
        select BR2_PACKAGE_SQLITE
@@ -10,5 +11,5 @@ config BR2_PACKAGE_TPM2_PKCS11
 
          https://github.com/tpm2-software/tpm2-pkcs11
 
-comment "tpm2-pkcs11 needs a toolchain w/ dynamic library"
-       depends on BR2_STATIC_LIBS
+comment "tpm2-pkcs11 needs a toolchain w/ dynamic library, threads"
+       depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS