diff options
author | Andrew Geissler <geissonator@yahoo.com> | 2022-11-11 23:00:30 +0300 |
---|---|---|
committer | Andrew Geissler <andrew@geissonator.com> | 2022-11-28 21:20:11 +0300 |
commit | b5138ed3b10678b7b50a7da888f98dfbe3fec496 (patch) | |
tree | 93f17ab1783e2597ee8ffeb9acd96ad30540f01a /meta-phosphor/recipes-phosphor/state | |
parent | cba505a2e686ef67aa8ce0b2f73a200dfddcf85c (diff) | |
download | openbmc-b5138ed3b10678b7b50a7da888f98dfbe3fec496.tar.xz |
move generic chassis services into phosphor-state-manager
Move the generic services which are used to power on and off the chassis
into phosphor-state-manager. This will make the use of
phosphor-state-manager for chassis power control more straightforward.
The following email has more details on this change:
https://lists.ozlabs.org/pipermail/openbmc/2022-November/032457.html
phosphor-state-manager: srcrev bump eab2ea348d..69a250dd45
Andrew Geissler (2):
move chassis power services to phosphor-state-manager
improve new chassis power services
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I14fce315107cafacb0500d8664e51d9f61f7864d
Diffstat (limited to 'meta-phosphor/recipes-phosphor/state')
-rw-r--r-- | meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc | 5 | ||||
-rw-r--r-- | meta-phosphor/recipes-phosphor/state/phosphor-state-manager_git.bb | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc b/meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc index 2a5bfda50f..ab1dab5f07 100644 --- a/meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc +++ b/meta-phosphor/recipes-phosphor/state/phosphor-state-manager-systemd-links.inc @@ -2,6 +2,9 @@ DEFAULT_TARGETS = " \ multi-user.target.requires/obmc-host-reset@{}.target \ multi-user.target.wants/phosphor-discover-system-state@{}.service \ obmc-chassis-poweron@{}.target.wants/phosphor-reset-host-recovery@{}.service \ + obmc-chassis-poweron@{}.target.requires/obmc-power-start@{}.service \ + obmc-chassis-poweroff@{}.target.requires/obmc-power-stop@{}.service \ + obmc-chassis-poweroff@{}.target.requires/obmc-powered-off@{}.service \ obmc-host-start@{}.target.requires/obmc-host-startmin@{}.target \ obmc-host-start@{}.target.requires/phosphor-reset-host-reboot-attempts@{}.service \ obmc-host-startmin@{}.target.wants/phosphor-set-host-transition-to-running@{}.service \ @@ -20,6 +23,8 @@ DEFAULT_TARGETS = " \ obmc-host-warm-reboot@{}.target.requires/obmc-host-force-warm-reboot@{}.target \ obmc-chassis-poweroff@{}.target.wants/phosphor-clear-one-time@{}.service \ obmc-chassis-blackout@{}.target.wants/phosphor-reset-sensor-states@{}.service \ + obmc-chassis-powerreset@{}.target.requires/obmc-reset-chassis-on@{}.service \ + obmc-chassis-powerreset@{}.target.requires/obmc-reset-chassis-running@{}.service \ " # TODO: There are some targets that are chassis oriented, but there is no diff --git a/meta-phosphor/recipes-phosphor/state/phosphor-state-manager_git.bb b/meta-phosphor/recipes-phosphor/state/phosphor-state-manager_git.bb index f6b7a76326..0b993610f0 100644 --- a/meta-phosphor/recipes-phosphor/state/phosphor-state-manager_git.bb +++ b/meta-phosphor/recipes-phosphor/state/phosphor-state-manager_git.bb @@ -74,6 +74,11 @@ SYSTEMD_SERVICE:${PN}-host += "phosphor-set-host-transition-to-off@.service" FILES:${PN}-chassis = "${bindir}/phosphor-chassis-state-manager" DBUS_SERVICE:${PN}-chassis += "xyz.openbmc_project.State.Chassis@.service" +SYSTEMD_SERVICE:${PN}-chassis += "obmc-power-start@.service" +SYSTEMD_SERVICE:${PN}-chassis += "obmc-power-stop@.service" +SYSTEMD_SERVICE:${PN}-chassis += "obmc-powered-off@.service" +SYSTEMD_SERVICE:${PN}-chassis += "phosphor-reset-chassis-on@.service" +SYSTEMD_SERVICE:${PN}-chassis += "phosphor-reset-chassis-running@.service" FILES:${PN}-chassis += "${bindir}/obmcutil" @@ -201,6 +206,6 @@ SYSTEMD_LINK:${PN}-obmc-targets += "${@compose_list(d, 'QUIESCE_FMT', 'HOST_ERRO SRC_URI += "git://github.com/openbmc/phosphor-state-manager;branch=master;protocol=https" -SRCREV = "eab2ea348d0a2a1b444b6a2c3c4814f277db9870" +SRCREV = "69a250dd4504c53449bb5136435fddbc168edd1c" S = "${WORKDIR}/git" |