blob: b2486e5be0eef27c7d497696bb31260e7140d455 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001SUMMARY = "Software stack for TPM2."
2DESCRIPTION = "OSS implementation of the TCG TPM2 Software Stack (TSS2) "
3LICENSE = "BSD-2-Clause"
4LIC_FILES_CHKSUM = "file://LICENSE;md5=500b2e742befc3da00684d8a1d5fd9da"
5SECTION = "tpm"
6
7DEPENDS = "autoconf-archive-native libgcrypt openssl"
8
Andrew Geissler9d3cc052021-03-31 13:36:22 -05009SRC_URI = "https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz \
10 file://0001-configure.ac-fix-compatibility-with-autoconf-2.70.patch \
11 "
12SRC_URI[sha256sum] = "78392be7309baf47f51b122f566ac915fd4d1760ea78571cba2e1484f9b5be17"
Brad Bishop19323692019-04-05 15:28:33 -040013
Andrew Geissler1fe918a2020-05-15 14:16:47 -050014inherit autotools pkgconfig systemd extrausers
Brad Bishop19323692019-04-05 15:28:33 -040015
16PACKAGECONFIG ??= ""
17PACKAGECONFIG[oxygen] = ",--disable-doxygen-doc, "
Andrew Geissler064f75b2020-06-27 00:14:46 -050018PACKAGECONFIG[fapi] = "--enable-fapi,--disable-fapi,json-c "
Brad Bishop19323692019-04-05 15:28:33 -040019
Andrew Geissler1fe918a2020-05-15 14:16:47 -050020EXTRA_OECONF += "--enable-static --with-udevrulesdir=${base_prefix}/lib/udev/rules.d/"
21EXTRA_OECONF_remove = " --disable-static"
Brad Bishop95dbbac2019-12-02 13:55:25 -050022
Brad Bishop19323692019-04-05 15:28:33 -040023
Brad Bishop19323692019-04-05 15:28:33 -040024EXTRA_USERS_PARAMS = "\
25 useradd -p '' tss; \
26 groupadd tss; \
27 "
28
29PROVIDES = "${PACKAGES}"
30PACKAGES = " \
31 ${PN} \
32 ${PN}-dbg \
33 ${PN}-doc \
34 libtss2-mu \
35 libtss2-mu-dev \
36 libtss2-mu-staticdev \
37 libtss2-tcti-device \
38 libtss2-tcti-device-dev \
39 libtss2-tcti-device-staticdev \
40 libtss2-tcti-mssim \
41 libtss2-tcti-mssim-dev \
42 libtss2-tcti-mssim-staticdev \
43 libtss2 \
44 libtss2-dev \
45 libtss2-staticdev \
46"
47
48FILES_libtss2-tcti-device = "${libdir}/libtss2-tcti-device.so.*"
49FILES_libtss2-tcti-device-dev = " \
50 ${includedir}/tss2/tss2_tcti_device.h \
51 ${libdir}/pkgconfig/tss2-tcti-device.pc \
52 ${libdir}/libtss2-tcti-device.so"
53FILES_libtss2-tcti-device-staticdev = "${libdir}/libtss2-tcti-device.*a"
54
55FILES_libtss2-tcti-mssim = "${libdir}/libtss2-tcti-mssim.so.*"
56FILES_libtss2-tcti-mssim-dev = " \
57 ${includedir}/tss2/tss2_tcti_mssim.h \
58 ${libdir}/pkgconfig/tss2-tcti-mssim.pc \
59 ${libdir}/libtss2-tcti-mssim.so"
60FILES_libtss2-tcti-mssim-staticdev = "${libdir}/libtss2-tcti-mssim.*a"
61
62FILES_libtss2-mu = "${libdir}/libtss2-mu.so.*"
63FILES_libtss2-mu-dev = " \
64 ${includedir}/tss2/tss2_mu.h \
65 ${libdir}/pkgconfig/tss2-mu.pc \
66 ${libdir}/libtss2-mu.so"
67FILES_libtss2-mu-staticdev = "${libdir}/libtss2-mu.*a"
68
69FILES_libtss2 = "${libdir}/libtss2*so.*"
70FILES_libtss2-dev = " \
71 ${includedir} \
72 ${libdir}/pkgconfig \
73 ${libdir}/libtss2*so"
74FILES_libtss2-staticdev = "${libdir}/libtss*a"
75
Brad Bishop95dbbac2019-12-02 13:55:25 -050076FILES_${PN} = "${libdir}/udev ${base_prefix}/lib/udev"
Brad Bishop19323692019-04-05 15:28:33 -040077
78RDEPENDS_libtss2 = "libgcrypt"