Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 1 | SUMMARY = "Software stack for TPM2." |
| 2 | DESCRIPTION = "OSS implementation of the TCG TPM2 Software Stack (TSS2) " |
| 3 | LICENSE = "BSD-2-Clause" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=500b2e742befc3da00684d8a1d5fd9da" |
| 5 | SECTION = "tpm" |
| 6 | |
| 7 | DEPENDS = "autoconf-archive-native libgcrypt openssl" |
| 8 | |
Andrew Geissler | 9d3cc05 | 2021-03-31 13:36:22 -0500 | [diff] [blame] | 9 | SRC_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 | " |
| 12 | SRC_URI[sha256sum] = "78392be7309baf47f51b122f566ac915fd4d1760ea78571cba2e1484f9b5be17" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 13 | |
Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 14 | inherit autotools pkgconfig systemd extrausers |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 15 | |
| 16 | PACKAGECONFIG ??= "" |
| 17 | PACKAGECONFIG[oxygen] = ",--disable-doxygen-doc, " |
Andrew Geissler | 064f75b | 2020-06-27 00:14:46 -0500 | [diff] [blame] | 18 | PACKAGECONFIG[fapi] = "--enable-fapi,--disable-fapi,json-c " |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 19 | |
Andrew Geissler | a1a6aef | 2021-06-25 14:23:58 -0500 | [diff] [blame] | 20 | EXTRA_OECONF += "--enable-static --with-udevrulesdir=${nonarch_base_libdir}/udev/rules.d/" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 21 | EXTRA_OECONF:remove = " --disable-static" |
Brad Bishop | 95dbbac | 2019-12-02 13:55:25 -0500 | [diff] [blame] | 22 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 23 | |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 24 | EXTRA_USERS_PARAMS = "\ |
| 25 | useradd -p '' tss; \ |
| 26 | groupadd tss; \ |
| 27 | " |
| 28 | |
| 29 | PROVIDES = "${PACKAGES}" |
| 30 | PACKAGES = " \ |
| 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 Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 48 | FILES:libtss2-tcti-device = "${libdir}/libtss2-tcti-device.so.*" |
| 49 | FILES:libtss2-tcti-device-dev = " \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 50 | ${includedir}/tss2/tss2_tcti_device.h \ |
| 51 | ${libdir}/pkgconfig/tss2-tcti-device.pc \ |
| 52 | ${libdir}/libtss2-tcti-device.so" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 53 | FILES:libtss2-tcti-device-staticdev = "${libdir}/libtss2-tcti-device.*a" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 54 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 55 | FILES:libtss2-tcti-mssim = "${libdir}/libtss2-tcti-mssim.so.*" |
| 56 | FILES:libtss2-tcti-mssim-dev = " \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 57 | ${includedir}/tss2/tss2_tcti_mssim.h \ |
| 58 | ${libdir}/pkgconfig/tss2-tcti-mssim.pc \ |
| 59 | ${libdir}/libtss2-tcti-mssim.so" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 60 | FILES:libtss2-tcti-mssim-staticdev = "${libdir}/libtss2-tcti-mssim.*a" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 61 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 62 | FILES:libtss2-mu = "${libdir}/libtss2-mu.so.*" |
| 63 | FILES:libtss2-mu-dev = " \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 64 | ${includedir}/tss2/tss2_mu.h \ |
| 65 | ${libdir}/pkgconfig/tss2-mu.pc \ |
| 66 | ${libdir}/libtss2-mu.so" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 67 | FILES:libtss2-mu-staticdev = "${libdir}/libtss2-mu.*a" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 68 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 69 | FILES:libtss2 = "${libdir}/libtss2*so.*" |
| 70 | FILES:libtss2-dev = " \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 71 | ${includedir} \ |
| 72 | ${libdir}/pkgconfig \ |
| 73 | ${libdir}/libtss2*so" |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 74 | FILES:libtss2-staticdev = "${libdir}/libtss*a" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 75 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 76 | FILES:${PN} = "${libdir}/udev ${nonarch_base_libdir}/udev" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 77 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame^] | 78 | RDEPENDS:libtss2 = "libgcrypt" |