Update recipe to include pcie-poweroff service
Updated recipe to incorporate service file added in [1].
These changes add a p9 PCIE poweroff workaround in
openpower-proc-control. The new services will use this
workaround before cutting power during a chassisoff.
[1] https://gerrit.openbmc-project.xyz/#/c/openbmc/openpower-proc-control/+/15192
Change-Id: I6c62a421bceda29ac264fd92cccac03635757898
Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
diff --git a/recipes-phosphor/host/op-proc-control_git.bb b/recipes-phosphor/host/op-proc-control_git.bb
index 36f4c7a..f786442 100644
--- a/recipes-phosphor/host/op-proc-control_git.bb
+++ b/recipes-phosphor/host/op-proc-control_git.bb
@@ -7,10 +7,11 @@
S = "${WORKDIR}/git"
-inherit autotools pkgconfig pythonnative
+inherit autotools obmc-phosphor-utils pkgconfig pythonnative
+inherit systemd
SRC_URI += "git://github.com/openbmc/openpower-proc-control"
-SRCREV = "5970484133ac208bd3675697ac120901ea6654a7"
+SRCREV = "171fbdf683976ee54d1aa13745523b355d751ff5"
DEPENDS += " \
autoconf-archive-native \
@@ -24,3 +25,9 @@
phosphor-dbus-interfaces \
openpower-dbus-interfaces \
"
+
+TEMPLATE = "pcie-poweroff@.service"
+INSTANCE_FORMAT = "pcie-poweroff@{}.service"
+INSTANCES = "${@compose_list(d, 'INSTANCE_FORMAT', 'OBMC_CHASSIS_INSTANCES')}"
+SYSTEMD_PACKAGES = "${PN}"
+SYSTEMD_SERVICE_${PN} = "${TEMPLATE} ${INSTANCES}"