* [Buildroot] svn commit: trunk/buildroot/package: lm-sensors
@ 2007-09-01 18:01 aldot at uclibc.org
2007-09-14 8:15 ` Hebbar
0 siblings, 1 reply; 8+ messages in thread
From: aldot at uclibc.org @ 2007-09-01 18:01 UTC (permalink / raw)
To: buildroot
Author: aldot
Date: 2007-09-01 11:01:08 -0700 (Sat, 01 Sep 2007)
New Revision: 19756
Log:
- add lm-sensors package
Added:
trunk/buildroot/package/lm-sensors/
trunk/buildroot/package/lm-sensors/Config.in
trunk/buildroot/package/lm-sensors/lm-sensors.mk
Modified:
trunk/buildroot/package/Config.in
Changeset:
Modified: trunk/buildroot/package/Config.in
===================================================================
--- trunk/buildroot/package/Config.in 2007-09-01 17:33:19 UTC (rev 19755)
+++ trunk/buildroot/package/Config.in 2007-09-01 18:01:08 UTC (rev 19756)
@@ -221,6 +221,7 @@
source "package/libaio/Config.in"
source "package/libraw1394/Config.in"
source "package/libusb/Config.in"
+source "package/lm-sensors/Config.in"
source "package/lvm2/Config.in"
source "package/mdadm/Config.in"
source "package/memtester/Config.in"
Added: trunk/buildroot/package/lm-sensors/Config.in
===================================================================
--- trunk/buildroot/package/lm-sensors/Config.in (rev 0)
+++ trunk/buildroot/package/lm-sensors/Config.in 2007-09-01 18:01:08 UTC (rev 19756)
@@ -0,0 +1,12 @@
+config BR2_PACKAGE_LM_SENSORS
+ bool "lm-sensors"
+ select BR2_PACKAGE_LIBSYSFS
+ default n
+ help
+ Lm-sensors is a hardware health monitoring package for
+ Linux. It allows you to access information from
+ temperature, voltage, and fan speed sensors. It
+ works with most newer systems.
+
+ http://www.lm-sensors.org/
+
Added: trunk/buildroot/package/lm-sensors/lm-sensors.mk
===================================================================
--- trunk/buildroot/package/lm-sensors/lm-sensors.mk (rev 0)
+++ trunk/buildroot/package/lm-sensors/lm-sensors.mk 2007-09-01 18:01:08 UTC (rev 19756)
@@ -0,0 +1,59 @@
+#############################################################
+#
+# lm-sensors
+#
+#############################################################
+LM_SENSORS_VERSION:=2.10.4
+LM_SENSORS_SOURCE:=lm-sensors_$(LM_SENSORS_VERSION).orig.tar.gz
+LM_SENSORS_PATCH:=lm-sensors_$(LM_SENSORS_VERSION)-1.diff.gz
+LM_SENSORS_SITE:=ftp://ftp.debian.org/debian/pool/main/l/lm-sensors/
+LM_SENSORS_DIR:=$(BUILD_DIR)/lm_sensors-$(LM_SENSORS_VERSION)
+LM_SENSORS_CAT:=$(ZCAT)
+LM_SENSORS_BINARY:=prog/sensors/sensors
+LM_SENSORS_TARGET_BINARY:=usr/bin/sensors
+
+$(DL_DIR)/$(LM_SENSORS_SOURCE):
+ $(WGET) -P $(DL_DIR) $(LM_SENSORS_SITE)/$(LM_SENSORS_SOURCE)
+
+$(DL_DIR)/$(LM_SENSORS_PATCH):
+ $(WGET) -P $(DL_DIR) $(LM_SENSORS_SITE)/$(LM_SENSORS_PATCH)
+
+lm-sensors-source: $(DL_DIR)/$(LM_SENSORS_SOURCE) $(DL_DIR)/$(LM_SENSORS_PATCH)
+
+$(LM_SENSORS_DIR)/.unpacked: $(DL_DIR)/$(LM_SENSORS_SOURCE) $(DL_DIR)/$(LM_SENSORS_PATCH)
+ $(LM_SENSORS_CAT) $(DL_DIR)/$(LM_SENSORS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) -
+ toolchain/patch-kernel.sh $(LM_SENSORS_DIR) package/lm-sensors/ lm-sensors\*.patch
+ifneq ($(LM_SENSORS_PATCH),)
+ (cd $(LM_SENSORS_DIR) && $(LM_SENSORS_CAT) $(DL_DIR)/$(LM_SENSORS_PATCH) | patch -p1)
+ if [ -d $(LM_SENSORS_DIR)/debian/patches ]; then \
+ toolchain/patch-kernel.sh $(LM_SENSORS_DIR) $(LM_SENSORS_DIR)/debian/patches \*.patch; \
+ fi
+endif
+ touch $@
+
+$(LM_SENSORS_DIR)/$(LM_SENSORS_BINARY): $(LM_SENSORS_DIR)/.unpacked
+ $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(LM_SENSORS_DIR) \
+ LINUX="$(LINUX_DIR)" KERNELVERSION=$(LINUX_HEADERS_VERSION) \
+ I2C_HEADERS=$(LINUX_DIR)/include \
+ DESTDIR=$(TARGET_DIR) user
+
+$(TARGET_DIR)/$(LM_SENSORS_TARGET_BINARY): $(LM_SENSORS_DIR)/$(LM_SENSORS_BINARY)
+ cp -dpf $(LM_SENSORS_DIR)/$(LM_SENSORS_BINARY) $@
+ $(STRIP) $(STRIP_STRIP_ALL) $@
+
+lm-sensors: uclibc libsysfs $(TARGET_DIR)/$(LM_SENSORS_TARGET_BINARY)
+
+lm-sensors-clean:
+ -$(MAKE) -C $(LM_SENSORS_DIR) clean
+ rm -f $(TARGET_DIR)/$(LM_SENSORS_TARGET_BINARY)
+
+lm-sensors-dirclean:
+ rm -rf $(LM_SENSORS_DIR)
+#############################################################
+#
+# Toplevel Makefile options
+#
+#############################################################
+ifeq ($(strip $(BR2_PACKAGE_LM_SENSORS)),y)
+TARGETS+=lm-sensors
+endif
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package: lm-sensors
2007-09-01 18:01 [Buildroot] svn commit: trunk/buildroot/package: lm-sensors aldot at uclibc.org
@ 2007-09-14 8:15 ` Hebbar
2007-09-14 9:29 ` Bernhard Fischer
0 siblings, 1 reply; 8+ messages in thread
From: Hebbar @ 2007-09-14 8:15 UTC (permalink / raw)
To: buildroot
Hi aldot,
make mklibs fails for lm-sensors because of missing lib libsensors.so.3.
When i searched i actually found it in $(LM_SENSORS_DIR)/lib/ folder
symbolically linked to libsensors.so.3.1.4. so i think we need to copy it
from here to root/usr/lib directory as the sensors binary is placed there.
Regards
Gururaja
aldot wrote:
>
> Author: aldot
> Date: 2007-09-01 11:01:08 -0700 (Sat, 01 Sep 2007)
> New Revision: 19756
>
> Log:
> - add lm-sensors package
>
>
> Added:
> trunk/buildroot/package/lm-sensors/
> trunk/buildroot/package/lm-sensors/Config.in
> trunk/buildroot/package/lm-sensors/lm-sensors.mk
>
> Modified:
> trunk/buildroot/package/Config.in
>
>
> Changeset:
> Modified: trunk/buildroot/package/Config.in
> ===================================================================
> --- trunk/buildroot/package/Config.in 2007-09-01 17:33:19 UTC (rev 19755)
> +++ trunk/buildroot/package/Config.in 2007-09-01 18:01:08 UTC (rev 19756)
> @@ -221,6 +221,7 @@
> source "package/libaio/Config.in"
> source "package/libraw1394/Config.in"
> source "package/libusb/Config.in"
> +source "package/lm-sensors/Config.in"
> source "package/lvm2/Config.in"
> source "package/mdadm/Config.in"
> source "package/memtester/Config.in"
>
> Added: trunk/buildroot/package/lm-sensors/Config.in
> ===================================================================
> --- trunk/buildroot/package/lm-sensors/Config.in
> (rev 0)
> +++ trunk/buildroot/package/lm-sensors/Config.in 2007-09-01 18:01:08 UTC
> (rev 19756)
> @@ -0,0 +1,12 @@
> +config BR2_PACKAGE_LM_SENSORS
> + bool "lm-sensors"
> + select BR2_PACKAGE_LIBSYSFS
> + default n
> + help
> + Lm-sensors is a hardware health monitoring package for
> + Linux. It allows you to access information from
> + temperature, voltage, and fan speed sensors. It
> + works with most newer systems.
> +
> + http://www.lm-sensors.org/
> +
>
> Added: trunk/buildroot/package/lm-sensors/lm-sensors.mk
> ===================================================================
> --- trunk/buildroot/package/lm-sensors/lm-sensors.mk
> (rev 0)
> +++ trunk/buildroot/package/lm-sensors/lm-sensors.mk 2007-09-01 18:01:08
> UTC (rev 19756)
> @@ -0,0 +1,59 @@
> +#############################################################
> +#
> +# lm-sensors
> +#
> +#############################################################
> +LM_SENSORS_VERSION:=2.10.4
> +LM_SENSORS_SOURCE:=lm-sensors_$(LM_SENSORS_VERSION).orig.tar.gz
> +LM_SENSORS_PATCH:=lm-sensors_$(LM_SENSORS_VERSION)-1.diff.gz
> +LM_SENSORS_SITE:=ftp://ftp.debian.org/debian/pool/main/l/lm-sensors/
> +LM_SENSORS_DIR:=$(BUILD_DIR)/lm_sensors-$(LM_SENSORS_VERSION)
> +LM_SENSORS_CAT:=$(ZCAT)
> +LM_SENSORS_BINARY:=prog/sensors/sensors
> +LM_SENSORS_TARGET_BINARY:=usr/bin/sensors
> +
> +$(DL_DIR)/$(LM_SENSORS_SOURCE):
> + $(WGET) -P $(DL_DIR) $(LM_SENSORS_SITE)/$(LM_SENSORS_SOURCE)
> +
> +$(DL_DIR)/$(LM_SENSORS_PATCH):
> + $(WGET) -P $(DL_DIR) $(LM_SENSORS_SITE)/$(LM_SENSORS_PATCH)
> +
> +lm-sensors-source: $(DL_DIR)/$(LM_SENSORS_SOURCE)
> $(DL_DIR)/$(LM_SENSORS_PATCH)
> +
> +$(LM_SENSORS_DIR)/.unpacked: $(DL_DIR)/$(LM_SENSORS_SOURCE)
> $(DL_DIR)/$(LM_SENSORS_PATCH)
> + $(LM_SENSORS_CAT) $(DL_DIR)/$(LM_SENSORS_SOURCE) | tar -C $(BUILD_DIR)
> $(TAR_OPTIONS) -
> + toolchain/patch-kernel.sh $(LM_SENSORS_DIR) package/lm-sensors/
> lm-sensors\*.patch
> +ifneq ($(LM_SENSORS_PATCH),)
> + (cd $(LM_SENSORS_DIR) && $(LM_SENSORS_CAT) $(DL_DIR)/$(LM_SENSORS_PATCH)
> | patch -p1)
> + if [ -d $(LM_SENSORS_DIR)/debian/patches ]; then \
> + toolchain/patch-kernel.sh $(LM_SENSORS_DIR)
> $(LM_SENSORS_DIR)/debian/patches \*.patch; \
> + fi
> +endif
> + touch $@
> +
> +$(LM_SENSORS_DIR)/$(LM_SENSORS_BINARY): $(LM_SENSORS_DIR)/.unpacked
> + $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(LM_SENSORS_DIR) \
> + LINUX="$(LINUX_DIR)" KERNELVERSION=$(LINUX_HEADERS_VERSION) \
> + I2C_HEADERS=$(LINUX_DIR)/include \
> + DESTDIR=$(TARGET_DIR) user
> +
> +$(TARGET_DIR)/$(LM_SENSORS_TARGET_BINARY):
> $(LM_SENSORS_DIR)/$(LM_SENSORS_BINARY)
> + cp -dpf $(LM_SENSORS_DIR)/$(LM_SENSORS_BINARY) $@
> + $(STRIP) $(STRIP_STRIP_ALL) $@
> +
> +lm-sensors: uclibc libsysfs $(TARGET_DIR)/$(LM_SENSORS_TARGET_BINARY)
> +
> +lm-sensors-clean:
> + -$(MAKE) -C $(LM_SENSORS_DIR) clean
> + rm -f $(TARGET_DIR)/$(LM_SENSORS_TARGET_BINARY)
> +
> +lm-sensors-dirclean:
> + rm -rf $(LM_SENSORS_DIR)
> +#############################################################
> +#
> +# Toplevel Makefile options
> +#
> +#############################################################
> +ifeq ($(strip $(BR2_PACKAGE_LM_SENSORS)),y)
> +TARGETS+=lm-sensors
> +endif
>
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
>
>
--
View this message in context: http://www.nabble.com/svn-commit%3A-trunk-buildroot-package%3A--lm-sensors-tf4365242.html#a12670634
Sent from the BuildRoot mailing list archive at Nabble.com.
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package: lm-sensors
2007-09-14 8:15 ` Hebbar
@ 2007-09-14 9:29 ` Bernhard Fischer
2007-09-14 9:47 ` Will Wagner
0 siblings, 1 reply; 8+ messages in thread
From: Bernhard Fischer @ 2007-09-14 9:29 UTC (permalink / raw)
To: buildroot
On Fri, Sep 14, 2007 at 01:15:13AM -0700, Hebbar wrote:
>
>Hi aldot,
Hi Gururaja
>
> make mklibs fails for lm-sensors because of missing lib libsensors.so.3.
>When i searched i actually found it in $(LM_SENSORS_DIR)/lib/ folder
>symbolically linked to libsensors.so.3.1.4. so i think we need to copy it
>from here to root/usr/lib directory as the sensors binary is placed there.
Can you send a tested patch, please?
TIA,
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package: lm-sensors
2007-09-14 9:29 ` Bernhard Fischer
@ 2007-09-14 9:47 ` Will Wagner
2007-09-14 11:26 ` Bernhard Fischer
0 siblings, 1 reply; 8+ messages in thread
From: Will Wagner @ 2007-09-14 9:47 UTC (permalink / raw)
To: buildroot
Bernhard,
Meant to say thank you for adding this package. I managed to get it
building with the following patch:
Index: package/lm-sensors/lm-sensors.mk
===================================================================
--- package/lm-sensors/lm-sensors.mk (revision 19797)
+++ package/lm-sensors/lm-sensors.mk (working copy)
@@ -40,6 +40,10 @@
$(TARGET_DIR)/$(LM_SENSORS_TARGET_BINARY):
$(LM_SENSORS_DIR)/$(LM_SENSORS_BINARY)
cp -dpf $(LM_SENSORS_DIR)/$(LM_SENSORS_BINARY) $@
$(STRIP) $(STRIP_STRIP_ALL) $@
+ cp -dpf $(LM_SENSORS_DIR)/etc/sensors.conf.eg
$(TARGET_DIR)/etc/sensors.conf
+ cp -dpf $(LM_SENSORS_DIR)/lib/libsensors.so.3.1.4 $(TARGET_DIR)/lib
+ (cd $(TARGET_DIR)/lib && ln -s libsensors.so.3.1.4 libsensors.so.3)
+ (cd $(TARGET_DIR)/lib && ln -s libsensors.so.3 libsensors.so)
lm-sensors: uclibc libsysfs $(TARGET_DIR)/$(LM_SENSORS_TARGET_BINARY)
Bernhard Fischer wrote:
> On Fri, Sep 14, 2007 at 01:15:13AM -0700, Hebbar wrote:
>> Hi aldot,
>
> Hi Gururaja
>> make mklibs fails for lm-sensors because of missing lib libsensors.so.3.
>> When i searched i actually found it in $(LM_SENSORS_DIR)/lib/ folder
>> symbolically linked to libsensors.so.3.1.4. so i think we need to copy it
>>from here to root/usr/lib directory as the sensors binary is placed there.
>
> Can you send a tested patch, please?
>
> TIA,
> _______________________________________________
> buildroot mailing list
> buildroot at uclibc.org
> http://busybox.net/mailman/listinfo/buildroot
--
------------------------------------------------------------------------
Will Wagner will_wagner at carallon.com
Senior Project Engineer Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package: lm-sensors
2007-09-14 9:47 ` Will Wagner
@ 2007-09-14 11:26 ` Bernhard Fischer
2007-09-14 11:30 ` Will Wagner
0 siblings, 1 reply; 8+ messages in thread
From: Bernhard Fischer @ 2007-09-14 11:26 UTC (permalink / raw)
To: buildroot
On Fri, Sep 14, 2007 at 10:47:08AM +0100, Will Wagner wrote:
> Bernhard,
>
> Meant to say thank you for adding this package. I managed to get it
welcome.
> building with the following patch:
>
> Index: package/lm-sensors/lm-sensors.mk
> ===================================================================
> --- package/lm-sensors/lm-sensors.mk (revision 19797)
> +++ package/lm-sensors/lm-sensors.mk (working copy)
> @@ -40,6 +40,10 @@
> $(TARGET_DIR)/$(LM_SENSORS_TARGET_BINARY):
> $(LM_SENSORS_DIR)/$(LM_SENSORS_BINARY)
> cp -dpf $(LM_SENSORS_DIR)/$(LM_SENSORS_BINARY) $@
> $(STRIP) $(STRIP_STRIP_ALL) $@
> + cp -dpf $(LM_SENSORS_DIR)/etc/sensors.conf.eg
> $(TARGET_DIR)/etc/sensors.conf
> + cp -dpf $(LM_SENSORS_DIR)/lib/libsensors.so.3.1.4 $(TARGET_DIR)/lib
> + (cd $(TARGET_DIR)/lib && ln -s libsensors.so.3.1.4 libsensors.so.3)
> + (cd $(TARGET_DIR)/lib && ln -s libsensors.so.3 libsensors.so)
well, libsensors* should live in usr/lib. Try r19830. Ok now?
thanks,
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package: lm-sensors
2007-09-14 11:26 ` Bernhard Fischer
@ 2007-09-14 11:30 ` Will Wagner
2007-09-14 18:06 ` Bernhard Fischer
0 siblings, 1 reply; 8+ messages in thread
From: Will Wagner @ 2007-09-14 11:30 UTC (permalink / raw)
To: buildroot
Bernhard,
The only other thing is that the sensors executable needs the
/etc/sensors.conf file otherwise it will fail to run. The default file
is enormous but it does work.
Bernhard Fischer wrote:
> On Fri, Sep 14, 2007 at 10:47:08AM +0100, Will Wagner wrote:
>> Bernhard,
>>
>> Meant to say thank you for adding this package. I managed to get it
>
> welcome.
>
>> building with the following patch:
>>
>> Index: package/lm-sensors/lm-sensors.mk
>> ===================================================================
>> --- package/lm-sensors/lm-sensors.mk (revision 19797)
>> +++ package/lm-sensors/lm-sensors.mk (working copy)
>> @@ -40,6 +40,10 @@
>> $(TARGET_DIR)/$(LM_SENSORS_TARGET_BINARY):
>> $(LM_SENSORS_DIR)/$(LM_SENSORS_BINARY)
>> cp -dpf $(LM_SENSORS_DIR)/$(LM_SENSORS_BINARY) $@
>> $(STRIP) $(STRIP_STRIP_ALL) $@
>> + cp -dpf $(LM_SENSORS_DIR)/etc/sensors.conf.eg
>> $(TARGET_DIR)/etc/sensors.conf
>> + cp -dpf $(LM_SENSORS_DIR)/lib/libsensors.so.3.1.4 $(TARGET_DIR)/lib
>> + (cd $(TARGET_DIR)/lib && ln -s libsensors.so.3.1.4 libsensors.so.3)
>> + (cd $(TARGET_DIR)/lib && ln -s libsensors.so.3 libsensors.so)
>
> well, libsensors* should live in usr/lib. Try r19830. Ok now?
>
> thanks,
--
------------------------------------------------------------------------
Will Wagner will_wagner at carallon.com
Senior Project Engineer Office Tel: +44 (0)20 7371 2032
Carallon Ltd, Studio G20, Shepherds Building, Rockley Rd, London W14 0DA
------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package: lm-sensors
2007-09-14 11:30 ` Will Wagner
@ 2007-09-14 18:06 ` Bernhard Fischer
2007-09-14 19:11 ` Bernhard Fischer
0 siblings, 1 reply; 8+ messages in thread
From: Bernhard Fischer @ 2007-09-14 18:06 UTC (permalink / raw)
To: buildroot
On Fri, Sep 14, 2007 at 12:30:44PM +0100, Will Wagner wrote:
> Bernhard,
>
> The only other thing is that the sensors executable needs the
> /etc/sensors.conf file otherwise it will fail to run. The default file is
> enormous but it does work.
Since i never built it, can you tell me where the .conf lives?
Something like this could perhaps strip it a bit (iff there defaults, of
course..)
cp -dpf $(LM_SENSORS_DIR)/the.conf $(TARGET_DIR)/the.conf
$(SED) '/^#/d' -e "s/#.*//g" -e "/^$/d" $(TARGET_DIR)/the.conf
# or something like this, perhaps. Manually customize it
# otherwise, or provide your own, i'd say.
HTH,
Bernhard
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Buildroot] svn commit: trunk/buildroot/package: lm-sensors
2007-09-14 18:06 ` Bernhard Fischer
@ 2007-09-14 19:11 ` Bernhard Fischer
0 siblings, 0 replies; 8+ messages in thread
From: Bernhard Fischer @ 2007-09-14 19:11 UTC (permalink / raw)
To: buildroot
On Fri, Sep 14, 2007 at 08:06:27PM +0200, Bernhard Fischer wrote:
>On Fri, Sep 14, 2007 at 12:30:44PM +0100, Will Wagner wrote:
>> Bernhard,
>>
>> The only other thing is that the sensors executable needs the
>> /etc/sensors.conf file otherwise it will fail to run. The default file is
>> enormous but it does work.
>
>Since i never built it, can you tell me where the .conf lives?
alright. Now i remember that it was me who added it -- shame on me for
forgetting to strip off -O2 and not copying the needed files.. fixed
now. Sorry
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2007-09-14 19:11 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-09-01 18:01 [Buildroot] svn commit: trunk/buildroot/package: lm-sensors aldot at uclibc.org
2007-09-14 8:15 ` Hebbar
2007-09-14 9:29 ` Bernhard Fischer
2007-09-14 9:47 ` Will Wagner
2007-09-14 11:26 ` Bernhard Fischer
2007-09-14 11:30 ` Will Wagner
2007-09-14 18:06 ` Bernhard Fischer
2007-09-14 19:11 ` Bernhard Fischer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox