mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-08-23 15:54:21 -09:00
tpm2_encodeobject is essential for testing RSAPKCS1 and ECDSA TPM2 signing keys, as the key blob is loaded to the chip in DER format defined by ASN.1 schema. Link: https://lore.kernel.org/linux-crypto/20240528210823.28798-1-jarkko@kernel.org/ Cc: Erik Larsson <who+buildroot@cnackers.org> Cc: Thomas Petazzoni <thomas.petazzoni@bootlin.com> Signed-off-by: Jarkko Sakkinen <jarkko@kernel.org> [yann.morin.1998@free.fr: fix path of LICENSE file] Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
30 lines
965 B
Makefile
30 lines
965 B
Makefile
################################################################################
|
|
#
|
|
# tpm2-tools
|
|
#
|
|
################################################################################
|
|
|
|
TPM2_TOOLS_VERSION = 5.7
|
|
TPM2_TOOLS_SITE = https://github.com/tpm2-software/tpm2-tools/releases/download/$(TPM2_TOOLS_VERSION)
|
|
TPM2_TOOLS_LICENSE = BSD-3-Clause
|
|
TPM2_TOOLS_LICENSE_FILES = docs/LICENSE
|
|
TPM2_TOOLS_CPE_ID_VALID = YES
|
|
TPM2_TOOLS_SELINUX_MODULES = tpm2
|
|
TPM2_TOOLS_DEPENDENCIES = libcurl openssl tpm2-tss host-pkgconf
|
|
|
|
# -fstack-protector-all and FORTIFY_SOURCE=2 is used by
|
|
# default. Disable that so the BR2_SSP_* / BR2_FORTIFY_SOURCE_* options
|
|
# in the toolchain wrapper and CFLAGS are used instead
|
|
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))
|