1config BR2_PACKAGE_TPM2_TOOLS
2	bool "tpm2-tools"
3	depends on !BR2_STATIC_LIBS # tpm2-tss
4	depends on BR2_USE_WCHAR
5	# c16rtomb() not implemented in uClibc
6	depends on BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL
7	select BR2_PACKAGE_LIBCURL
8	select BR2_PACKAGE_OPENSSL
9	select BR2_PACKAGE_TPM2_TSS
10	help
11	  TPM (Trusted Platform Module) 2.0 CLI tools based on system
12	  API of TPM2-TSS. These tools can be used to manage keys,
13	  perform encryption/decryption/signing/etc crypto operations,
14	  and manage non-volatile storage through a TPM2.0 HW
15	  implementation.
16
17	  Notice: An in-kernel resource manager is provided by the
18	  Linux kernel since 4.12. Depending on use cases and kernel
19	  version, the user space resource manager provided by
20	  tpm2-abrmd may be needed.
21
22	  https://github.com/tpm2-software/tpm2-tools
23
24if BR2_PACKAGE_TPM2_TOOLS
25
26config BR2_PACKAGE_TPM2_TOOLS_FAPI
27	bool "fapi tools"
28	depends on BR2_TOOLCHAIN_HAS_SYNC_4
29	select BR2_PACKAGE_TPM2_TSS_FAPI
30	help
31	  This option enables Feature API (FAPI) support in
32	  tpm2-tools. The FAPI tools are prefixed with tss2_.
33
34endif
35
36comment "tpm2-tools needs a glibc or musl toolchain w/ dynamic library, wchar"
37	depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR || \
38		!(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)
39