diff options
author | Robert Schwebel <r.schwebel@pengutronix.de> | 2009-10-10 17:44:49 +0200 |
---|---|---|
committer | Robert Schwebel <r.schwebel@pengutronix.de> | 2009-10-10 17:56:54 +0200 |
commit | ecb007016fbc805b5d9ca27c173dcac12a2d414a (patch) | |
tree | 9f17ccb98be49d5df10d4aa11e48b9afd695503a | |
parent | b4ead6f8bc6ee8eaf27fe1b74516f248208e03d5 (diff) | |
download | ptxdist-ecb007016fbc805b5d9ca27c173dcac12a2d414a.tar.gz ptxdist-ecb007016fbc805b5d9ca27c173dcac12a2d414a.tar.xz |
[lm_sensors] add all installable binaries
Add more binaries, with config switches. Fix permissions while being
there and use the "-" notation for file sources.
Signed-off-by: Robert Schwebel <r.schwebel@pengutronix.de>
-rw-r--r-- | rules/lm_sensors.in | 24 | ||||
-rw-r--r-- | rules/lm_sensors.make | 24 |
2 files changed, 45 insertions, 3 deletions
diff --git a/rules/lm_sensors.in b/rules/lm_sensors.in index 1705f11a2..7815b85b8 100644 --- a/rules/lm_sensors.in +++ b/rules/lm_sensors.in @@ -8,3 +8,27 @@ config LM_SENSORS It contains a library (libsensors) providing generic access to hwmon devices and a simple application dumping the readings of all available sensor chips. + +if LM_SENSORS + +config LM_SENSORS_FANCONTROL + bool + prompt "install fancontrol" + +config LM_SENSORS_SENSORS_DETECT + bool + prompt "install sensors-detect" + +config LM_SENSORS_ISASET + bool + prompt "install isaset" + +config LM_SENSORS_ISADUMP + bool + prompt "install isadump" + +config LM_SENSORS_PWMCONFIG + bool + prompt "install pwmconfig" + +endif diff --git a/rules/lm_sensors.make b/rules/lm_sensors.make index b4df5f2df..3e0ec6a79 100644 --- a/rules/lm_sensors.make +++ b/rules/lm_sensors.make @@ -93,12 +93,30 @@ $(STATEDIR)/lm_sensors.targetinstall: @$(call install_fixup, lm_sensors,DEPENDS,) @$(call install_fixup, lm_sensors,DESCRIPTION,missing) - @$(call install_copy, lm_sensors, 0, 0, 0755, $(LM_SENSORS_DIR)/prog/sensors/sensors, /usr/bin/sensors) - @$(call install_copy, lm_sensors, 0, 0, 0644, $(LM_SENSORS_DIR)/etc/sensors.conf.default, /etc/sensors3.conf) - @$(call install_copy, lm_sensors, 0, 0, 0755, $(LM_SENSORS_DIR)/lib/libsensors.so.4.2.0, /usr/lib/libsensors.so.4.2.0) + @$(call install_copy, lm_sensors, 0, 0, 0644, -, /usr/lib/libsensors.so.4.2.0) @$(call install_link, lm_sensors, libsensors.so.4.2.0, /usr/lib/libsensors.so.4) @$(call install_link, lm_sensors, libsensors.so.4.2.0, /usr/lib/libsensors.so) + @$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/bin/sensors) + @$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/bin/sensors-conf-convert) + + @$(call install_copy, lm_sensors, 0, 0, 0644, -, /etc/sensors3.conf) + +ifdef PTXCONF_LM_SENSORS_FANCONTROL + @$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/sbin/fancontrol) +endif +ifdef PTXCONF_LM_SENSORS_SENSORS_DETECT + @$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/sbin/sensors-detect) +endif +ifdef PTXCONF_LM_SENSORS_ISASET + @$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/sbin/isaset) +endif +ifdef PTXCONF_LM_SENSORS_ISADUMP + @$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/sbin/isadump) +endif +ifdef PTXCONF_LM_SENSORS_PWMCONFIG + @$(call install_copy, lm_sensors, 0, 0, 0755, -, /usr/sbin/pwmconfig) +endif @$(call install_finish, lm_sensors) @$(call touch) |