blob: 135efed84eb82cb04d0d03ded7f349a17854d9df [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
Brad Bishopa3b01f42019-09-13 06:30:46 -04009SRCREV = "a99e733ba66c359502689a9c42fd5e02ed1dd7d6"
Brad Bishop19323692019-04-05 15:28:33 -040010
Andrew Geissler1fe918a2020-05-15 14:16:47 -050011SRC_URI = "https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz"
12SRC_URI[md5sum] = "fb7e6d371959a65dc6d129af81739742"
13SRC_URI[sha256sum] = "82929a0611f39246e09202702a61b54c980ab694626c1f5823520ddf75024fa6"
14SRC_URI[sha1sum] = "c24ce8b20a8686ada775239389292f6d78020668"
15SRC_URI[sha384sum] = "a0c023c024efb6c9906df1e143d692f44433de332b616dc0584c9b4cd4fb0ad544308f291892e91c5a52ef1a4b2abf7f"
16SRC_URI[sha512sum] = "7b679b54f3478c3adee5b6c3135cbe491ffd9f4712991f465edbd6c7d2831e5f1537038ec36f288e9545c719d5d167b61116c924cf5d816220615d0b58a1d436"
Brad Bishop19323692019-04-05 15:28:33 -040017
Andrew Geissler1fe918a2020-05-15 14:16:47 -050018inherit autotools pkgconfig systemd extrausers
Brad Bishop19323692019-04-05 15:28:33 -040019
20PACKAGECONFIG ??= ""
21PACKAGECONFIG[oxygen] = ",--disable-doxygen-doc, "
22
Andrew Geissler1fe918a2020-05-15 14:16:47 -050023EXTRA_OECONF += "--enable-static --with-udevrulesdir=${base_prefix}/lib/udev/rules.d/"
24EXTRA_OECONF_remove = " --disable-static"
Brad Bishop95dbbac2019-12-02 13:55:25 -050025
Brad Bishop19323692019-04-05 15:28:33 -040026
Brad Bishop19323692019-04-05 15:28:33 -040027EXTRA_USERS_PARAMS = "\
28 useradd -p '' tss; \
29 groupadd tss; \
30 "
31
32PROVIDES = "${PACKAGES}"
33PACKAGES = " \
34 ${PN} \
35 ${PN}-dbg \
36 ${PN}-doc \
37 libtss2-mu \
38 libtss2-mu-dev \
39 libtss2-mu-staticdev \
40 libtss2-tcti-device \
41 libtss2-tcti-device-dev \
42 libtss2-tcti-device-staticdev \
43 libtss2-tcti-mssim \
44 libtss2-tcti-mssim-dev \
45 libtss2-tcti-mssim-staticdev \
46 libtss2 \
47 libtss2-dev \
48 libtss2-staticdev \
49"
50
51FILES_libtss2-tcti-device = "${libdir}/libtss2-tcti-device.so.*"
52FILES_libtss2-tcti-device-dev = " \
53 ${includedir}/tss2/tss2_tcti_device.h \
54 ${libdir}/pkgconfig/tss2-tcti-device.pc \
55 ${libdir}/libtss2-tcti-device.so"
56FILES_libtss2-tcti-device-staticdev = "${libdir}/libtss2-tcti-device.*a"
57
58FILES_libtss2-tcti-mssim = "${libdir}/libtss2-tcti-mssim.so.*"
59FILES_libtss2-tcti-mssim-dev = " \
60 ${includedir}/tss2/tss2_tcti_mssim.h \
61 ${libdir}/pkgconfig/tss2-tcti-mssim.pc \
62 ${libdir}/libtss2-tcti-mssim.so"
63FILES_libtss2-tcti-mssim-staticdev = "${libdir}/libtss2-tcti-mssim.*a"
64
65FILES_libtss2-mu = "${libdir}/libtss2-mu.so.*"
66FILES_libtss2-mu-dev = " \
67 ${includedir}/tss2/tss2_mu.h \
68 ${libdir}/pkgconfig/tss2-mu.pc \
69 ${libdir}/libtss2-mu.so"
70FILES_libtss2-mu-staticdev = "${libdir}/libtss2-mu.*a"
71
72FILES_libtss2 = "${libdir}/libtss2*so.*"
73FILES_libtss2-dev = " \
74 ${includedir} \
75 ${libdir}/pkgconfig \
76 ${libdir}/libtss2*so"
77FILES_libtss2-staticdev = "${libdir}/libtss*a"
78
Brad Bishop95dbbac2019-12-02 13:55:25 -050079FILES_${PN} = "${libdir}/udev ${base_prefix}/lib/udev"
Brad Bishop19323692019-04-05 15:28:33 -040080
81RDEPENDS_libtss2 = "libgcrypt"