commit | 609fe98205fe8f4bd0dc6b9fca66877e2edf186d | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Tue Apr 17 17:51:56 2018 -0700 |
committer | Patrick Venture <venture@google.com> | Tue Apr 24 19:58:18 2018 +0000 |
tree | bd16de833ea75277aca274c86a620c3c3d3df2ce | |
parent | c635e8609f5246224dfba7db57991de0b1c5327f [diff] |
hwmon module unit-tests -- first one This patchset just starts the process of adding unit-tests to the hwmon module. Change-Id: I569aa97658b0ff56634ddf1a599fedb4caa95abe Signed-off-by: Patrick Venture <venture@google.com>
Exposes generic hwmon entries as DBus objects.
To build this package, do the following steps: 1. ./bootstrap.sh 2. ./configure ${CONFIGURE_FLAGS} 3. make To clean the repository run `./bootstrap.sh clean`.
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 a std::hash of the /sys/devices path backing the hwmon class instance, and N is the implemented phosphor-hwmon D-Bus API version.