diff options
author | Potin Lai <potin.lai@quantatw.com> | 2022-09-01 09:12:25 +0300 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2022-10-24 20:18:42 +0300 |
commit | e096c416ec1dc83bd968dcba90ac7110b1323843 (patch) | |
tree | cdfd635a9337b442fe8d464d23cd48033be38ef0 /meta-facebook/meta-bletchley/recipes-phosphor | |
parent | effea7c651f1a0db0a4c8aeaddb545b7d34e0488 (diff) | |
download | openbmc-e096c416ec1dc83bd968dcba90ac7110b1323843.tar.xz |
meta-bletchley: introduce bletchley-system-state-init
Because Bletchley does not have IPMI between Bmc & Host, the Host init
state will set to Off after Bmc booted. We require an extra service to
check and set Host state & Chassis power state to correct state before
doing any power action or power policy restore.
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
Change-Id: I680bc62559ea6f7df6dbe171b54d2cda0c7ae0d4
Diffstat (limited to 'meta-facebook/meta-bletchley/recipes-phosphor')
2 files changed, 13 insertions, 0 deletions
diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/state/phosphor-state-manager/bletchley-system-state-init.conf b/meta-facebook/meta-bletchley/recipes-phosphor/state/phosphor-state-manager/bletchley-system-state-init.conf new file mode 100644 index 0000000000..5008bface7 --- /dev/null +++ b/meta-facebook/meta-bletchley/recipes-phosphor/state/phosphor-state-manager/bletchley-system-state-init.conf @@ -0,0 +1,3 @@ +[Unit] +Requires=bletchley-system-state-init@%i.service +After=bletchley-system-state-init@%i.service diff --git a/meta-facebook/meta-bletchley/recipes-phosphor/state/phosphor-state-manager_%.bbappend b/meta-facebook/meta-bletchley/recipes-phosphor/state/phosphor-state-manager_%.bbappend new file mode 100644 index 0000000000..2b533e1c06 --- /dev/null +++ b/meta-facebook/meta-bletchley/recipes-phosphor/state/phosphor-state-manager_%.bbappend @@ -0,0 +1,10 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}:" +RDEPENDS:${PN}-discover:append = " bletchley-common-tool" + +# Because Bletchley does not have IPMI between Bmc & Host, the Host init +# state will set to Off after Bmc booted. We require an extra service to +# check and set Host state & Chassis power state to correct state before +# doing any power action or power policy restore. + +BLETCHLEY_SYS_ST_INIT_CONF_FMT = "bletchley-system-state-init.conf:phosphor-discover-system-state@{0}.service.d/bletchley-system-state-init.conf" +SYSTEMD_OVERRIDE:${PN}-discover:bletchley += "${@compose_list_zip(d, 'BLETCHLEY_SYS_ST_INIT_CONF_FMT', 'OBMC_HOST_INSTANCES')}" |