meta:facebook: catalina add led manager settings
Add led group configuration for phosphor-led-manager.
Change-Id: I03cd8290de03d4cf81897b885254d47d2ce263a5
Signed-off-by: Potin Lai <potin.lai@quantatw.com>
diff --git a/meta-facebook/meta-catalina/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json b/meta-facebook/meta-catalina/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json
new file mode 100644
index 0000000..d6e817d
--- /dev/null
+++ b/meta-facebook/meta-catalina/recipes-phosphor/leds/phosphor-led-manager/led-group-config.json
@@ -0,0 +1,26 @@
+{
+ "leds": [
+ {
+ "group" : "bmc_booted",
+ "members" : [
+ {
+ "Name" : "bmc_heartbeat_amber",
+ "Action" : "Blink",
+ "DutyOn" : 50,
+ "Period" : 1000
+ }
+ ]
+ },
+ {
+ "group": "enclosure_identify",
+ "members": [
+ {
+ "Name": "fp_id_amber",
+ "Action": "Blink",
+ "DutyOn": 50,
+ "Period": 1000
+ }
+ ]
+ }
+ ]
+}
diff --git a/meta-facebook/meta-catalina/recipes-phosphor/leds/phosphor-led-manager_%.bbappend b/meta-facebook/meta-catalina/recipes-phosphor/leds/phosphor-led-manager_%.bbappend
new file mode 100644
index 0000000..b4cbc02
--- /dev/null
+++ b/meta-facebook/meta-catalina/recipes-phosphor/leds/phosphor-led-manager_%.bbappend
@@ -0,0 +1,10 @@
+FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}:"
+
+SRC_URI:append = " file://led-group-config.json"
+
+# Power led is handled by CPLD.
+CHASSIS_TARGETS = ""
+
+do_install:append() {
+ install -m 0644 ${WORKDIR}/led-group-config.json ${D}${datadir}/phosphor-led-manager/
+}