diff options
author | Andrew Geissler <geissonator@yahoo.com> | 2023-06-09 21:34:42 +0300 |
---|---|---|
committer | Adriana Kobylak <anoo@linux.ibm.com> | 2023-06-20 22:36:54 +0300 |
commit | 16bb75ab834584553cdb2c06c0ce0394fe19e5bd (patch) | |
tree | 254774923bef90a0496d5a27d76cbb48dc6c2cd0 /meta-phosphor/recipes-phosphor/state | |
parent | 05f3b1b3683d0341ccfef633d08aa2f3a9fd8965 (diff) | |
download | openbmc-16bb75ab834584553cdb2c06c0ce0394fe19e5bd.tar.xz |
phosphor-state-manager: add PACKAGECONFIG options
Clearly define the optional features and their defaults within the PSM
repo.
Change-Id: Ibf466d9319b4176c816ef22c4cdbfd8cd693a90b
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-phosphor/recipes-phosphor/state')
-rw-r--r-- | meta-phosphor/recipes-phosphor/state/phosphor-state-manager_git.bb | 13 |
1 files changed, 13 insertions, 0 deletions
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 d129f4ada1..5643ee1aee 100644 --- a/meta-phosphor/recipes-phosphor/state/phosphor-state-manager_git.bb +++ b/meta-phosphor/recipes-phosphor/state/phosphor-state-manager_git.bb @@ -35,6 +35,19 @@ SYSTEMD_PACKAGES = "${PN}-discover \ ${PN}-systemd-target-monitor \ " +PACKAGECONFIG ??= "no-warm-reboot \ + only-run-apr-on-power-loss \ + only-boot-when-bmc-ready" + +# Disable warm reboots of host +PACKAGECONFIG[no-warm-reboot] = "-Dwarm-reboot=disabled,-Dwarm-reboot=enabled" + +# Only run auto power restore logic if system had ac loss +PACKAGECONFIG[only-run-apr-on-power-loss] = "-Donly-run-apr-on-power-loss=true,-Donly-run-apr-on-power-loss=false" + +# Only allow boot operations when BMC is in Ready state +PACKAGECONFIG[only-boot-when-bmc-ready] = "-Donly-allow-boot-when-bmc-ready=true,-Donly-allow-boot-when-bmc-ready=false" + # The host-check function will check if the host is running # after a BMC reset. # The reset-sensor-states function will reset the host |