summaryrefslogtreecommitdiffstats
path: root/rules/tpm2-abrmd.make
blob: bbf3344126f7cdff6c51d442f8d46847dbf71feb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# -*-makefile-*-
#
# Copyright (C) 2017 by Marc Kleine-Budde <mkl@pengutronix.de>
#
# For further information about the PTXdist project and license conditions
# see the README file.
#

#
# We provide this package
#
PACKAGES-$(PTXCONF_TPM2_ABRMD) += tpm2-abrmd

#
# Paths and names
#
TPM2_ABRMD_VERSION		:= 2.3.0
TPM2_ABRMD_MD5			:= 1326e92638d4f55cc4553260e5c24b6c
TPM2_ABRMD			:= tpm2-abrmd-$(TPM2_ABRMD_VERSION)
TPM2_ABRMD_SUFFIX		:= tar.gz
TPM2_ABRMD_URL			:= https://github.com/tpm2-software/tpm2-abrmd/releases/download/$(TPM2_ABRMD_VERSION)/$(TPM2_ABRMD).$(TPM2_ABRMD_SUFFIX)
TPM2_ABRMD_SOURCE		:= $(SRCDIR)/$(TPM2_ABRMD).$(TPM2_ABRMD_SUFFIX)
TPM2_ABRMD_DIR			:= $(BUILDDIR)/$(TPM2_ABRMD)
TPM2_ABRMD_LICENSE		:= BSD-2-Clause
TPM2_ABRMD_LICENSE_FILES	:= file://LICENSE;md5=500b2e742befc3da00684d8a1d5fd9da

# ----------------------------------------------------------------------------
# Prepare
# ----------------------------------------------------------------------------

#
# autoconf
#
TPM2_ABRMD_CONF_TOOL	:= autoconf
TPM2_ABRMD_CONF_OPT	:= \
	$(CROSS_AUTOCONF_USR) \
	--enable-debug=info \
	--disable-unit \
	--disable-code-coverage \
	--disable-valgrind \
	--disable-valgrind-memcheck \
	--disable-valgrind-helgrind \
	--disable-valgrind-drd \
	--disable-valgrind-sgcheck \
	--disable-dlclose \
	--disable-test-hwtpm \
	--disable-integration \
	--disable-defaultflags \
	--without-gcov \
	--with-systemdsystemunitdir=/usr/lib/systemd/system \
	--with-dbuspolicydir=/usr/share/dbus-1/system.d

# ----------------------------------------------------------------------------
# Target-Install
# ----------------------------------------------------------------------------

$(STATEDIR)/tpm2-abrmd.targetinstall:
	@$(call targetinfo)

	@$(call install_init, tpm2-abrmd)
	@$(call install_fixup, tpm2-abrmd,PRIORITY,optional)
	@$(call install_fixup, tpm2-abrmd,SECTION,base)
	@$(call install_fixup, tpm2-abrmd,AUTHOR,"Marc Kleine-Budde <mkl@pengutronix.de>")
	@$(call install_fixup, tpm2-abrmd,DESCRIPTION,missing)

	@$(call install_lib, tpm2-abrmd, 0, 0, 0644, libtss2-tcti-tabrmd)
	@$(call install_copy, tpm2-abrmd, 0, 0, 0755, -, /usr/sbin/tpm2-abrmd)

	@$(call install_alternative, tpm2-abrmd, 0, 0, 0644, \
		/usr/lib/systemd/system/tpm2-abrmd.service)

	@$(call install_alternative, tpm2-abrmd, 0, 0, 0644, \
		/usr/share/dbus-1/system.d/tpm2-abrmd.conf)
	@$(call install_alternative, tpm2-abrmd, 0, 0, 0644, \
		/usr/share/dbus-1/system-services/com.intel.tss2.Tabrmd.service)

	@$(call install_finish, tpm2-abrmd)

	@$(call touch)

# vim: syntax=make