xref: /OK3568_Linux_fs/buildroot/package/tpm2-totp/tpm2-totp.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# tpm2-totp
4#
5################################################################################
6
7TPM2_TOTP_VERSION = 0.2.1
8TPM2_TOTP_SITE = https://github.com/tpm2-software/tpm2-totp/releases/download/v$(TPM2_TOTP_VERSION)
9TPM2_TOTP_LICENSE = BSD-3-Clause
10TPM2_TOTP_LICENSE_FILES = LICENSE
11TPM2_TOTP_SELINUX_MODULES = tpm2
12TPM2_TOTP_DEPENDENCIES = libqrencode tpm2-tss host-pkgconf
13TPM2_TOTP_CONF_OPTS = \
14	--disable-defaultflags \
15	--disable-doxygen-doc \
16	--disable-plymouth \
17	--without-initramfstoolsdir \
18	--without-mkinitcpiodir
19
20# uses C99 code but forgets to pass -std=c99 when --disable-defaultflags is used
21TPM2_TOTP_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=c99"
22
23# do not build man pages
24TPM2_TOTP_CONF_ENV += ac_cv_path_PANDOC=''
25
26$(eval $(autotools-package))
27