1################################################################################ 2# 3# tpm2-abrmd 4# 5################################################################################ 6 7TPM2_ABRMD_VERSION = 2.3.3 8TPM2_ABRMD_SITE = https://github.com/tpm2-software/tpm2-abrmd/releases/download/$(TPM2_ABRMD_VERSION) 9TPM2_ABRMD_LICENSE = BSD-2-Clause 10TPM2_ABRMD_LICENSE_FILES = LICENSE 11TPM2_ABRMD_SELINUX_MODULES = tpm2 12TPM2_ABRMD_INSTALL_STAGING = YES 13TPM2_ABRMD_DEPENDENCIES = libglib2 tpm2-tss host-pkgconf 14TPM2_ABRMD_CONF_OPTS = \ 15 --disable-defaultflags \ 16 --with-systemdsystemunitdir=$(if $(BR2_INIT_SYSTEMD),/usr/lib/systemd/system,no) \ 17 --with-udevrulesdir=$(if $(BR2_PACKAGE_HAS_UDEV),/usr/lib/udev/rules.d,no) 18 19# uses C99 code but forgets to pass -std=c99 when --disable-defaultflags is used 20TPM2_ABRMD_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -std=c99" 21 22define TPM2_ABRMD_INSTALL_INIT_SYSTEMD 23 $(TARGET_MAKE_ENV) $(MAKE1) -C $(@D) DESTDIR=$(TARGET_DIR) \ 24 install-systemdpresetDATA install-systemdsystemunitDATA 25endef 26 27define TPM2_ABRMD_INSTALL_INIT_SYSV 28 $(INSTALL) -D -m 0755 $(TPM2_ABRMD_PKGDIR)/S80tpm2-abrmd \ 29 $(TARGET_DIR)/etc/init.d/S80tpm2-abrmd 30endef 31 32define TPM2_ABRMD_USERS 33 tss -1 tss -1 * - - - TPM2 Access Broker & Resource Management daemon 34endef 35 36$(eval $(autotools-package)) 37