summaryrefslogtreecommitdiffstats
path: root/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2015-10-15 15:50:00 -0500
committerPatrick Williams <patrick@stwcx.xyz>2015-10-15 16:27:45 -0500
commitdaf879bf428dfdec5d1e5a480370d9e9a0689194 (patch)
tree9af4cc0192830619381829c5fd79393a37e6ed6c /meta-phosphor/classes/obmc-phosphor-systemd.bbclass
parent40fc73b6fc034140964ac5f3d53b4eb236a524d9 (diff)
downloadtalos-openbmc-daf879bf428dfdec5d1e5a480370d9e9a0689194.tar.gz
talos-openbmc-daf879bf428dfdec5d1e5a480370d9e9a0689194.zip
-systemd.bbclass incorrect for nativesdk packages
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.
Diffstat (limited to 'meta-phosphor/classes/obmc-phosphor-systemd.bbclass')
-rw-r--r--meta-phosphor/classes/obmc-phosphor-systemd.bbclass6
1 files changed, 3 insertions, 3 deletions
diff --git a/meta-phosphor/classes/obmc-phosphor-systemd.bbclass b/meta-phosphor/classes/obmc-phosphor-systemd.bbclass
index 7bd2d9d74..12e0bc168 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
}
OpenPOWER on IntegriCloud