tpm2-tools: propagate dependencies of selected packages
authorCarlos Santos <casantos@datacom.ind.br>
Thu, 22 Mar 2018 20:27:51 +0000 (17:27 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 22 Mar 2018 23:00:40 +0000 (00:00 +0100)
- 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

[Peter: add C++ dependency to config option]
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Signed-off-by: Carlos Santos <casantos@datacom.ind.br>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/tpm2-tools/Config.in

index 6429b24531b11c94a4e7600bcaae6f712378a819..685b75c47538e370cfd1fb484a985b9b06526003 100644 (file)
@@ -1,5 +1,9 @@
 config BR2_PACKAGE_TPM2_TOOLS
        bool "tpm2-tools"
+       depends on BR2_INSTALL_LIBSTDCPP # tpm2-tss
+       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 +18,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