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
(From meta-openpower rev: 179b68f566e0cc88c4b93910e9a6ae3a38baa3ae)
Change-Id: I7eb4ef37343d518bb3757551605921322f7c8caf
Signed-off-by: Anthony Wilson <wilsonan@us.ibm.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
diff --git a/meta-openpower/recipes-phosphor/host/op-proc-control_git.bb b/meta-openpower/recipes-phosphor/host/op-proc-control_git.bb
index 36f4c7a..f786442 100644
--- a/meta-openpower/recipes-phosphor/host/op-proc-control_git.bb
+++ b/meta-openpower/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}"