From 0bcb135bf55a405b42497c41f3ac4d1a6ab434a8 Mon Sep 17 00:00:00 2001 From: Steven Lee Date: Fri, 17 Mar 2023 14:01:12 +0800 Subject: [PATCH] phosphor-led-manager: add led config Add led config for preventing LEDGroupManager error in runtime. Signed-off-by: Steven Lee Change-Id: Ib67a1dd4c90f721c361a5f6f02df1ba9470b1ef9 Signed-off-by: Troy Lee --- .../ast2600-led-group-config.json | 34 +++++++++++++++++++ .../leds/phosphor-led-manager_%.bbappend | 11 ++++++ 2 files changed, 45 insertions(+) create mode 100644 meta-aspeed-sdk/recipes-phosphor/leds/phosphor-led-manager/ast2600-led-group-config.json create mode 100644 meta-aspeed-sdk/recipes-phosphor/leds/phosphor-led-manager_%.bbappend diff --git a/meta-aspeed-sdk/recipes-phosphor/leds/phosphor-led-manager/ast2600-led-group-config.json b/meta-aspeed-sdk/recipes-phosphor/leds/phosphor-led-manager/ast2600-led-group-config.json new file mode 100644 index 000000000000..478635d9c616 --- /dev/null +++ b/meta-aspeed-sdk/recipes-phosphor/leds/phosphor-led-manager/ast2600-led-group-config.json @@ -0,0 +1,34 @@ +{ + "leds": [ + { + "group": "bmc_booted", + "members": [ + ] + }, + { + "group": "power_on", + "members": [ + ] + }, + { + "group": "enclosure_fault", + "members": [ + ] + }, + { + "group": "enclosure_identify", + "members": [ + ] + }, + { + "group": "fan_fault", + "members": [ + ] + }, + { + "group": "fan_identify", + "members": [ + ] + } + ] +} diff --git a/meta-aspeed-sdk/recipes-phosphor/leds/phosphor-led-manager_%.bbappend b/meta-aspeed-sdk/recipes-phosphor/leds/phosphor-led-manager_%.bbappend new file mode 100644 index 000000000000..18cd8b414d22 --- /dev/null +++ b/meta-aspeed-sdk/recipes-phosphor/leds/phosphor-led-manager_%.bbappend @@ -0,0 +1,11 @@ +FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:" + +SRC_URI += "file://ast2600-led-group-config.json" + +PACKAGECONFIG:append = " use-json use-lamp-test" + +do_install:append() { + install -m 0644 ${WORKDIR}/ast2600-led-group-config.json \ + ${D}${datadir}/phosphor-led-manager/led-group-config.json +} +