blob: 78bdeebe0dff995140700329c6bdaaca1954e0d7 [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
9SRCREV = "eb69e13559f20a0b49002a685c6f4a39be9503e2"
10
11SRC_URI = "git://github.com/tpm2-software/tpm2-tss.git;branch=2.2.x"
12
13inherit autotools-brokensep pkgconfig systemd
14
15S = "${WORKDIR}/git"
16
17PACKAGECONFIG ??= ""
18PACKAGECONFIG[oxygen] = ",--disable-doxygen-doc, "
19
20do_configure_prepend () {
21 ./bootstrap
22}
23
24INHERIT += "extrausers"
25EXTRA_USERS_PARAMS = "\
26 useradd -p '' tss; \
27 groupadd tss; \
28 "
29
30PROVIDES = "${PACKAGES}"
31PACKAGES = " \
32 ${PN} \
33 ${PN}-dbg \
34 ${PN}-doc \
35 libtss2-mu \
36 libtss2-mu-dev \
37 libtss2-mu-staticdev \
38 libtss2-tcti-device \
39 libtss2-tcti-device-dev \
40 libtss2-tcti-device-staticdev \
41 libtss2-tcti-mssim \
42 libtss2-tcti-mssim-dev \
43 libtss2-tcti-mssim-staticdev \
44 libtss2 \
45 libtss2-dev \
46 libtss2-staticdev \
47"
48
49FILES_libtss2-tcti-device = "${libdir}/libtss2-tcti-device.so.*"
50FILES_libtss2-tcti-device-dev = " \
51 ${includedir}/tss2/tss2_tcti_device.h \
52 ${libdir}/pkgconfig/tss2-tcti-device.pc \
53 ${libdir}/libtss2-tcti-device.so"
54FILES_libtss2-tcti-device-staticdev = "${libdir}/libtss2-tcti-device.*a"
55
56FILES_libtss2-tcti-mssim = "${libdir}/libtss2-tcti-mssim.so.*"
57FILES_libtss2-tcti-mssim-dev = " \
58 ${includedir}/tss2/tss2_tcti_mssim.h \
59 ${libdir}/pkgconfig/tss2-tcti-mssim.pc \
60 ${libdir}/libtss2-tcti-mssim.so"
61FILES_libtss2-tcti-mssim-staticdev = "${libdir}/libtss2-tcti-mssim.*a"
62
63FILES_libtss2-mu = "${libdir}/libtss2-mu.so.*"
64FILES_libtss2-mu-dev = " \
65 ${includedir}/tss2/tss2_mu.h \
66 ${libdir}/pkgconfig/tss2-mu.pc \
67 ${libdir}/libtss2-mu.so"
68FILES_libtss2-mu-staticdev = "${libdir}/libtss2-mu.*a"
69
70FILES_libtss2 = "${libdir}/libtss2*so.*"
71FILES_libtss2-dev = " \
72 ${includedir} \
73 ${libdir}/pkgconfig \
74 ${libdir}/libtss2*so"
75FILES_libtss2-staticdev = "${libdir}/libtss*a"
76
77FILES_${PN} = "${libdir}/udev"
78
79RDEPENDS_libtss2 = "libgcrypt"