commit | 85ba64a653de3ede60a228f42f62dcf1ab55ca17 | [log] [tgz] |
---|---|---|
author | Matt Spinler <spinler@us.ibm.com> | Fri Mar 15 12:29:26 2019 -0500 |
committer | Matt Spinler <spinler@us.ibm.com> | Fri Mar 15 12:29:26 2019 -0500 |
tree | 7a740ff24a179aef7870275265239cb10928bf82 | |
parent | 9e997b4da98725401769ef82fe26e11c46a059d9 [diff] |
Don't std::filesystem::path::/= an absolute path Unlike std::experimental::filesystem::path, with std::filesystem::path, the /= operator will turn an append of an absolute path (starts with a '/') into a '='. So, ensure the paths aren't absolute. Change-Id: Ie8fb9d056042e277415e8ea0eb29d094a2665611 Signed-off-by: Matt Spinler <spinler@us.ibm.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.