commit | a67a947007d598ad30b322c67fba6efa338d2156 | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Wed Dec 19 07:29:43 2018 -0800 |
committer | Patrick Venture <venture@google.com> | Wed Jan 02 11:56:28 2019 -0800 |
tree | 8083d9fae368ce38e90224f658e7dc5a492035b3 | |
parent | d0f5097c61fb3659fedda43e5ebc75b416d9bbd7 [diff] |
test: add environment mock impl Add environment mock implementation for use in testing. Change-Id: I5a8efe994692a2e4436bf7f3c0155516d92b49c6 Signed-off-by: Patrick Venture <venture@google.com>
Exposes generic hwmon entries as DBus objects. More information can be found at Sensor Architecture
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.