mirror of
https://git.yoctoproject.org/meta-security
synced 2026-06-02 01:20:29 +00:00
tpm2.0-tss: update to 1.3.0
change recipe to PV style Signed-off-by: Armin Kuster <akuster808@gmail.com>
This commit is contained in:
+9
-6
@@ -6,16 +6,16 @@ SECTION = "tpm"
|
|||||||
|
|
||||||
DEPENDS = "autoconf-archive pkgconfig"
|
DEPENDS = "autoconf-archive pkgconfig"
|
||||||
|
|
||||||
SRCREV = "30794affab01598bbacfe1f167be7c068a0c0476"
|
SRCREV = "b1d9ece8c6bea2e3043943b2edfaebcdca330c38"
|
||||||
|
|
||||||
SRC_URI = " \
|
SRC_URI = " \
|
||||||
git://github.com/01org/TPM2.0-TSS.git;protocol=git;branch=master;name=TPM2.0-TSS;destsuffix=TPM2.0-TSS \
|
git://github.com/tpm2-software/tpm2-tss.git;branch=1.x \
|
||||||
file://ax_pthread.m4 \
|
file://ax_pthread.m4 \
|
||||||
"
|
"
|
||||||
|
|
||||||
inherit autotools pkgconfig systemd
|
inherit autotools pkgconfig systemd
|
||||||
|
|
||||||
S = "${WORKDIR}/${@d.getVar('BPN',d).upper()}"
|
S = "${WORKDIR}/git"
|
||||||
|
|
||||||
do_configure_prepend () {
|
do_configure_prepend () {
|
||||||
mkdir -p ${S}/m4
|
mkdir -p ${S}/m4
|
||||||
@@ -37,19 +37,22 @@ SYSTEMD_PACKAGES = "resourcemgr"
|
|||||||
SYSTEMD_SERVICE_resourcemgr = "resourcemgr.service"
|
SYSTEMD_SERVICE_resourcemgr = "resourcemgr.service"
|
||||||
SYSTEMD_AUTO_ENABLE_resourcemgr = "enable"
|
SYSTEMD_AUTO_ENABLE_resourcemgr = "enable"
|
||||||
|
|
||||||
do_patch[postfuncs] += "fix_systemd_unit"
|
do_patch[postfuncs] += "${@bb.utils.contains('VIRTUAL-RUNTIME_init_manager','systemd','fix_systemd_unit','', d)}"
|
||||||
fix_systemd_unit () {
|
fix_systemd_unit () {
|
||||||
sed -i -e 's;^ExecStart=.*/resourcemgr;ExecStart=${sbindir}/resourcemgr;' ${S}/contrib/resourcemgr.service
|
sed -i -e 's;^ExecStart=.*/resourcemgr;ExecStart=${sbindir}/resourcemgr;' ${S}/contrib/resourcemgr.service
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install_append() {
|
do_install_append() {
|
||||||
install -d ${D}${systemd_system_unitdir}
|
if ${@bb.utils.contains('DISTRO_FEATURES','systemd','true','false',d)}; then
|
||||||
install -m0644 ${S}/contrib/resourcemgr.service ${D}${systemd_system_unitdir}/resourcemgr.service
|
install -d ${D}${systemd_system_unitdir}
|
||||||
|
install -m0644 ${S}/contrib/resourcemgr.service ${D}${systemd_system_unitdir}/resourcemgr.service
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
PROVIDES = "${PACKAGES}"
|
PROVIDES = "${PACKAGES}"
|
||||||
PACKAGES = " \
|
PACKAGES = " \
|
||||||
${PN}-dbg \
|
${PN}-dbg \
|
||||||
|
${PN}-doc \
|
||||||
libtss2 \
|
libtss2 \
|
||||||
libtss2-dev \
|
libtss2-dev \
|
||||||
libtss2-staticdev \
|
libtss2-staticdev \
|
||||||
Reference in New Issue
Block a user