blob: 12e0bc168bf6f3614d23e421ee28c8677339729a [file] [log] [blame]
Brad Bishop93fb5352015-09-09 03:59:20 +00001# Common code for Phosphor OpenBMC systemd services.
2
3inherit systemd
4
Patrick Williamsdaf879b2015-10-15 15:50:00 -05005SYSTEMD_SERVICE_${PN} = "${BPN}.service"
Brad Bishop93fb5352015-09-09 03:59:20 +00006SRC_URI += " \
Patrick Williamsdaf879b2015-10-15 15:50:00 -05007 file://${BPN}.service \
Brad Bishop93fb5352015-09-09 03:59:20 +00008 "
9
10do_install_append() {
11 # install systemd unit files
12 install -d ${D}${systemd_unitdir}/system
Patrick Williamsdaf879b2015-10-15 15:50:00 -050013 install -m 0644 ${WORKDIR}/${BPN}.service ${D}${systemd_unitdir}/system
Brad Bishop93fb5352015-09-09 03:59:20 +000014}