summaryrefslogtreecommitdiff
path: root/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
diff options
context:
space:
mode:
authorBrad Bishop <bradleyb@fuzziesquirrel.com>2016-08-17 22:58:26 +0300
committerPatrick Williams <patrick@stwcx.xyz>2016-09-06 14:13:38 +0300
commit58ab4a05b504a84f9d76a8b313bac813d5c050fc (patch)
tree053bf5f0e306b03f3f52ecea343dfcf301c9c556 /meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
parente306073ce2b779de139b943ca2e77ba888f2596e (diff)
downloadopenbmc-58ab4a05b504a84f9d76a8b313bac813d5c050fc.tar.xz
classes-systemd: refactor substitutions
The exising mechanism for doing substitutions worked but was cumbersome for expressing more than a handful. Rework the interfaces such that expressing many substitutions at once is simpler. Change-Id: I9ffee7a623219a797797cc8f085e7a06eaf74b3c Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass')
-rw-r--r--meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass b/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
index c5d50d002..ebe87af74 100644
--- a/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-dbus-service.bbclass
@@ -103,8 +103,8 @@ python() {
set_append(
d, 'SYSTEMD_SERVICE_%s' % pkg, '%s%s.service' % (
prefix, service))
- set_append(d, 'SYSTEMD_SUBSTITUTIONS_%s%s.service' % (prefix, service),
- 'BUSNAME:%s' % service)
+ set_append(d, 'SYSTEMD_SUBSTITUTIONS',
+ 'BUSNAME:%s:%s%s.service' % (service, prefix, service))
def add_sd_user(d, prefix, service, pkg):