2018-02-02 16:56:11 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# tpm2-tss
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-02-20 22:45:30 +01:00
|
|
|
TPM2_TSS_VERSION = 2.3.3
|
2018-02-02 16:56:11 +01:00
|
|
|
TPM2_TSS_SITE = https://github.com/tpm2-software/tpm2-tss/releases/download/$(TPM2_TSS_VERSION)
|
|
|
|
TPM2_TSS_LICENSE = BSD-2-Clause
|
|
|
|
TPM2_TSS_LICENSE_FILES = LICENSE
|
|
|
|
TPM2_TSS_INSTALL_STAGING = YES
|
2018-11-16 03:52:15 +01:00
|
|
|
TPM2_TSS_DEPENDENCIES = liburiparser openssl host-pkgconf
|
2019-12-15 00:25:59 +01:00
|
|
|
TPM2_TSS_CONF_OPTS = --with-crypto=ossl --disable-doxygen-doc --disable-defaultflags
|
2019-12-23 12:13:21 +01:00
|
|
|
# 0001-configure-Only-use-CXX-when-fuzzing.patch
|
|
|
|
TPM2_TSS_AUTORECONF = YES
|
2018-03-22 21:27:48 +01:00
|
|
|
|
2019-12-15 00:25:59 +01:00
|
|
|
# uses C99 code but forgets to pass -std=c99 when --disable-defaultflags is used
|
|
|
|
TPM2_TSS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=c99"
|
2018-11-19 03:26:24 +01:00
|
|
|
|
2020-02-20 22:45:30 +01:00
|
|
|
# The 2.3.3 tarball accidently contains a Makefile-fuzz-generated.am
|
|
|
|
# with content from a fuzz testing run rather than an empty file,
|
|
|
|
# confusing autoreconf with
|
|
|
|
# 0001-configure-Only-use-CXX-when-fuzzing.patch
|
|
|
|
define TPM2_TSS_TRUNCATE_MAKEFILE_FUZZ_GENERATED_AM
|
|
|
|
truncate -s 0 $(@D)/Makefile-fuzz-generated.am
|
|
|
|
endef
|
|
|
|
TPM2_TSS_POST_PATCH_HOOKS += TPM2_TSS_TRUNCATE_MAKEFILE_FUZZ_GENERATED_AM
|
|
|
|
|
2018-02-02 16:56:11 +01:00
|
|
|
$(eval $(autotools-package))
|