diff options
author | Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> | 2020-05-27 12:40:53 +0300 |
---|---|---|
committer | Andrew Geissler <geissonator@yahoo.com> | 2020-06-02 00:07:22 +0300 |
commit | 3c7395203bde21c6ad5d726d55403de183ed51f8 (patch) | |
tree | 17ebc77a253d51f5dc35f5b259ac46db986cf26c /meta-ibm | |
parent | 1e835963260afd0736b949f117787d7f1d16d876 (diff) | |
download | openbmc-3c7395203bde21c6ad5d726d55403de183ed51f8.tar.xz |
phosphor-led-manager: Support LED groups for swift
(From meta-ibm rev: 34c7a88436d2e425429b7a61065e25ce4a9b0664)
Change-Id: I9d4259e36c7c7225e5f29041e204f7d75dc15720
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Diffstat (limited to 'meta-ibm')
-rw-r--r-- | meta-ibm/conf/machine/swift.conf | 4 | ||||
-rw-r--r-- | meta-ibm/recipes-phosphor/leds/swift-led-manager-config-native.bb | 18 | ||||
-rw-r--r-- | meta-ibm/recipes-phosphor/leds/swift-led-manager-config/led.yaml | 11 |
3 files changed, 33 insertions, 0 deletions
diff --git a/meta-ibm/conf/machine/swift.conf b/meta-ibm/conf/machine/swift.conf index 4c0abb57d..e8d6dcc90 100644 --- a/meta-ibm/conf/machine/swift.conf +++ b/meta-ibm/conf/machine/swift.conf @@ -16,3 +16,7 @@ FLASH_SIZE = "131072" FLASH_UBI_RWFS_SIZE ?= "32768" FLASH_UBI_RWFS_TXT_SIZE ?= "32MiB" BMC_RW_SIZE = "0x2000000" + +# Inhibit swift-led-manager-config-native +PREFERRED_PROVIDER_virtual/phosphor-led-manager-config-native_df-mrw = \ + "swift-led-manager-config-native" diff --git a/meta-ibm/recipes-phosphor/leds/swift-led-manager-config-native.bb b/meta-ibm/recipes-phosphor/leds/swift-led-manager-config-native.bb new file mode 100644 index 000000000..459a3161c --- /dev/null +++ b/meta-ibm/recipes-phosphor/leds/swift-led-manager-config-native.bb @@ -0,0 +1,18 @@ +SUMMARY = "Phosphor LED Group Management for Mihawk" +PR = "r1" +LICENSE = "Apache-2.0" +LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacdbeed46a0096b10" + +inherit native + +PROVIDES += "virtual/phosphor-led-manager-config-native" + +SRC_URI += "file://led.yaml" +S = "${WORKDIR}" + +# Copies example led layout yaml file +do_install() { + SRC=${S} + DEST=${D}${datadir}/phosphor-led-manager + install -D ${SRC}/led.yaml ${DEST}/led.yaml +} diff --git a/meta-ibm/recipes-phosphor/leds/swift-led-manager-config/led.yaml b/meta-ibm/recipes-phosphor/leds/swift-led-manager-config/led.yaml new file mode 100644 index 000000000..4813cc6eb --- /dev/null +++ b/meta-ibm/recipes-phosphor/leds/swift-led-manager-config/led.yaml @@ -0,0 +1,11 @@ +BmcBooted: +PowerOn: +EnclosureFault: +EnclosureIdentify: +Fan0Fault: +Fan1Fault: +Fan2Fault: +Fan3Fault: +Fan4Fault: +Powersupply0Fault: +Powersupply1Fault: |