[PATCH openbmc v2 1/2] classes-systemd: Fix FILES_${PN} path bug
OpenBMC Patches
openbmc-patches at stwcx.xyz
Tue Jul 12 02:20:31 AEST 2016
From: Brad Bishop <bradleyb at fuzziesquirrel.com>
Missing space and path sep in the generated path.
Signed-off-by: Brad Bishop <bradleyb at fuzziesquirrel.com>
---
meta-phosphor/classes/obmc-phosphor-systemd.bbclass | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/meta-phosphor/classes/obmc-phosphor-systemd.bbclass b/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
index b07174f..c94a74b 100644
--- a/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
@@ -27,9 +27,8 @@ python() {
path = bb.utils.which(searchpaths, file)
if os.path.isfile(path):
d.appendVar('SRC_URI', ' file://' + file)
- d.appendVar(
- 'FILES_' + bpn, ' ' +
- d.getVar('systemd_system_unitdir', True) + file)
+ d.appendVar("FILES_%s" %(bpn), " %s/%s" \
+ % (d.getVar('systemd_system_unitdir', True), file))
d.appendVar('OBMC_SYSTEMD_SERVICES', ' ' + file)
if file not in (d.getVar('SYSTEMD_SERVICE_' + bpn, True) or "").split():
d.appendVar('SYSTEMD_SERVICE_' + bpn, ' ' + file)
--
2.9.0
More information about the openbmc
mailing list