diff options
author | Brian Yang <yang.brianc.w@inventec.com> | 2018-07-23 05:34:36 +0300 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-07-25 18:21:25 +0300 |
commit | 71b5d583099367dc437f4e26f6f43ac75ad0088d (patch) | |
tree | f42a4048ee05eded39cef5ea98502caa86722ff8 /meta-openbmc-machines | |
parent | 6eb0bfccdcf2ae5969c1cd5a0b44daa3cbb6e074 (diff) | |
download | openbmc-71b5d583099367dc437f4e26f6f43ac75ad0088d.tar.xz |
meta-lanyang: add LED recipe
Update LED Manager recipe to support Lanyang machine
Tested: Built the LED recipe then checked the LED behavior
on Lanyang
Change-Id: Ic6be977815897007e09ebc685f1e714be02c36c9
Signed-off-by: Brian Yang <yang.brianc.w@inventec.com>
Diffstat (limited to 'meta-openbmc-machines')
2 files changed, 49 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/meta-inventec/meta-lanyang/recipes-phosphor/leds/lanyang-led-manager-config-native.bb b/meta-openbmc-machines/meta-openpower/meta-inventec/meta-lanyang/recipes-phosphor/leds/lanyang-led-manager-config-native.bb new file mode 100644 index 0000000000..083002ebdc --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-inventec/meta-lanyang/recipes-phosphor/leds/lanyang-led-manager-config-native.bb @@ -0,0 +1,18 @@ +SUMMARY = "Phosphor LED Group Management for Lanyang" +PR = "r1" + +inherit native +inherit obmc-phosphor-license + +PROVIDES += "virtual/phosphor-led-manager-config-native" + +SRC_URI += "file://led.yaml" +S = "${WORKDIR}" + +# Overwrite the example led layout yaml file prior +# to building the phosphor-led-manager package +do_install() { + SRC=${S} + DEST=${D}${datadir}/phosphor-led-manager + install -D ${SRC}/led.yaml ${DEST}/led.yaml +} diff --git a/meta-openbmc-machines/meta-openpower/meta-inventec/meta-lanyang/recipes-phosphor/leds/lanyang-led-manager-config/led.yaml b/meta-openbmc-machines/meta-openpower/meta-inventec/meta-lanyang/recipes-phosphor/leds/lanyang-led-manager-config/led.yaml new file mode 100755 index 0000000000..5eb11f173f --- /dev/null +++ b/meta-openbmc-machines/meta-openpower/meta-inventec/meta-lanyang/recipes-phosphor/leds/lanyang-led-manager-config/led.yaml @@ -0,0 +1,31 @@ +bmc_booted: + sys_boot_status: + Action: 'Blink' + DutyOn: 50 + Period: 1000 + Priority: 'On' + +power_on: + sys_boot_status: + Action: 'On' + DutyOn: 50 + Period: 0 + Priority: 'On' + +enclosure_fault: + plt_fault: + Action: 'On' + +enclosure_identify: + attention: + Action: 'Blink' + DutyOn: 50 + Period: 1000 + +lamp_test: + plt_fault: + Action: 'Blink' + DutyOn: 50 + Period: 1000 + attention: + Action: 'On' |