Add labels

Labels are descriptive names for sensor channels.  For
example a label for temp1 might be "motherboard".  Labels
will be used as the final path element when creating
DBus objects so they are bound by the same restrictions
as DBus object paths.

Discover labels from the environment when scanning sysfs.
Ignore inputs that don't have a label.

Change-Id: I2aa5684447f106d99361a9834eaad43d21037d5c
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2 files changed
tree: 287ebcea0b4ccbf78cd769e73136bab52759396c
  1. test/
  2. xyz/
  3. .gitignore
  4. argument.cpp
  5. argument.hpp
  6. bootstrap.sh
  7. configure.ac
  8. directory.cpp
  9. directory.hpp
  10. hwmon.hpp
  11. LICENSE
  12. mainloop.cpp
  13. mainloop.hpp
  14. Makefile.am
  15. readd.cpp
  16. README.md
  17. sensorcache.hpp
  18. sensorset.cpp
  19. sensorset.hpp
  20. sysfs.hpp
  21. xyz.openbmc_project.Sensor.Value.cpp
README.md

Exposes generic hwmon entries as DBus objects.

To Build

To build this package, do the following steps:

    1. ./bootstrap.sh
    2. ./configure ${CONFIGURE_FLAGS}
    3. make

To full clean the repository again run `./bootstrap.sh clean`.