phal: Enabled service to reinit CEC device tree
The POWER CEC system device tree need reinitialize before doing
normal ipl to mark required targets as functional for ipling.
The service file is added in below patch.
https://gerrit.openbmc-project.xyz/c/openbmc/openpower-proc-control/+/36577
Signed-off-by: Ramesh Iyyar <rameshi1@in.ibm.com>
Change-Id: I72c7dd50eeb94099e540f1e1db187045123eb56d
diff --git a/recipes-phosphor/host/op-proc-control-systemd-links.bb b/recipes-phosphor/host/op-proc-control-systemd-links.bb
index 9cb75f3..521ff02 100644
--- a/recipes-phosphor/host/op-proc-control-systemd-links.bb
+++ b/recipes-phosphor/host/op-proc-control-systemd-links.bb
@@ -45,6 +45,14 @@
LINK="$D$systemd_system_unitdir/obmc-host-diagnostic-mode@0.target.requires/op-enter-mpreboot@0.service"
TARGET="../op-enter-mpreboot@.service"
ln -s $TARGET $LINK
+
+ # Only install phal reinit service if phal enabled
+ if [ "${@bb.utils.filter('OBMC_MACHINE_FEATURES', 'phal', d)}" = phal ]; then
+ mkdir -p $D$systemd_system_unitdir/obmc-host-start@0.target.requires
+ LINK="$D$systemd_system_unitdir/obmc-host-start@0.target.requires/phal-reinit-devtree.service"
+ TARGET="../phal-reinit-devtree.service"
+ ln -s $TARGET $LINK
+ fi
}
pkg_prerm_${PN}() {
@@ -63,4 +71,10 @@
rm $LINK
LINK="$D$systemd_system_unitdir/obmc-host-diagnostic-mode@0.target.requires/op-enter-mpreboot@0.service"
rm $LINK
+
+ # Only phal reinit service if phal enabled
+ if [ "${@bb.utils.filter('OBMC_MACHINE_FEATURES', 'phal', d)}" = phal ]; then
+ LINK="$D$systemd_system_unitdir/obmc-host-start@0.target.requires/phal-reinit-devtree.service"
+ rm $LINK
+ fi
}
diff --git a/recipes-phosphor/host/op-proc-control_git.bb b/recipes-phosphor/host/op-proc-control_git.bb
index f197c39..1ca607b 100644
--- a/recipes-phosphor/host/op-proc-control_git.bb
+++ b/recipes-phosphor/host/op-proc-control_git.bb
@@ -11,7 +11,7 @@
inherit systemd
SRC_URI += "git://github.com/openbmc/openpower-proc-control"
-SRCREV = "e62ca93360e34b4e59ab57b0c0b46221dec61cab"
+SRCREV = "b20593f88b7cb88844363f8475669dad16e88afb"
DEPENDS += " \
autoconf-archive-native \
@@ -36,4 +36,5 @@
${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'phal', 'set-spi-mux.service', '', d)} \
op-continue-mpreboot@.service \
op-enter-mpreboot@.service \
+ ${@bb.utils.contains('OBMC_MACHINE_FEATURES', 'phal', 'phal-reinit-devtree.service', '', d)} \
"