meta-asrock: spc621d8hm3: Add phosphor-led-manager config
Signed-off-by: Zev Weiss <zev@bewilderbeest.net>
Change-Id: I8d21ddbe3d43c63576377e934739be3cec96268f
diff --git a/meta-asrock/meta-spc621d8hm3/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json b/meta-asrock/meta-spc621d8hm3/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json
new file mode 100644
index 0000000..200fa3b
--- /dev/null
+++ b/meta-asrock/meta-spc621d8hm3/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json
@@ -0,0 +1,26 @@
+{
+ "leds": [
+ {
+ "group" : "bmc_booted",
+ "members" : [
+ {
+ "Name" : "heartbeat",
+ "Action" : "Blink",
+ "DutyOn" : 50,
+ "Period" : 1000
+ }
+ ]
+ },
+ {
+ "group": "system_fault",
+ "members": [
+ {
+ "Name": "system-fault",
+ "Action": "Blink",
+ "DutyOn": 50,
+ "Period": 250
+ }
+ ]
+ }
+ ]
+}
diff --git a/meta-asrock/meta-spc621d8hm3/recipes-phosphor/leds/phosphor-led-manager_%.bbappend b/meta-asrock/meta-spc621d8hm3/recipes-phosphor/leds/phosphor-led-manager_%.bbappend
new file mode 100644
index 0000000..1e8a92c
--- /dev/null
+++ b/meta-asrock/meta-spc621d8hm3/recipes-phosphor/leds/phosphor-led-manager_%.bbappend
@@ -0,0 +1,7 @@
+FILESEXTRAPATHS:prepend:spc621d8hm3 := "${THISDIR}/${PN}:"
+
+SRC_URI:append:spc621d8hm3 = " file://led-group-config.json"
+
+do_install:append:spc621d8hm3() {
+ install -m 0644 ${WORKDIR}/led-group-config.json ${D}${datadir}/phosphor-led-manager/
+}