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 <zhang.jia@linux.alibaba.com>
This commit is contained in:
Jia Zhang
2018-06-16 04:35:55 -04:00
parent 23d074cba7
commit 62638c5a24

View File

@@ -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 \
"