max31785-msl: Default not to install

Default not to install the max31785-msl script and provide autoconf and
meson options to install it. This is a tool used to check the revision
of the MAX31785 fan controller chip against a configuration defining
what the minimum ship level is required. Always installing this script
isn't necessary where a MAX31785 chip doesn't exist in a machine or
where the revision of it needs to be verified.

Tested:
    Built using autoconf where the max31785-msl script is only installed
when `--enable-max31785-msl` is given
    Build using meson where the max31785-msl script is only installed
when `-Denable-max31785-msl=true` is given

Change-Id: I563e30f093340ee035fd55c5fb0a10bef879ca12
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
4 files changed
tree: 28317876a31186a573aec54455343dccf64c2133
  1. msl/
  2. test/
  3. tools/
  4. .clang-format
  5. .gitignore
  6. .lcovrc
  7. average.cpp
  8. average.hpp
  9. bootstrap.sh
  10. configure.ac
  11. env.cpp
  12. env.hpp
  13. fan_pwm.cpp
  14. fan_pwm.hpp
  15. fan_speed.cpp
  16. fan_speed.hpp
  17. gpio_handle.cpp
  18. gpio_handle.hpp
  19. hwmon.cpp
  20. hwmon.hpp
  21. hwmonio.cpp
  22. hwmonio.hpp
  23. interface.hpp
  24. LICENSE
  25. mainloop.cpp
  26. mainloop.hpp
  27. MAINTAINERS
  28. Makefile.am
  29. meson.build
  30. meson_options.txt
  31. readd.cpp
  32. README.iio.md
  33. README.md
  34. sensor.cpp
  35. sensor.hpp
  36. sensorset.cpp
  37. sensorset.hpp
  38. sysfs.cpp
  39. sysfs.hpp
  40. targets.hpp
  41. thresholds.hpp
  42. types.hpp
  43. 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.