summaryrefslogtreecommitdiffstats
path: root/meta-openbmc-machines
diff options
context:
space:
mode:
authorVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-02-13 15:57:36 +0530
committerVishwanatha Subbanna <vishwa@linux.vnet.ibm.com>2017-03-03 16:52:52 +0530
commit7c1734094f187cf29246bc52884e737907724d18 (patch)
tree381a97f5d591afc00978db26cd1fc540a6b795c0 /meta-openbmc-machines
parent7f07e7d28463403b5d26cd403d87f0292b0b2cf2 (diff)
downloadtalos-openbmc-7c1734094f187cf29246bc52884e737907724d18.tar.gz
talos-openbmc-7c1734094f187cf29246bc52884e737907724d18.zip
Update LED Manager recipe to support Barreleye machine
This has the changes that enables LED group manager on Barreleye Change-Id: I7f0822622023ec05212f37c25dc2a408d77f1bd4 Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com>
Diffstat (limited to 'meta-openbmc-machines')
-rw-r--r--meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/conf/machine/barreleye.conf1
-rw-r--r--meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/leds/barreleye-led-manager-config-native.bb18
-rwxr-xr-xmeta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/leds/barreleye-led-manager-config/led.yaml30
-rw-r--r--meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/leds/phosphor-led-manager%.bbappend11
4 files changed, 60 insertions, 0 deletions
diff --git a/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/conf/machine/barreleye.conf b/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/conf/machine/barreleye.conf
index 5e430268d..84aeb5082 100644
--- a/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/conf/machine/barreleye.conf
+++ b/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/conf/machine/barreleye.conf
@@ -14,3 +14,4 @@ FLASH_SIZE = "32768"
OBMC_FAN_INSTANCES = "0 1 2 3 4 5"
PREFERRED_PROVIDER_virtual/phosphor-ipmi-fru-inventory = "barreleye-ipmi-inventory-map-native"
+PREFERRED_PROVIDER_virtual/phosphor-led-manager-config-native = "barreleye-led-manager-config-native"
diff --git a/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/leds/barreleye-led-manager-config-native.bb b/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/leds/barreleye-led-manager-config-native.bb
new file mode 100644
index 000000000..37b0fe212
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/leds/barreleye-led-manager-config-native.bb
@@ -0,0 +1,18 @@
+SUMMARY = "Phosphor LED Group Management for Barreleye"
+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-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/leds/barreleye-led-manager-config/led.yaml b/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/leds/barreleye-led-manager-config/led.yaml
new file mode 100755
index 000000000..7746cb4b4
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/leds/barreleye-led-manager-config/led.yaml
@@ -0,0 +1,30 @@
+BmcBoot:
+ beep:
+ Action: 'On'
+ DutyOn: 50
+ Period: 0
+HostBoot:
+ identify:
+ Action: 'On'
+ DutyOn: 50
+ Period: 0
+EnclosureIdentify:
+ identify:
+ Action: 'Blink'
+ DutyOn: 50
+ Period: 1000
+HeartBeat:
+ heartbeat:
+ Action: 'On'
+ DutyOn: 50
+ Period: 0
+BeepIdentifyTest:
+ beep:
+ Action: 'Blink'
+ DutyOn: 50
+ Period: 1000
+HeartBeatIdentifyTest:
+ heartbeat:
+ Action: 'Blink'
+ DutyOn: 50
+ Period: 1000
diff --git a/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/leds/phosphor-led-manager%.bbappend b/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/leds/phosphor-led-manager%.bbappend
new file mode 100644
index 000000000..8c1c0dcfd
--- /dev/null
+++ b/meta-openbmc-machines/meta-openpower/meta-rackspace/meta-barreleye/recipes-phosphor/leds/phosphor-led-manager%.bbappend
@@ -0,0 +1,11 @@
+FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
+
+SYSTEMD_LINK_${PN} += "../obmc-led-group-start@.service:${SYSTEMD_DEFAULT_TARGET}.wants/obmc-led-group-start@BmcBoot.service"
+
+STATES = "start stop"
+TMPLFMT = "obmc-led-group-{0}@.service"
+TGTFMT = "obmc-power-{0}@0.target"
+INSTFMT = "obmc-led-group-{0}@HostBoot.service"
+FMT = "../${TMPLFMT}:${TGTFMT}.wants/${INSTFMT}"
+
+SYSTEMD_LINK_${PN} += "${@compose_list(d, 'FMT', 'STATES')}"
OpenPOWER on IntegriCloud