summaryrefslogtreecommitdiffstats
path: root/meta-rcs/meta-talos/recipes-phosphor
diff options
context:
space:
mode:
authorRaptor Engineering Development Team <support@raptorengineering.com>2020-02-19 08:37:03 +0000
committerRaptor Engineering Development Team <support@raptorengineering.com>2020-02-19 09:15:30 +0000
commit41d9d019b1fe8ccd22bb0f223d4cb113d3ebe485 (patch)
tree218291cc1702b0a17e99c0e330ab099bc9c32333 /meta-rcs/meta-talos/recipes-phosphor
parent374c6aab85b4769ced9bbf9ca39843988c5083d6 (diff)
downloadtalos-openbmc-41d9d019b1fe8ccd22bb0f223d4cb113d3ebe485.tar.gz
talos-openbmc-41d9d019b1fe8ccd22bb0f223d4cb113d3ebe485.zip
Relabel fan tach inventory items for clarity in the Web UI
Diffstat (limited to 'meta-rcs/meta-talos/recipes-phosphor')
-rw-r--r--meta-rcs/meta-talos/recipes-phosphor/fans/phosphor-fan/label-fan-tachs-in-inventory.patch13
-rw-r--r--meta-rcs/meta-talos/recipes-phosphor/fans/phosphor-fan_%.bbappend2
2 files changed, 15 insertions, 0 deletions
diff --git a/meta-rcs/meta-talos/recipes-phosphor/fans/phosphor-fan/label-fan-tachs-in-inventory.patch b/meta-rcs/meta-talos/recipes-phosphor/fans/phosphor-fan/label-fan-tachs-in-inventory.patch
new file mode 100644
index 000000000..383310246
--- /dev/null
+++ b/meta-rcs/meta-talos/recipes-phosphor/fans/phosphor-fan/label-fan-tachs-in-inventory.patch
@@ -0,0 +1,13 @@
+diff --git a/monitor/tach_sensor.cpp b/monitor/tach_sensor.cpp
+index 5494450..6832ffe 100644
+--- a/monitor/tach_sensor.cpp
++++ b/monitor/tach_sensor.cpp
+@@ -81,7 +81,7 @@ TachSensor::TachSensor(Mode mode,
+ _bus(bus),
+ _fan(fan),
+ _name(FAN_SENSOR_PATH + id),
+- _invName(path(fan.getName()) / id),
++ _invName(path(fan.getName()) / (id + "tach")),
+ _hasTarget(hasTarget),
+ _funcDelay(funcDelay),
+ _interface(interface),
diff --git a/meta-rcs/meta-talos/recipes-phosphor/fans/phosphor-fan_%.bbappend b/meta-rcs/meta-talos/recipes-phosphor/fans/phosphor-fan_%.bbappend
index 36751c29a..0035eee8d 100644
--- a/meta-rcs/meta-talos/recipes-phosphor/fans/phosphor-fan_%.bbappend
+++ b/meta-rcs/meta-talos/recipes-phosphor/fans/phosphor-fan_%.bbappend
@@ -5,6 +5,8 @@ FAN_PACKAGES += " \
phosphor-cooling-type \
"
+SRC_URI += "file://label-fan-tachs-in-inventory.patch"
+
PACKAGECONFIG += "cooling-type"
RDEPENDS_phosphor-cooling-type += "libevdev"
OpenPOWER on IntegriCloud