dcmi: get temperature readings - json
This commit adds a json file that specifies instance numbers and d-bus
paths to look-up for temperature readings. The specific json in this
commit is mostly empty, and system specific overrides are supposed to add
appropriate content.
Change-Id: I155a2e037041cf19b903f5b178e6849857a3d39f
Signed-off-by: Deepak Kodihalli <dkodihal@in.ibm.com>
diff --git a/common/recipes-phosphor/ipmi/phosphor-ipmi-host.bb b/common/recipes-phosphor/ipmi/phosphor-ipmi-host.bb
index ec59b68..fe32be2 100644
--- a/common/recipes-phosphor/ipmi/phosphor-ipmi-host.bb
+++ b/common/recipes-phosphor/ipmi/phosphor-ipmi-host.bb
@@ -63,6 +63,7 @@
file://dev_id.json \
file://dcmi_cap.json \
file://power_reading.json \
+ file://dcmi_temp_readings.json \
"
HOSTIPMI_PROVIDER_LIBRARY += "libapphandler.so"
@@ -76,6 +77,7 @@
FILES_${PN}_append = " ${datadir}/ipmi-providers/dev_id.json"
FILES_${PN}_append = " ${datadir}/ipmi-providers/dcmi_cap.json"
FILES_${PN}_append = " ${datadir}/ipmi-providers/power_reading.json"
+FILES_${PN}_append = " ${datadir}/ipmi-providers/dcmi_temp_readings.json"
FILES_${PN}-dev_append = " ${libdir}/ipmid-providers/lib*${SOLIBSDEV} ${libdir}/ipmid-providers/*.la"
# Soft Power Off
@@ -121,6 +123,8 @@
${D}${datadir}/ipmi-providers/dcmi_cap.json
install -m 0644 -D ${WORKDIR}/power_reading.json \
${D}${datadir}/ipmi-providers/power_reading.json
+ install -m 0644 -D ${WORKDIR}/dcmi_temp_readings.json \
+ ${D}${datadir}/ipmi-providers/dcmi_temp_readings.json
}
# python-pyyaml-native is installed by do_configure, so put this task after
addtask merge_sensors after do_configure before do_compile