summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArmin Kuster <akuster808@gmail.com>2018-02-05 17:47:38 +0530
committerArmin Kuster <akuster808@gmail.com>2018-02-14 11:56:35 -0800
commita5400486f50de27e348c263a04c15be1b6e08b51 (patch)
treec13d6f28229542edf488c34deab733455ae00cc0
parent22976cccb7254f282029973e0f0aff6d64357ef4 (diff)
downloadmeta-security-a5400486f50de27e348c263a04c15be1b6e08b51.tar.gz
tpm2.0-tss: update to 1.3.0
change recipe to PV style Signed-off-by: Armin Kuster <akuster808@gmail.com>
-rw-r--r--meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_1.3.0.bb (renamed from meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_git.bb)15
1 files changed, 9 insertions, 6 deletions
diff --git a/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_git.bb b/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_1.3.0.bb
index fd5ace8..b673c2b 100644
--- a/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_git.bb
+++ b/meta-tpm/recipes-tpm/tpm2.0-tss/tpm2.0-tss_1.3.0.bb
@@ -6,16 +6,16 @@ SECTION = "tpm"
6 6
7DEPENDS = "autoconf-archive pkgconfig" 7DEPENDS = "autoconf-archive pkgconfig"
8 8
9SRCREV = "30794affab01598bbacfe1f167be7c068a0c0476" 9SRCREV = "b1d9ece8c6bea2e3043943b2edfaebcdca330c38"
10 10
11SRC_URI = " \ 11SRC_URI = " \
12 git://github.com/01org/TPM2.0-TSS.git;protocol=git;branch=master;name=TPM2.0-TSS;destsuffix=TPM2.0-TSS \ 12 git://github.com/tpm2-software/tpm2-tss.git;branch=1.x \
13 file://ax_pthread.m4 \ 13 file://ax_pthread.m4 \
14" 14"
15 15
16inherit autotools pkgconfig systemd 16inherit autotools pkgconfig systemd
17 17
18S = "${WORKDIR}/${@d.getVar('BPN',d).upper()}" 18S = "${WORKDIR}/git"
19 19
20do_configure_prepend () { 20do_configure_prepend () {
21 mkdir -p ${S}/m4 21 mkdir -p ${S}/m4
@@ -37,19 +37,22 @@ SYSTEMD_PACKAGES = "resourcemgr"
37SYSTEMD_SERVICE_resourcemgr = "resourcemgr.service" 37SYSTEMD_SERVICE_resourcemgr = "resourcemgr.service"
38SYSTEMD_AUTO_ENABLE_resourcemgr = "enable" 38SYSTEMD_AUTO_ENABLE_resourcemgr = "enable"
39 39
40do_patch[postfuncs] += "fix_systemd_unit" 40do_patch[postfuncs] += "${@bb.utils.contains('VIRTUAL-RUNTIME_init_manager','systemd','fix_systemd_unit','', d)}"
41fix_systemd_unit () { 41fix_systemd_unit () {
42 sed -i -e 's;^ExecStart=.*/resourcemgr;ExecStart=${sbindir}/resourcemgr;' ${S}/contrib/resourcemgr.service 42 sed -i -e 's;^ExecStart=.*/resourcemgr;ExecStart=${sbindir}/resourcemgr;' ${S}/contrib/resourcemgr.service
43} 43}
44 44
45do_install_append() { 45do_install_append() {
46 install -d ${D}${systemd_system_unitdir} 46 if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
47 install -m0644 ${S}/contrib/resourcemgr.service ${D}${systemd_system_unitdir}/resourcemgr.service 47 install -d ${D}${systemd_system_unitdir}
48 install -m0644 ${S}/contrib/resourcemgr.service ${D}${systemd_system_unitdir}/resourcemgr.service
49 fi
48} 50}
49 51
50PROVIDES = "${PACKAGES}" 52PROVIDES = "${PACKAGES}"
51PACKAGES = " \ 53PACKAGES = " \
52 ${PN}-dbg \ 54 ${PN}-dbg \
55 ${PN}-doc \
53 libtss2 \ 56 libtss2 \
54 libtss2-dev \ 57 libtss2-dev \
55 libtss2-staticdev \ 58 libtss2-staticdev \