meta-quanta: s6q: add sensors yaml
Add configuration to store sensor.
Add CPU temperatur sensor by using virtual sensor to get maximum value between DTS_CPU and Die_CPU.
Tested:
using 'ipmitool sdr type' command and Redfish client command to verify on S6Q board.
Signed-off-by: Joseph Fu <joseph.fu@quantatw.com>
Change-Id: I324230922e03f60c080858150b476c3f50fb62d6
diff --git a/meta-quanta/meta-s6q/recipes-phosphor/configuration/s6q-yaml-config.bb b/meta-quanta/meta-s6q/recipes-phosphor/configuration/s6q-yaml-config.bb
index e437b7f..bc52099 100644
--- a/meta-quanta/meta-s6q/recipes-phosphor/configuration/s6q-yaml-config.bb
+++ b/meta-quanta/meta-s6q/recipes-phosphor/configuration/s6q-yaml-config.bb
@@ -8,6 +8,7 @@
SRC_URI = " \
file://ipmi-fru.yaml \
file://ipmi-fru-properties.yaml \
+ file://ipmi-sensors.yaml \
"
S = "${WORKDIR}"
@@ -15,11 +16,13 @@
do_install() {
install -m 0644 -D ipmi-fru.yaml ${D}${datadir}/${BPN}/ipmi-fru-read.yaml
install -m 0644 -D ipmi-fru-properties.yaml ${D}${datadir}/${BPN}/ipmi-extra-properties.yaml
+ install -m 0644 -D ipmi-sensors.yaml ${D}${datadir}/${BPN}/ipmi-sensors.yaml
}
FILES:${PN}-dev = " \
${datadir}/${BPN}/ipmi-fru-read.yaml \
${datadir}/${BPN}/ipmi-extra-properties.yaml \
+ ${datadir}/${BPN}/ipmi-sensors.yaml \
"
ALLOW_EMPTY:${PN} = "1"