diff options
author | Jia Zhang <zhang.jia@linux.alibaba.com> | 2018-06-16 04:35:55 -0400 |
---|---|---|
committer | Jia Zhang <zhang.jia@linux.alibaba.com> | 2018-06-16 04:35:55 -0400 |
commit | 62638c5a24977a26e8fecbdeda473b7a1ad7e276 (patch) | |
tree | 3f09857f35a9c956abad37821596711db2fc9469 | |
parent | 23d074cba75435ca99cd135ba97d94aaab8c4367 (diff) | |
download | meta-secure-core-62638c5a24977a26e8fecbdeda473b7a1ad7e276.tar.gz |
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>
-rw-r--r-- | meta-tpm2/recipes-tpm/tpm2-abrmd/tpm2-abrmd.inc | 8 |
1 files changed, 7 insertions, 1 deletions
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}" | |||
26 | GROUPADD_PARAM_${PN} = "tss" | 26 | GROUPADD_PARAM_${PN} = "tss" |
27 | USERADD_PARAM_${PN} = "--system -M -d /var/lib/tpm -s /bin/false -g tss tss" | 27 | USERADD_PARAM_${PN} = "--system -M -d /var/lib/tpm -s /bin/false -g tss tss" |
28 | 28 | ||
29 | EXTRA_OECONF += "\ | ||
30 | --with-systemdsystemunitdir=${systemd_system_unitdir} \ | ||
31 | --with-systemdpresetdir=${systemd_unitdir}/system-preset \ | ||
32 | --with-udevrulesdir=${sysconfdir}/udev/rules.d \ | ||
33 | " | ||
34 | |||
29 | FILES_${PN} += "\ | 35 | FILES_${PN} += "\ |
30 | ${libdir}/systemd \ | 36 | ${systemd_unitdir}/system-preset \ |
31 | ${datadir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service \ | 37 | ${datadir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service \ |
32 | " | 38 | " |