Update LED Manager recipe to support Palmetto machine
This has the changes that enables LED group manager on Palmetto
Change-Id: Iaf4d4cc4c798c70e557009e9928225facb1d7d86
Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
diff --git a/meta-palmetto/recipes-phosphor/leds/palmetto-led-manager-config-native.bb b/meta-palmetto/recipes-phosphor/leds/palmetto-led-manager-config-native.bb
new file mode 100644
index 0000000..0a4d561
--- /dev/null
+++ b/meta-palmetto/recipes-phosphor/leds/palmetto-led-manager-config-native.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Phosphor LED Group Management for Palmetto"
+PR = "r1"
+
+inherit native
+inherit obmc-phosphor-utils
+inherit obmc-phosphor-license
+
+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-palmetto/recipes-phosphor/leds/palmetto-led-manager-config/led.yaml b/meta-palmetto/recipes-phosphor/leds/palmetto-led-manager-config/led.yaml
new file mode 100755
index 0000000..c154391
--- /dev/null
+++ b/meta-palmetto/recipes-phosphor/leds/palmetto-led-manager-config/led.yaml
@@ -0,0 +1,30 @@
+Power:
+ power:
+ Action: 'On'
+ DutyOn: 50
+ Period: 0
+HeartBeat:
+ heartbeat:
+ Action: 'On'
+ DutyOn: 50
+ Period: 0
+BmcBoot:
+ identify:
+ Action: 'On'
+ DutyOn: 50
+ Period: 0
+EnclosureIdentify:
+ identify:
+ Action: 'Blink'
+ DutyOn: 50
+ Period: 1000
+PowerBlinkTest:
+ power:
+ Action: 'Blink'
+ DutyOn: 50
+ Period: 1000
+HeartBeatBlinkTest:
+ heartbeat:
+ Action: 'Blink'
+ DutyOn: 50
+ Period: 1000
diff --git a/meta-palmetto/recipes-phosphor/leds/phosphor-led-manager%.bbappend b/meta-palmetto/recipes-phosphor/leds/phosphor-led-manager%.bbappend
new file mode 100644
index 0000000..2233e1c
--- /dev/null
+++ b/meta-palmetto/recipes-phosphor/leds/phosphor-led-manager%.bbappend
@@ -0,0 +1,3 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SYSTEMD_LINK_${PN} += "../obmc-led-group-start@.service:${SYSTEMD_DEFAULT_TARGET}.wants/obmc-led-group-start@BmcBoot.service"