diff options
author | Andrew Geissler <andrewg@us.ibm.com> | 2017-01-23 14:40:26 -0600 |
---|---|---|
committer | Patrick Williams <patrick@stwcx.xyz> | 2017-02-01 19:45:01 +0000 |
commit | d8819ed2b4e26342691b48709811035dfa1eaba2 (patch) | |
tree | 62be24720c82967719ca7d2d27a147b655a53078 /meta-phosphor/common/recipes-core | |
parent | 3969c0c32ca24af6d3608e90aeee6d04636772c2 (diff) | |
download | talos-openbmc-d8819ed2b4e26342691b48709811035dfa1eaba2.tar.gz talos-openbmc-d8819ed2b4e26342691b48709811035dfa1eaba2.zip |
Move chassis power on/off services into new targets
Change-Id: I42049c092e4a852b94b6d3f96b9dea3884c21333
Signed-off-by: Andrew Geissler <andrewg@us.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-core')
-rw-r--r-- | meta-phosphor/common/recipes-core/systemd/obmc-targets.bb | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/meta-phosphor/common/recipes-core/systemd/obmc-targets.bb b/meta-phosphor/common/recipes-core/systemd/obmc-targets.bb index bbafa3dae..4317037ed 100644 --- a/meta-phosphor/common/recipes-core/systemd/obmc-targets.bb +++ b/meta-phosphor/common/recipes-core/systemd/obmc-targets.bb @@ -7,20 +7,26 @@ inherit obmc-phosphor-systemd inherit obmc-phosphor-license inherit allarch +# Overall chassis and host control CHASSIS_TARGETS = "start stop" -POWER_TARGETS = "start-pre start on stop-pre stop off" +# Synchronization targets +SYNCH_POWER_TARGETS = "start-pre start on stop-pre stop off" +# Control chassis power +CHASSIS_POWER_TARGETS = "on off" # Track all host synchronization point target HOST_SYNCH_TARGETS = "start-pre start started stop-pre stop stopped" # Track all host action targets HOST_ACTION_TARGETS = "stop" CHASSIS_FMT = "obmc-chassis-{0}@.target" -POWER_FMT = "obmc-power-{0}@.target" +SYNCH_POWER_FMT = "obmc-power-{0}@.target" +CHASSIS_POWER_FMT = "obmc-power-chassis-{0}@.target" HOST_SYNCH_FMT = "obmc-host-{0}@.target" HOST_ACTION_FMT = "obmc-{0}-host@.target" CHASSIS_LINK_FMT = "${CHASSIS_FMT}:obmc-chassis-{0}@{1}.target" -POWER_LINK_FMT = "${POWER_FMT}:obmc-power-{0}@{1}.target" +SYNCH_POWER_LINK_FMT = "${SYNCH_POWER_FMT}:obmc-power-{0}@{1}.target" +CHASSIS_POWER_LINK_FMT = "${CHASSIS_POWER_FMT}:obmc-power-chassis-{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" @@ -33,11 +39,13 @@ SYSTEMD_SERVICE_${PN} += " \ " SYSTEMD_SERVICE_${PN} += "${@compose_list(d, 'CHASSIS_FMT', 'CHASSIS_TARGETS')}" -SYSTEMD_SERVICE_${PN} += "${@compose_list(d, 'POWER_FMT', 'POWER_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, 'HOST_SYNCH_FMT', 'HOST_SYNCH_TARGETS')}" SYSTEMD_SERVICE_${PN} += "${@compose_list(d, 'HOST_ACTION_FMT', 'HOST_ACTION_TARGETS')}" SYSTEMD_LINK_${PN} += "${@compose_list(d, 'CHASSIS_LINK_FMT', 'CHASSIS_TARGETS', 'OBMC_CHASSIS_INSTANCES')}" -SYSTEMD_LINK_${PN} += "${@compose_list(d, 'POWER_LINK_FMT', 'POWER_TARGETS', 'OBMC_POWER_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, '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')}" |