[Buildroot] [git commit] lm-sensors: sensors-detect requires perl

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Tue Jul 15 19:19:50 UTC 2014


commit: http://git.buildroot.net/buildroot/commit/?id=fbcfbf66b5c8c2753df69d6f7de2cc857cf69ce1
branch: http://git.buildroot.net/buildroot/commit/?id=refs/heads/master

The sensors-detect program is in fact a Perl script, so it won't run
on the target unless Perl is enabled in the configuration.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
Reviewed-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
---
 package/lm-sensors/Config.in |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/package/lm-sensors/Config.in b/package/lm-sensors/Config.in
index 33c59fd..7065c4c 100644
--- a/package/lm-sensors/Config.in
+++ b/package/lm-sensors/Config.in
@@ -44,8 +44,12 @@ config BR2_PACKAGE_LM_SENSORS_PWMCONFIG
 
 config BR2_PACKAGE_LM_SENSORS_SENSORS_DETECT
 	bool "sensors-detect"
+	depends on BR2_PACKAGE_PERL
 	help
 	  Sensors-detect is an interactive program for detecting
 	  available hardware monitoring chips.
 
+comment "sensors-detect needs perl"
+	depends on !BR2_PACKAGE_PERL
+
 endif


More information about the buildroot mailing list