obmc-phosphor-systemd: Substitute more variables
Change-Id: I7f60dc2419562712feb7239282cb042358534e96
Signed-off-by: William A. Kennington III <wak@google.com>
diff --git a/classes/obmc-phosphor-systemd.bbclass b/classes/obmc-phosphor-systemd.bbclass
index 9b4419b..830d039 100644
--- a/classes/obmc-phosphor-systemd.bbclass
+++ b/classes/obmc-phosphor-systemd.bbclass
@@ -130,8 +130,11 @@
'base_bindir',
'bindir',
'sbindir',
+ 'libexecdir',
'envfiledir',
'sysconfdir',
+ 'localstatedir',
+ 'datadir',
'SYSTEMD_DEFAULT_TARGET' ]:
set_append(d, 'SYSTEMD_SUBSTITUTIONS',
'%s:%s:%s' % (x, d.getVar(x, True), file))
@@ -336,6 +339,9 @@
sed -i -e 's,@BASE_BINDIR@,${base_bindir},g' \
-e 's,@BINDIR@,${bindir},g' \
-e 's,@SBINDIR@,${sbindir},g' \
+ -e 's,@LIBEXECDIR@,${libexecdir},g' \
+ -e 's,@LOCALSTATEDIR@,${localstatedir},g' \
+ -e 's,@DATADIR@,${datadir},g' \
${D}${systemd_system_unitdir}/$s
done
}