[PATCH openbmc 2/4] -systemd.bbclass incorrect for nativesdk packages

OpenBMC Patches patches at stwcx.xyz
Fri Oct 16 08:53:59 AEDT 2015


From: Patrick Williams <patrick at stwcx.xyz>

We should use the 'bare' package name BPN instead of PN for finding the
service file.  Otherwise, a -nativesdk package cannot be created because
we get a file-not-found error on the service file.
---
 meta-phosphor/classes/obmc-phosphor-systemd.bbclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/meta-phosphor/classes/obmc-phosphor-systemd.bbclass b/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
index 7bd2d9d..12e0bc1 100644
--- a/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
+++ b/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
@@ -2,13 +2,13 @@
 
 inherit systemd
 
-SYSTEMD_SERVICE_${PN} = "${PN}.service"
+SYSTEMD_SERVICE_${PN} = "${BPN}.service"
 SRC_URI += " \
-        file://${PN}.service \
+        file://${BPN}.service \
         "
 
 do_install_append() {
         # install systemd unit files
         install -d ${D}${systemd_unitdir}/system
-        install -m 0644 ${WORKDIR}/${PN}.service ${D}${systemd_unitdir}/system
+        install -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_unitdir}/system
 }
-- 
2.6.0




More information about the openbmc mailing list