diff options
Diffstat (limited to 'meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_2.0.1.bb')
-rw-r--r-- | meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_2.0.1.bb | 93 |
1 files changed, 93 insertions, 0 deletions
diff --git a/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_2.0.1.bb b/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_2.0.1.bb new file mode 100644 index 0000000..3e7b81a --- /dev/null +++ b/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_2.0.1.bb | |||
@@ -0,0 +1,93 @@ | |||
1 | SUMMARY = "Software stack for TPM2." | ||
2 | DESCRIPTION = "tpm2.0-tss like woah." | ||
3 | LICENSE = "BSD-2-Clause" | ||
4 | LIC_FILES_CHKSUM = "file://LICENSE;md5=0b1d631c4218b72f6b05cb58613606f4" | ||
5 | SECTION = "tpm" | ||
6 | |||
7 | DEPENDS = "autoconf-archive-native libgcrypt" | ||
8 | |||
9 | SRCREV = "dc31e8dca9dbc77d16e419dc514ce8c526cd3351" | ||
10 | |||
11 | SRC_URI = "git://github.com/tpm2-software/tpm2-tss.git;branch=2.0.x" | ||
12 | |||
13 | inherit autotools-brokensep pkgconfig systemd | ||
14 | |||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | do_configure_prepend () { | ||
18 | ./bootstrap | ||
19 | } | ||
20 | |||
21 | INHERIT += "extrausers" | ||
22 | EXTRA_USERS_PARAMS = "\ | ||
23 | useradd -p '' tss; \ | ||
24 | groupadd tss; \ | ||
25 | " | ||
26 | |||
27 | SYSTEMD_PACKAGES = "resourcemgr" | ||
28 | SYSTEMD_SERVICE_resourcemgr = "resourcemgr.service" | ||
29 | SYSTEMD_AUTO_ENABLE_resourcemgr = "enable" | ||
30 | |||
31 | do_patch[postfuncs] += "${@bb.utils.contains('VIRTUAL-RUNTIME_init_manager','systemd','fix_systemd_unit','', d)}" | ||
32 | fix_systemd_unit () { | ||
33 | sed -i -e 's;^ExecStart=.*/resourcemgr;ExecStart=${sbindir}/resourcemgr;' ${S}/contrib/resourcemgr.service | ||
34 | } | ||
35 | |||
36 | do_install_append() { | ||
37 | if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then | ||
38 | install -d ${D}${systemd_system_unitdir} | ||
39 | install -m0644 ${S}/contrib/resourcemgr.service ${D}${systemd_system_unitdir}/resourcemgr.service | ||
40 | fi | ||
41 | } | ||
42 | |||
43 | PROVIDES = "${PACKAGES}" | ||
44 | PACKAGES = " \ | ||
45 | ${PN} \ | ||
46 | ${PN}-dbg \ | ||
47 | ${PN}-doc \ | ||
48 | libtss2-mu \ | ||
49 | libtss2-mu-dev \ | ||
50 | libtss2-mu-staticdev \ | ||
51 | libtss2-tcti-device \ | ||
52 | libtss2-tcti-device-dev \ | ||
53 | libtss2-tcti-device-staticdev \ | ||
54 | libtss2-tcti-mssim \ | ||
55 | libtss2-tcti-mssim-dev \ | ||
56 | libtss2-tcti-mssim-staticdev \ | ||
57 | libtss2 \ | ||
58 | libtss2-dev \ | ||
59 | libtss2-staticdev \ | ||
60 | resourcemgr \ | ||
61 | " | ||
62 | |||
63 | FILES_libtss2-tcti-device = "${libdir}/libtss2-tcti-device.so.*" | ||
64 | FILES_libtss2-tcti-device-dev = " \ | ||
65 | ${includedir}/tss2/tss2_tcti_device.h \ | ||
66 | ${libdir}/pkgconfig/tss2-tcti-device.pc \ | ||
67 | ${libdir}/libtss2-tcti-device.so" | ||
68 | FILES_libtss2-tcti-device-staticdev = "${libdir}/libtss2-tcti-device.*a" | ||
69 | |||
70 | FILES_libtss2-tcti-mssim = "${libdir}/libtss2-tcti-mssim.so.*" | ||
71 | FILES_libtss2-tcti-mssim-dev = " \ | ||
72 | ${includedir}/tss2/tss2_tcti_mssim.h \ | ||
73 | ${libdir}/pkgconfig/tss2-tcti-mssim.pc \ | ||
74 | ${libdir}/libtss2-tcti-mssim.so" | ||
75 | FILES_libtss2-tcti-mssim-staticdev = "${libdir}/libtss2-tcti-mssim.*a" | ||
76 | |||
77 | FILES_libtss2-mu = "${libdir}/libtss2-mu.so.*" | ||
78 | FILES_libtss2-mu-dev = " \ | ||
79 | ${includedir}/tss2/tss2_mu.h \ | ||
80 | ${libdir}/pkgconfig/tss2-mu.pc \ | ||
81 | ${libdir}/libtss2-mu.so" | ||
82 | FILES_libtss2-mu-staticdev = "${libdir}/libtss2-mu.*a" | ||
83 | |||
84 | FILES_libtss2 = "${libdir}/libtss2*so.*" | ||
85 | FILES_libtss2-dev = " \ | ||
86 | ${includedir} \ | ||
87 | ${libdir}/pkgconfig \ | ||
88 | ${libdir}/libtss2*so" | ||
89 | FILES_libtss2-staticdev = "${libdir}/libtss*a" | ||
90 | |||
91 | FILES_${PN} = "${libdir}/udev" | ||
92 | |||
93 | FILES_resourcemgr = "${sbindir}/resourcemgr ${systemd_system_unitdir}/resourcemgr.service" | ||