1################################################################################ 2# 3# tpm2-pkcs11 4# 5################################################################################ 6 7TPM2_PKCS11_VERSION = 1.7.0 8TPM2_PKCS11_SITE = https://github.com/tpm2-software/tpm2-pkcs11/releases/download/$(TPM2_PKCS11_VERSION) 9TPM2_PKCS11_LICENSE = BSD-2-Clause 10TPM2_PKCS11_LICENSE_FILES = LICENSE 11TPM2_PKCS11_DEPENDENCIES = host-pkgconf libyaml openssl sqlite tpm2-tss 12 13TPM2_PKCS11_CONF_OPTS += \ 14 --disable-hardening 15 16# Fix tpm.c:746:5: error: 'for' loop initial declarations are only allowed in C99 mode 17# Fix implicit declaration of function 'strnlen' 18TPM2_PKCS11_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=gnu99" 19 20# do not build man pages 21TPM2_PKCS11_CONF_ENV += ac_cv_prog_PANDOC='' 22 23# tpm2-pkcs11 checks for tpm2-tools programs and errors out if not 24# found, even though they are only used by the (unused in Buildroot) 25# python-based tools 26TPM2_PKCS11_CONF_ENV += \ 27 ac_cv_prog_tpm2_createprimary=yes \ 28 ac_cv_prog_tpm2_create=yes \ 29 ac_cv_prog_tpm2_evictcontrol=yes \ 30 ac_cv_prog_tpm2_readpublic=yes \ 31 ac_cv_prog_tpm2_load=yes \ 32 ac_cv_prog_tpm2_loadexternal=yes \ 33 ac_cv_prog_tpm2_unseal=yes \ 34 ac_cv_prog_tpm2_encryptdecrypt=yes \ 35 ac_cv_prog_tpm2_sign=yes \ 36 ac_cv_prog_tpm2_getcap=yes \ 37 ac_cv_prog_tpm2_import=yes \ 38 ac_cv_prog_tpm2_changeauth=yes 39 40ifeq ($(BR2_PACKAGE_P11_KIT),y) 41TPM2_PKCS11_DEPENDENCIES += p11-kit 42TPM2_PKCS11_CONF_OPTS += \ 43 --with-p11kitconfigdir=/usr/share/p11-kit/modules 44endif 45 46$(eval $(autotools-package)) 47