blob: 64708791f4a9d1a916f8767889eced59392a8e9a [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 Geisslera1a6aef2021-06-25 14:23:58 -050020EXTRA_OECONF += "--enable-static --with-udevrulesdir=${nonarch_base_libdir}/udev/rules.d/"
Patrick Williams213cb262021-08-07 19:21:33 -050021EXTRA_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
Patrick Williams213cb262021-08-07 19:21:33 -050048FILES:libtss2-tcti-device = "${libdir}/libtss2-tcti-device.so.*"
49FILES:libtss2-tcti-device-dev = " \
Brad Bishop19323692019-04-05 15:28:33 -040050 ${includedir}/tss2/tss2_tcti_device.h \
51 ${libdir}/pkgconfig/tss2-tcti-device.pc \
52 ${libdir}/libtss2-tcti-device.so"
Patrick Williams213cb262021-08-07 19:21:33 -050053FILES:libtss2-tcti-device-staticdev = "${libdir}/libtss2-tcti-device.*a"
Brad Bishop19323692019-04-05 15:28:33 -040054
Patrick Williams213cb262021-08-07 19:21:33 -050055FILES:libtss2-tcti-mssim = "${libdir}/libtss2-tcti-mssim.so.*"
56FILES:libtss2-tcti-mssim-dev = " \
Brad Bishop19323692019-04-05 15:28:33 -040057 ${includedir}/tss2/tss2_tcti_mssim.h \
58 ${libdir}/pkgconfig/tss2-tcti-mssim.pc \
59 ${libdir}/libtss2-tcti-mssim.so"
Patrick Williams213cb262021-08-07 19:21:33 -050060FILES:libtss2-tcti-mssim-staticdev = "${libdir}/libtss2-tcti-mssim.*a"
Brad Bishop19323692019-04-05 15:28:33 -040061
Patrick Williams213cb262021-08-07 19:21:33 -050062FILES:libtss2-mu = "${libdir}/libtss2-mu.so.*"
63FILES:libtss2-mu-dev = " \
Brad Bishop19323692019-04-05 15:28:33 -040064 ${includedir}/tss2/tss2_mu.h \
65 ${libdir}/pkgconfig/tss2-mu.pc \
66 ${libdir}/libtss2-mu.so"
Patrick Williams213cb262021-08-07 19:21:33 -050067FILES:libtss2-mu-staticdev = "${libdir}/libtss2-mu.*a"
Brad Bishop19323692019-04-05 15:28:33 -040068
Patrick Williams213cb262021-08-07 19:21:33 -050069FILES:libtss2 = "${libdir}/libtss2*so.*"
70FILES:libtss2-dev = " \
Brad Bishop19323692019-04-05 15:28:33 -040071 ${includedir} \
72 ${libdir}/pkgconfig \
73 ${libdir}/libtss2*so"
Patrick Williams213cb262021-08-07 19:21:33 -050074FILES:libtss2-staticdev = "${libdir}/libtss*a"
Brad Bishop19323692019-04-05 15:28:33 -040075
Patrick Williams213cb262021-08-07 19:21:33 -050076FILES:${PN} = "${libdir}/udev ${nonarch_base_libdir}/udev"
Brad Bishop19323692019-04-05 15:28:33 -040077
Patrick Williams213cb262021-08-07 19:21:33 -050078RDEPENDS:libtss2 = "libgcrypt"