[PATCH openbmc 2/2] classes-systemd: Use PN rather than BPN
OpenBMC Patches
openbmc-patches at stwcx.xyz
Mon Jul 11 14:50:30 AEST 2016
From: Brad Bishop <bradleyb at fuzziesquirrel.com>
This is what all the classes that come with Yocto do.
Signed-off-by: Brad Bishop <bradleyb at fuzziesquirrel.com>
---
meta-phosphor/classes/obmc-phosphor-systemd.bbclass | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/meta-phosphor/classes/obmc-phosphor-systemd.bbclass b/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
index c94a74b..5d1204b 100644
--- a/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
@@ -12,26 +12,26 @@ inherit systemd
python() {
- bpn = d.getVar('BPN', True)
+ pn = d.getVar('PN', True)
searchpaths = d.getVar('FILESPATH', True)
- services = d.getVar('SYSTEMD_SERVICE_' + bpn, True)
+ services = d.getVar('SYSTEMD_SERVICE_' + pn, True)
if services:
services = services.split()
else:
- services = [bpn + '.service']
+ services = [pn + '.service']
for s in services:
file = s
path = bb.utils.which(searchpaths, file)
if os.path.isfile(path):
d.appendVar('SRC_URI', ' file://' + file)
- d.appendVar("FILES_%s" %(bpn), " %s/%s" \
+ d.appendVar("FILES_%s" %(pn), " %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)
+ if file not in (d.getVar('SYSTEMD_SERVICE_' + pn, True) or "").split():
+ d.appendVar('SYSTEMD_SERVICE_' + pn, ' ' + file)
else:
bb.error("Could not find service file: %s" % file)
}
--
2.9.0
More information about the openbmc
mailing list