Skip to content

Commit

Permalink
phosphor-led-manager: add led config
Browse files Browse the repository at this point in the history
Add led config for preventing LEDGroupManager error in runtime.

Signed-off-by: Steven Lee <[email protected]>
Change-Id: Ib67a1dd4c90f721c361a5f6f02df1ba9470b1ef9
Signed-off-by: Troy Lee <[email protected]>
  • Loading branch information
stevenlee7189 authored and LeeTroy committed Mar 17, 2023
1 parent f4d33d7 commit 0bcb135
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -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": [
]
}
]
}
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 0bcb135

Please sign in to comment.