Install events yaml for fan control
Updated the fan control recipe files to include the events config yaml
file. For witherspoon, an events yaml file was added initially
supporting the fan degraded events of missing or containing a
nonfunctional fan resulting in the fans running at full speed.
Resolves openbmc/openbmc#944
Change-Id: I5cbc69694d2a05ec2d5daab55f045e1e28764828
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/common/recipes-phosphor/fans/phosphor-fan-control-events-config-native.bb b/common/recipes-phosphor/fans/phosphor-fan-control-events-config-native.bb
new file mode 100644
index 0000000..740b194
--- /dev/null
+++ b/common/recipes-phosphor/fans/phosphor-fan-control-events-config-native.bb
@@ -0,0 +1,15 @@
+SUMMARY = "Phosphor zone events definition default data"
+PR = "r1"
+
+inherit native
+inherit obmc-phosphor-license
+inherit phosphor-fan
+
+SRC_URI += "file://events.yaml"
+
+S = "${WORKDIR}"
+
+do_install() {
+ DEST=${D}${control_datadir}
+ install -D events.yaml ${DEST}/events.yaml
+}
diff --git a/common/recipes-phosphor/fans/phosphor-fan-control-events-config/events.yaml b/common/recipes-phosphor/fans/phosphor-fan-control-events-config/events.yaml
new file mode 100644
index 0000000..b89d1dc
--- /dev/null
+++ b/common/recipes-phosphor/fans/phosphor-fan-control-events-config/events.yaml
@@ -0,0 +1,2 @@
+#Default zone events definition YAML - empty.
+#For format, see documentation in fan control code repository example yaml.
diff --git a/common/recipes-phosphor/fans/phosphor-fan.bb b/common/recipes-phosphor/fans/phosphor-fan.bb
index 04413e9..e7a6d7e 100644
--- a/common/recipes-phosphor/fans/phosphor-fan.bb
+++ b/common/recipes-phosphor/fans/phosphor-fan.bb
@@ -58,10 +58,12 @@
PACKAGECONFIG[control] = "--enable-control \
FAN_DEF_YAML_FILE=${STAGING_DIR_NATIVE}${control_datadir}/fans.yaml \
FAN_ZONE_YAML_FILE=${STAGING_DIR_NATIVE}${control_datadir}/zones.yaml \
+ ZONE_EVENTS_YAML_FILE=${STAGING_DIR_NATIVE}${control_datadir}/events.yaml \
FAN_ZONE_OUTPUT_DIR=${S}/control, \
--disable-control, \
virtual/phosphor-fan-control-fan-config \
phosphor-fan-control-zone-config-native \
+ phosphor-fan-control-events-config-native \
, \
"