lmsensors: Initial commit (cover letter).
PATCH 1/1 lmsensors: Initial commit (cover letter).
Here's a second version of my patch for adding lmsensors.
As suggested by Paul and Martin I've rebased my patch against meta-oe and dropped the rrdtool part.
Regards,
Marc
Marc Ferland (1):
lmsensors: Initial commit.
.../recipes-support/lm_sensors/files/fancontrol | 2 + .../recipes-support/lm_sensors/files/fancontrol.sh | 48 ++++++ .../recipes-support/lm_sensors/files/sensord.cgi | 10 ++ .../recipes-support/lm_sensors/files/sensord.conf | 16 ++ .../recipes-support/lm_sensors/files/sensord.sh | 49 +++++++ .../recipes-support/lm_sensors/files/sensors.conf | 2 + .../recipes-support/lm_sensors/lmsensors_3.3.2.bb | 150 ++++++++++++++++++++ 7 files changed, 277 insertions(+), 0 deletions(-) create mode 100644 meta-oe/recipes-support/lm_sensors/files/fancontrol create mode 100644 meta-oe/recipes-support/lm_sensors/files/fancontrol.sh create mode 100644 meta-oe/recipes-support/lm_sensors/files/sensord.cgi create mode 100644 meta-oe/recipes-support/lm_sensors/files/sensord.conf create mode 100644 meta-oe/recipes-support/lm_sensors/files/sensord.sh create mode 100644 meta-oe/recipes-support/lm_sensors/files/sensors.conf create mode 100644 meta-oe/recipes-support/lm_sensors/lmsensors_3.3.2.bb
Signature · 1 line
1.7.5.4
PATCH 1/1 lmsensors: Initial commit.
The lmsensors project provides hardware health monitoring tools in the form of kernel drivers, a user-space library and some helper programs. This recipe provides all the different user-space tools offered by lmsensors in separete packages. Startup scripts and default configuration files are also made available through this commit.
The packages consist of (description text from lmsensors documentation):
* lmsensors-libsensors: The user-space sensors support library code.
* lmsensors-sensors: A console tool to report sensor readings and set new sensor limits.
* lmsensors-sensord: A daemon to watch sensor values and log problems. It includes RRD support.
* lmsensors-fancontrol: Controls fanspeeds responding to changes on temperature sensors. Configuration through pwmconfig.
* lmsensors-sensorsdetect: This program tries to detect the available SMBus adapters and the chips connected to them, as well as Super-I/O and misc chips.
* lmsensors-sensorsconfconvert: Convert configuration files from lmsensorsv2 to lmsensorsv3.
* lmsensors-pwmconfig: tests the pwm (pulse width modulation) outputs of sensors for their effect on the fans and helps to setup the configfile for fancontrol.
* lmsensors-isatools: This program sets/gets the registers of ISA or Super-I/O chips.
--- .../recipes-support/lm_sensors/files/fancontrol | 2 + .../recipes-support/lm_sensors/files/fancontrol.sh | 48 ++++++ .../recipes-support/lm_sensors/files/sensord.cgi | 10 ++ .../recipes-support/lm_sensors/files/sensord.conf | 16 ++ .../recipes-support/lm_sensors/files/sensord.sh | 49 +++++++ .../recipes-support/lm_sensors/files/sensors.conf | 2 + .../recipes-support/lm_sensors/lmsensors_3.3.2.bb | 150 ++++++++++++++++++++ 7 files changed, 277 insertions(+), 0 deletions(-) create mode 100644 meta-oe/recipes-support/lm_sensors/files/fancontrol create mode 100644 meta-oe/recipes-support/lm_sensors/files/fancontrol.sh create mode 100644 meta-oe/recipes-support/lm_sensors/files/sensord.cgi create mode 100644 meta-oe/recipes-support/lm_sensors/files/sensord.conf create mode 100644 meta-oe/recipes-support/lm_sensors/files/sensord.sh create mode 100644 meta-oe/recipes-support/lm_sensors/files/sensors.conf create mode 100644 meta-oe/recipes-support/lm_sensors/lmsensors_3.3.2.bb
meta-oe/recipes-support/lm_sensors/files/fancontrol new file +2 -0
@@ -0,0 +1,2 @@ +# fancontrol configuration file. +# Place your device specific configuration in this file.
meta-oe/recipes-support/lm_sensors/files/fancontrol.sh new file +48 -0
48 lines not on this page · raw message
meta-oe/recipes-support/lm_sensors/files/sensord.cgi new file +10 -0
@@ -0,0 +1,10 @@ +#!/usr/bin/rrdcgi + +<html> +<head> +<title>sensord</title> +</head> +<body> +Generate a valid sensord.cgi script and install it in your BSP. +</body> +</html>
meta-oe/recipes-support/lm_sensors/files/sensord.conf new file +16 -0
@@ -0,0 +1,16 @@ +# Default sensord configuration file +# Syntax: sensord {options} {chips} +# -i, --interval <time> -- interval between scanning alarms (default 60s) +# -l, --log-interval <time> -- interval between logging sensors (default 30m) +# -t, --rrd-interval <time> -- interval between updating RRD file (default 5m) +# -T, --rrd-no-average -- switch RRD in non-average mode +# -r, --rrd-file <file> -- RRD file (default <none>) +# -c, --config-file <file> -- configuration file +# -p, --pid-file <file> -- PID file (default /var/run/sensord.pid) +# -f, --syslog-facility <f> -- syslog facility to use (default local4) +# -g, --rrd-cgi <img-dir> -- output an RRD CGI script and exit +# -a, --load-average -- include load average in RRD file +# -d, --debug -- display some debug information +# -v, --version -- display version and exit +# -h, --help -- display help and exit +SENSORD_ARGS="-i60s -l30m -t1m -r/var/lib/sensord.rrd -a"
meta-oe/recipes-support/lm_sensors/files/sensord.sh new file +49 -0
49 lines not on this page · raw message
meta-oe/recipes-support/lm_sensors/files/sensors.conf new file +2 -0
@@ -0,0 +1,2 @@ +# sensors configuration file. +# Place your device specific configuration in this file.
meta-oe/recipes-support/lm_sensors/lmsensors_3.3.2.bb new file +150 -0
150 lines not on this page · raw message
Signature · 1 line
1.7.5.4
Re: [meta-oe][PATCH] lmsensors: Initial commit.
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Op 18-10-12 15:01, Marc Ferland schreef:
Quoted 23 lines
The lmsensors project provides hardware health monitoring tools in the form of kernel drivers, a user-space library and some helper programs. This recipe provides all the different user-space tools offered by lmsensors in separete packages. Startup scripts and default configuration files are also made available through this commit.
The packages consist of (description text from lmsensors documentation):
* lmsensors-libsensors: The user-space sensors support library code. *
lmsensors-sensors: A console tool to report sensor readings and set new sensor limits. * lmsensors-sensord: A daemon to watch sensor values and log problems. It includes RRD support. * lmsensors-fancontrol: Controls fanspeeds responding to changes on temperature sensors. Configuration through pwmconfig. * lmsensors-sensorsdetect: This program tries to detect the available SMBus adapters and the chips connected to them, as well as Super-I/O and misc chips. * lmsensors-sensorsconfconvert: Convert configuration files from lmsensorsv2 to lmsensorsv3. *
lmsensors-pwmconfig: tests the pwm (pulse width modulation) outputs of sensors for their effect on the fans and helps to setup the configfile for fancontrol. * lmsensors-isatools: This program sets/gets the registers of ISA or Super-I/O chips.Signed-off-by Marc Ferland <[email protected]> ---
Quoted 8 lines
+++ b/meta-oe/recipes-support/lm_sensors/lmsensors_3.3.2.bb @@ -0,0 +1,150 @@ +SUMMARY = "
lm_sensors" +DESCRIPTION = "Hardware health monitoring applications" +HOMEPAGE = "http://www.lm-sensors.org/" +LICENSE = "GPLv2+ & LGPLv2.1+" +LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe \ + file://COPYING.LGPL;md5=4fbd65380cdd255951079008b364516c"+PR = "r0"
Drop that
Quoted 4 lines
+DEPENDS = "sysfsutils virtual/libiconv bison-native flex-native rrdtool" +PROVIDES = "\ +${PN}-libsensors \ +${PN}-sensors \
+${PN}-sensord \ +${PN}-fancontrol \ +${PN}-sensorsdetect \
+${PN}-sensorsconfconvert \ +${PN}-pwmconfig \ +${PN}-isatools \
Anything listed in PACKAGES is already in (R)PROVIDES, so drop the above -----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org
iD8DBQFQgR/mMkyGM64RGpERAvJBAJ9Cnla/rkwCvnpoBauHCsKAYm7unQCcClGt BYGjJVKXS5k9Z2Jg0Gf1Dww=
=Rc3D
-----END PGP SIGNATURE-----
Re: [meta-oe][PATCH] lmsensors: Initial commit.
Quoted 7 lines · On Friday 19 October 2012 11:39:50 Koen Kooi wrote:
Quoted 5 lines
+DEPENDS = "sysfsutils virtual/libiconv bison-native flex-native rrdtool"
+PROVIDES = "\ +${PN}-libsensors \ +${PN}-sensors \
+${PN}-sensord \ +${PN}-fancontrol \ +${PN}-sensorsdetect \
+${PN}-sensorsconfconvert \ +${PN}-pwmconfig \ +${PN}-isatools \Anything listed in PACKAGES is already in (R)PROVIDES, so drop the above
Items in PACKAGES do get into RPROVIDES but not PROVIDES. I can't see these as being especially useful in PROVIDES (as build time targets) though, so I agree they should go unless there's a compelling reason to have them.
Cheers,
Paul
Signature · 2 lines
Paul Eggleton Intel Open Source Technology Centre