From 62638c5a24977a26e8fecbdeda473b7a1ad7e276 Mon Sep 17 00:00:00 2001 From: Jia Zhang Date: Sat, 16 Jun 2018 04:35:55 -0400 Subject: tpm2-abrmd: Fix missing tpm2-abrmd.service The default value of --with-systemdsystemunitdir with the prefix "/usr" cannot be used to search tpm2-abrmd.service. In order to fix this issue, explicitly set --with-systemdsystemunitdir as before. In addition, place .perset to the dedicated system-preset directory. Signed-off-by: Jia Zhang --- meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd.inc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd.inc b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd.inc index a71a04b..037151e 100644 --- a/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd.inc +++ b/meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd.inc @@ -26,7 +26,13 @@ USERADD_PACKAGES = "${PN}" GROUPADD_PARAM_${PN} = "tss" USERADD_PARAM_${PN} = "--system -M -d /var/lib/tpm -s /bin/false -g tss tss" +EXTRA_OECONF += "\ + --with-systemdsystemunitdir=${systemd_system_unitdir} \ + --with-systemdpresetdir=${systemd_unitdir}/system-preset \ + --with-udevrulesdir=${sysconfdir}/udev/rules.d \ +" + FILES_${PN} += "\ - ${libdir}/systemd \ + ${systemd_unitdir}/system-preset \ ${datadir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service \ " -- cgit v1.2.3-54-g00ecf