diff options
Diffstat (limited to 'meta-phosphor/common/recipes-core/systemd/obmc-targets.bb')
-rw-r--r-- | meta-phosphor/common/recipes-core/systemd/obmc-targets.bb | 68 |
1 files changed, 23 insertions, 45 deletions
diff --git a/meta-phosphor/common/recipes-core/systemd/obmc-targets.bb b/meta-phosphor/common/recipes-core/systemd/obmc-targets.bb index 265ea1e30..cf8cb02b8 100644 --- a/meta-phosphor/common/recipes-core/systemd/obmc-targets.bb +++ b/meta-phosphor/common/recipes-core/systemd/obmc-targets.bb @@ -7,60 +7,44 @@ inherit obmc-phosphor-systemd inherit obmc-phosphor-license inherit allarch -# Overall chassis and host control -# - start: Services to run to start the host -# - stop: Services to run to stop the host -CHASSIS_TARGETS = "start stop" - -# Synchronization targets +# Chassis power synchronization targets # - start-pre: Services to run before we start power on process # - start: Services to run to do the chassis power on # - on: Services to run once power is on # - stop-pre,stop,off: Same as above but applied to powering off # - reset-on: Services to check if chassis power is on after bmc reset -SYNCH_POWER_TARGETS = "start-pre start on stop-pre stop off reset-on" +CHASSIS_SYNCH_TARGETS = "start-pre start on stop-pre stop off reset-on" -# Control chassis power +# Chassis action power targets # - on: Services to run to power on the chassis # - off: Services to run to power off the chassis -CHASSIS_POWER_TARGETS = "on off" - -#TODO - After target renames #1205, combine this with CHASSIS_POWER_TARGETS # - reset: Services to check chassis power state and update chassis "on" target -CHASSIS_POWER_TARGETS_2 = "reset" +CHASSIS_ACTION_TARGETS = "on off reset" # Track all host synchronization point targets -# - start-pre: Services to run before we start host boot -# - start: Services to run to do the host boot -# - started: Services to run once the host is booted -# - stop-pre,stop,stopped: Same as above but applied to shutting down the host -# - reset-running: Services to check if host is running after bmc reset -HOST_SYNCH_TARGETS = "start-pre start started stop-pre stop stopped reset-running" +# - start-pre: Services to run before we start host boot +# - starting: Services to run to do the host boot +# - started: Services to run once the host is booted +# - stop-pre,stopping,stopped: Same as above but applied to shutting down the host +# - reset-running: Services to check if host is running after bmc reset +HOST_SYNCH_TARGETS = "start-pre starting started stop-pre stopping stopped reset-running" # Track all host action targets +# - start: Service to run to start the host # - stop: Services to run to shutdown the host # - quiesce: Target to enter on host boot failure -HOST_ACTION_TARGETS = "stop quiesce" - -# TODO: openbmc/openbmc#1205 - Move this to standard host action targets -# - reset: Check host state and update host "start" target if host running -HOST_ACTION_TARGETS_2 = "reset" +# - reset: Services to check if host is running and update host "start" target +HOST_ACTION_TARGETS = "start stop quiesce reset" -CHASSIS_FMT = "obmc-chassis-{0}@.target" -SYNCH_POWER_FMT = "obmc-power-{0}@.target" -CHASSIS_POWER_FMT = "obmc-chassis-power{0}@.target" -CHASSIS_POWER_FMT_2 = "obmc-chassis-{0}@.target" +CHASSIS_SYNCH_FMT = "obmc-power-{0}@.target" +CHASSIS_ACTION_FMT = "obmc-chassis-power{0}@.target" HOST_SYNCH_FMT = "obmc-host-{0}@.target" -HOST_ACTION_FMT = "obmc-{0}-host@.target" -HOST_ACTION_FMT_2 = "obmc-host-{0}@.target" +HOST_ACTION_FMT = "obmc-host-{0}@.target" -CHASSIS_LINK_FMT = "${CHASSIS_FMT}:obmc-chassis-{0}@{1}.target" -SYNCH_POWER_LINK_FMT = "${SYNCH_POWER_FMT}:obmc-power-{0}@{1}.target" -CHASSIS_POWER_LINK_FMT = "${CHASSIS_POWER_FMT}:obmc-chassis-power{0}@{1}.target" -CHASSIS_POWER_LINK_FMT_2 = "${CHASSIS_POWER_FMT_2}:obmc-chassis-{0}@{1}.target" +CHASSIS_LINK_SYNCH_FMT = "${CHASSIS_SYNCH_FMT}:obmc-power-{0}@{1}.target" +CHASSIS_LINK_ACTION_FMT = "${CHASSIS_ACTION_FMT}:obmc-chassis-power{0}@{1}.target" HOST_LINK_SYNCH_FMT = "${HOST_SYNCH_FMT}:obmc-host-{0}@{1}.target" -HOST_LINK_ACTION_FMT = "${HOST_ACTION_FMT}:obmc-{0}-host@{1}.target" -HOST_LINK_ACTION_FMT_2 = "${HOST_ACTION_FMT_2}:obmc-host-{0}@{1}.target" +HOST_LINK_ACTION_FMT = "${HOST_ACTION_FMT}:obmc-host-{0}@{1}.target" SYSTEMD_SERVICE_${PN} += " \ obmc-mapper.target \ @@ -70,18 +54,12 @@ SYSTEMD_SERVICE_${PN} += " \ obmc-standby.target \ " -SYSTEMD_SERVICE_${PN} += "${@compose_list(d, 'CHASSIS_FMT', 'CHASSIS_TARGETS')}" -SYSTEMD_SERVICE_${PN} += "${@compose_list(d, 'SYNCH_POWER_FMT', 'SYNCH_POWER_TARGETS')}" -SYSTEMD_SERVICE_${PN} += "${@compose_list(d, 'CHASSIS_POWER_FMT', 'CHASSIS_POWER_TARGETS')}" -SYSTEMD_SERVICE_${PN} += "${@compose_list(d, 'CHASSIS_POWER_FMT_2', 'CHASSIS_POWER_TARGETS_2')}" +SYSTEMD_SERVICE_${PN} += "${@compose_list(d, 'CHASSIS_SYNCH_FMT', 'CHASSIS_SYNCH_TARGETS')}" +SYSTEMD_SERVICE_${PN} += "${@compose_list(d, 'CHASSIS_ACTION_FMT', 'CHASSIS_ACTION_TARGETS')}" SYSTEMD_SERVICE_${PN} += "${@compose_list(d, 'HOST_SYNCH_FMT', 'HOST_SYNCH_TARGETS')}" SYSTEMD_SERVICE_${PN} += "${@compose_list(d, 'HOST_ACTION_FMT', 'HOST_ACTION_TARGETS')}" -SYSTEMD_SERVICE_${PN} += "${@compose_list(d, 'HOST_ACTION_FMT_2', 'HOST_ACTION_TARGETS_2')}" -SYSTEMD_LINK_${PN} += "${@compose_list(d, 'CHASSIS_LINK_FMT', 'CHASSIS_TARGETS', 'OBMC_CHASSIS_INSTANCES')}" -SYSTEMD_LINK_${PN} += "${@compose_list(d, 'SYNCH_POWER_LINK_FMT', 'SYNCH_POWER_TARGETS', 'OBMC_POWER_INSTANCES')}" -SYSTEMD_LINK_${PN} += "${@compose_list(d, 'CHASSIS_POWER_LINK_FMT', 'CHASSIS_POWER_TARGETS', 'OBMC_CHASSIS_INSTANCES')}" -SYSTEMD_LINK_${PN} += "${@compose_list(d, 'CHASSIS_POWER_LINK_FMT_2', 'CHASSIS_POWER_TARGETS_2', 'OBMC_CHASSIS_INSTANCES')}" +SYSTEMD_LINK_${PN} += "${@compose_list(d, 'CHASSIS_LINK_SYNCH_FMT', 'CHASSIS_SYNCH_TARGETS', 'OBMC_CHASSIS_INSTANCES')}" +SYSTEMD_LINK_${PN} += "${@compose_list(d, 'CHASSIS_LINK_ACTION_FMT', 'CHASSIS_ACTION_TARGETS', 'OBMC_CHASSIS_INSTANCES')}" SYSTEMD_LINK_${PN} += "${@compose_list(d, 'HOST_LINK_SYNCH_FMT', 'HOST_SYNCH_TARGETS', 'OBMC_HOST_INSTANCES')}" SYSTEMD_LINK_${PN} += "${@compose_list(d, 'HOST_LINK_ACTION_FMT', 'HOST_ACTION_TARGETS', 'OBMC_HOST_INSTANCES')}" -SYSTEMD_LINK_${PN} += "${@compose_list(d, 'HOST_LINK_ACTION_FMT_2', 'HOST_ACTION_TARGETS_2', 'OBMC_HOST_INSTANCES')}" |