diff options
author | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-03-27 12:06:58 +0300 |
---|---|---|
committer | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2017-03-31 09:41:51 +0300 |
commit | 95b315192f5220fe0e2d08c30ee373140394ed46 (patch) | |
tree | 8fd6f17d668bf36173ec4bcaf0b1aa0e0e754b18 /meta-phosphor/common/recipes-phosphor/leds | |
parent | b33f84c487cf49fa65ab06e5ccb34911adc45fac (diff) | |
download | openbmc-95b315192f5220fe0e2d08c30ee373140394ed46.tar.xz |
Define Generic LED groups for all the platforms
Regardless of the machine type, there needs to be standard set
of LED groups that would get asserted / de-asserted under these
conditions:
1) BMC booted
2) Power On
3) Power Off
This makes sense on hardwares that have physical LEDs.
However, QEMU does not have physical LEDs associated with the
groups but the groups themselves can be in asserted state so that
if physical LEDs are implemented in future, they can be used.
Change-Id: Iaa081e59a356670b9f713db11bd45dbda55a6bd4
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'meta-phosphor/common/recipes-phosphor/leds')
-rw-r--r-- | meta-phosphor/common/recipes-phosphor/leds/phosphor-led-manager.bb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/meta-phosphor/common/recipes-phosphor/leds/phosphor-led-manager.bb b/meta-phosphor/common/recipes-phosphor/leds/phosphor-led-manager.bb index 5ddc494220..7f24772210 100644 --- a/meta-phosphor/common/recipes-phosphor/leds/phosphor-led-manager.bb +++ b/meta-phosphor/common/recipes-phosphor/leds/phosphor-led-manager.bb @@ -20,4 +20,13 @@ S = "${WORKDIR}/git" DBUS_SERVICE_${PN} += "xyz.openbmc_project.LED.GroupManager.service" SYSTEMD_SERVICE_${PN} += "obmc-led-group-start@.service obmc-led-group-stop@.service" +SYSTEMD_LINK_${PN} += "../obmc-led-group-start@.service:${SYSTEMD_DEFAULT_TARGET}.wants/obmc-led-group-start@bmc_booted.service" + +STATES = "start stop" +TMPLFMT = "obmc-led-group-{0}@.service" +TGTFMT = "obmc-power-{0}@0.target" +INSTFMT = "obmc-led-group-{0}@power_on.service" +FMT = "../${TMPLFMT}:${TGTFMT}.wants/${INSTFMT}" +SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'STATES')}" + EXTRA_OECONF = "YAML_PATH=${STAGING_DATADIR_NATIVE}/${PN}" |