2018-02-02 16:56:11 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# tpm2-tss
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2020-12-22 06:05:12 +01:00
|
|
|
TPM2_TSS_VERSION = 3.0.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-10-15 11:00:13 +02:00
|
|
|
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
|
2020-02-20 22:45:30 +01:00
|
|
|
|
2018-02-02 16:56:11 +01:00
|
|
|
$(eval $(autotools-package))
|