commit | e32ce16bb6cc527b2e46b6e90ef7ac47404da173 | [log] [tgz] |
---|---|---|
author | Matt Spinler <spinler@us.ibm.com> | Wed May 12 08:55:12 2021 -0500 |
committer | Matt Spinler <spinler@us.ibm.com> | Wed May 12 08:56:47 2021 -0500 |
tree | 1444f32d6929e5e6d814aef2ab5402ce07920763 | |
parent | 6d50c3e9e184d3741eec13bd164518864fe806bf [diff] |
Hardcode SensorValueType to double A newer version of the compiler does not like how the sensor value type was being determined from the D-Bus interface class, so just hardcode it to double. This was originally put in when the project was transitioning from using an int64_t to a double for the type, but that's been done for awhile now. Signed-off-by: Matt Spinler <spinler@us.ibm.com> Change-Id: If6a41e3ca43cf12cdebfb2137389b47a0d9dd947
Exposes generic hwmon entries as DBus objects. More information can be found at Sensor Architecture
To build this package, do the following steps: 1. meson build 2. ninja -C build To clean the repository run `rm -rf build`.
To enable the use of Linux features like cgroups prioritization and udev/systemd control, one instance of phosphor-hwmon is intended to be run per hwmon sysfs class instance. This requires an algorithm for selecting a stable, well-known D-Bus busname. The algorithm is <PREFIX>-<ID>.Hwmon<N> where PREFIX is an autoconf configurable prefix (BUSNAME_PREFIX, xyz.openbmc_project by default), ID is either a std::hash of the /sys/devices path backing the hwmon class instance or provided suffix value from the command line, and N is the implemented phosphor-hwmon D-Bus API version.