package/tpm2-tools: add option for enabling FAPI tools

Signed-off-by: Erik Larsson <who+buildroot@cnackers.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
Erik Larsson 2022-01-01 23:39:00 +01:00 committed by Thomas Petazzoni
parent f81454db59
commit b5c8dde84c
2 changed files with 18 additions and 0 deletions

View File

@ -21,6 +21,18 @@ config BR2_PACKAGE_TPM2_TOOLS
https://github.com/tpm2-software/tpm2-tools
if BR2_PACKAGE_TPM2_TOOLS
config BR2_PACKAGE_TPM2_TOOLS_FAPI
bool "fapi tools"
depends on BR2_TOOLCHAIN_HAS_SYNC_4
select BR2_PACKAGE_TPM2_TSS_FAPI
help
This option enables Feature API (FAPI) support in
tpm2-tools. The FAPI tools are prefixed with tss2_.
endif
comment "tpm2-tools needs a glibc or musl toolchain w/ dynamic library, wchar"
depends on BR2_STATIC_LIBS || !BR2_USE_WCHAR || \
!(BR2_TOOLCHAIN_USES_GLIBC || BR2_TOOLCHAIN_USES_MUSL)

View File

@ -20,4 +20,10 @@ TPM2_TOOLS_CONF_OPTS = --disable-hardening
# do not build man pages
TPM2_TOOLS_CONF_ENV += ac_cv_prog_PANDOC=''
ifeq ($(BR2_PACKAGE_TPM2_TOOLS_FAPI),y)
TPM2_TOOLS_CONF_OPTS += --enable-fapi
else
TPM2_TOOLS_CONF_OPTS += --disable-fapi
endif
$(eval $(autotools-package))