Skip to content
hwmon to dbus relay
C++ M4 Meson Makefile Shell
Branch: master
Clone or download
bradbishop and spinler build: add support for building with meson
Follow the OpenBMC herd and support a more modern, more comprehensible,
more performant build framework.

To build using meson:
  meson build
  ninja -C build
  ninja -C build install

Maintain support for:
  Configurable dbus parameters:
    BUSNAME_PREFIX= -> -Dbusname-prefix=
    SENSOR_ROOT= -> -Dsensor-root=
  System call failure behavior:
    --enable-negative-errno-on-failure -> -Dnegative-errno-on-fail
    --enable-update-functional-on-fail -> -Dupdate-functional-on-fail

Add -Dtests to match de-facto OpenBMC meson usage conventions.

Drop support for --enable-oe-sdk rpath munging.  This is a workaround
for broken oe sdks that don't figure out the correct rpath when running
make check or ninja test.

Upstream meson does not currently have support for custom code coverage
parameters:
  mesonbuild/meson#4628

Autotools does support this, so support of our custom code coverage
parameters cannot be maintained using meson, without meson enhancements.

Change-Id: I312f1af4c3fcc20ca8bdf2bbf53b06f18abfbfe2
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Latest commit 5906173 Oct 7, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
msl
test
tools
.clang-format
.gitignore
.lcovrc
LICENSE
MAINTAINERS
Makefile.am Support averaging power values Aug 27, 2019
README.iio.md
README.md
average.cpp
average.hpp
bootstrap.sh
configure.ac
env.cpp
env.hpp
fan_pwm.cpp
fan_pwm.hpp
fan_speed.cpp
fan_speed.hpp fan_speed: add underscore prefix to members Jan 2, 2019
gpio_handle.cpp
gpio_handle.hpp
hwmon.cpp hwmon: revert alignment change and fix-up Sep 4, 2018
hwmon.hpp
hwmonio.cpp
hwmonio.hpp hwmonio: Add injection point to test internal behavior Jun 24, 2019
interface.hpp Make hwmon work with double or int64 interface Oct 22, 2018
mainloop.cpp
mainloop.hpp
meson.build
meson_options.txt
readd.cpp mainloop: Make HwmonIO injectable dependency Jun 24, 2019
sensor.cpp
sensor.hpp
sensorset.cpp use filesystem instead of experimental Mar 11, 2019
sensorset.hpp
sysfs.cpp Use std::filesystem::path::relative_path() Apr 16, 2019
sysfs.hpp
targets.hpp
thresholds.hpp rename Object type to InterfaceMap Jun 20, 2019
types.hpp
util.hpp

README.md

Exposes generic hwmon entries as DBus objects. More information can be found at Sensor Architecture

To Build

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`.

D-Bus bus names

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.
You can’t perform that action at this time.