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 | |
Brad Bishop | a3b01f4 | 2019-09-13 06:30:46 -0400 | [diff] [blame] | 9 | SRCREV = "a99e733ba66c359502689a9c42fd5e02ed1dd7d6" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 10 | |
Andrew Geissler | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 11 | SRC_URI = "https://github.com/tpm2-software/${BPN}/releases/download/${PV}/${BPN}-${PV}.tar.gz" |
Andrew Geissler | 064f75b | 2020-06-27 00:14:46 -0500 | [diff] [blame^] | 12 | SRC_URI[sha256sum] = "58d7afcab9ff3daaafb5316e57d2c211118334b470d5a5bc6ceace6f89a1e60d" |
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 | 1fe918a | 2020-05-15 14:16:47 -0500 | [diff] [blame] | 20 | EXTRA_OECONF += "--enable-static --with-udevrulesdir=${base_prefix}/lib/udev/rules.d/" |
| 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 | |
| 48 | FILES_libtss2-tcti-device = "${libdir}/libtss2-tcti-device.so.*" |
| 49 | FILES_libtss2-tcti-device-dev = " \ |
| 50 | ${includedir}/tss2/tss2_tcti_device.h \ |
| 51 | ${libdir}/pkgconfig/tss2-tcti-device.pc \ |
| 52 | ${libdir}/libtss2-tcti-device.so" |
| 53 | FILES_libtss2-tcti-device-staticdev = "${libdir}/libtss2-tcti-device.*a" |
| 54 | |
| 55 | FILES_libtss2-tcti-mssim = "${libdir}/libtss2-tcti-mssim.so.*" |
| 56 | FILES_libtss2-tcti-mssim-dev = " \ |
| 57 | ${includedir}/tss2/tss2_tcti_mssim.h \ |
| 58 | ${libdir}/pkgconfig/tss2-tcti-mssim.pc \ |
| 59 | ${libdir}/libtss2-tcti-mssim.so" |
| 60 | FILES_libtss2-tcti-mssim-staticdev = "${libdir}/libtss2-tcti-mssim.*a" |
| 61 | |
| 62 | FILES_libtss2-mu = "${libdir}/libtss2-mu.so.*" |
| 63 | FILES_libtss2-mu-dev = " \ |
| 64 | ${includedir}/tss2/tss2_mu.h \ |
| 65 | ${libdir}/pkgconfig/tss2-mu.pc \ |
| 66 | ${libdir}/libtss2-mu.so" |
| 67 | FILES_libtss2-mu-staticdev = "${libdir}/libtss2-mu.*a" |
| 68 | |
| 69 | FILES_libtss2 = "${libdir}/libtss2*so.*" |
| 70 | FILES_libtss2-dev = " \ |
| 71 | ${includedir} \ |
| 72 | ${libdir}/pkgconfig \ |
| 73 | ${libdir}/libtss2*so" |
| 74 | FILES_libtss2-staticdev = "${libdir}/libtss*a" |
| 75 | |
Brad Bishop | 95dbbac | 2019-12-02 13:55:25 -0500 | [diff] [blame] | 76 | FILES_${PN} = "${libdir}/udev ${base_prefix}/lib/udev" |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame] | 77 | |
| 78 | RDEPENDS_libtss2 = "libgcrypt" |