aboutsummaryrefslogtreecommitdiff
path: root/package/tpm2-tss/tpm2-tss.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/tpm2-tss/tpm2-tss.mk')
-rw-r--r--package/tpm2-tss/tpm2-tss.mk16
1 files changed, 7 insertions, 9 deletions
diff --git a/package/tpm2-tss/tpm2-tss.mk b/package/tpm2-tss/tpm2-tss.mk
index 470020857a..bde6b352bf 100644
--- a/package/tpm2-tss/tpm2-tss.mk
+++ b/package/tpm2-tss/tpm2-tss.mk
@@ -4,7 +4,7 @@
#
################################################################################
-TPM2_TSS_VERSION = 2.3.3
+TPM2_TSS_VERSION = 3.0.3
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
@@ -17,13 +17,11 @@ TPM2_TSS_AUTORECONF = YES
# uses C99 code but forgets to pass -std=c99 when --disable-defaultflags is used
TPM2_TSS_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=c99"
-# 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
+ifeq ($(BR2_PACKAGE_TPM2_TSS_FAPI),y)
+TPM2_TSS_DEPENDENCIES += json-c libcurl
+TPM2_TSS_CONF_OPTS += --enable-fapi
+else
+TPM2_TSS_CONF_OPTS += --disable-fapi
+endif
$(eval $(autotools-package))