Re: [OpenWrt-Devel] [PATCH] lm-sensors package upgrade

2010-11-01 Thread Luka Perkov
On Sun, Oct 31, 2010 at 11:48:39PM +0100, Michael Büsch wrote:
 PKG_BUILD_PARALLEL does nothing unless you use the default
 build macro, or PKG_JOBS.
 
 So you either want to $(call Build/Compile/Default) and set the
 appropriate MAKE_FLAGS, or add PKG_JOBS to your Build/Compile macro.
 
 I think you should use $(INSTALL_DIR) instead of mkdir -p.

Thank you for your comments. Resending fixed patch.

Signed-off-by: Luka Perkov  openwrt --to-- lukaperkov.net 
---

Index: lm-sensors/Makefile
===
--- lm-sensors/Makefile (revision 23647)
+++ lm-sensors/Makefile (working copy)
@@ -9,27 +9,27 @@
 
 PKG_NAME:=lm-sensors
 PKG_VERSION:=3.2.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=lm_sensors-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://dl.lm-sensors.org/lm-sensors/releases/
 PKG_MD5SUM:=829d88fb09d67723fbf42853eb84d1fd
-
+ 
 PKG_BUILD_DIR:=$(BUILD_DIR)/lm_sensors-$(PKG_VERSION)
+PKG_BUILD_PARALLEL:=1
 
 include $(INCLUDE_DIR)/package.mk
 
 define Package/lm-sensors/Default
-  SECTION:=utils
-  CATEGORY:=Utilities
-  TITLE:=lm-sensors
   DEPENDS:=+sysfsutils
   URL:=http://www.lm-sensors.org/
 endef
 
 define Package/lm-sensors
   $(call Package/lm-sensors/Default)
-  TITLE+=(programs)
+  SECTION:=utils
+  CATEGORY:=Utilities
+  TITLE:=lm-sensors
   DEPENDS+=+libsensors
 endef
 
@@ -37,7 +37,7 @@
   $(call Package/lm-sensors/Default)
   SECTION:=libs
   CATEGORY:=Libraries
-  TITLE+=libraries
+  TITLE:=libsensors
 endef
 
 define Package/lm-sensors/description
@@ -49,11 +49,12 @@
 endef
 
 define Package/lm-sensors/conffiles
-/etc/sensors.conf
+   /etc/sensors.conf
 endef
 
 define Build/Compile
-   $(MAKE) -C $(PKG_BUILD_DIR) \
+   $(MAKE) $(PKG_JOBS) -C $(PKG_BUILD_DIR) \
+   $(TARGET_CONFIGURE_OPTS) \
KERNELVERSION=$(LINUX_VERSION) \
LINUX=$(LINUX_DIR) \
CC=$(TARGET_CC) \
@@ -63,6 +64,17 @@
user
 endef
 
+define Build/InstallDev
+   $(INSTALL_DIR) $(1)/usr/include/sensors
+   $(CP) \
+   $(PKG_BUILD_DIR)/lib/sensors.h \
+   $(1)/usr/include/sensors
+   $(INSTALL_DIR) $(1)/usr/lib
+   $(CP) \
+   $(PKG_BUILD_DIR)/lib/libsensors.{a,so*} \
+   $(1)/usr/lib/
+endef
+
 define Package/lm-sensors/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/prog/sensors/sensors $(1)/usr/sbin/
@@ -76,6 +88,5 @@
$(CP) $(PKG_BUILD_DIR)/lib/libsensors.so* $(1)/usr/lib/
 endef
 
-
 $(eval $(call BuildPackage,lm-sensors))
 $(eval $(call BuildPackage,libsensors))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] lm-sensors package upgrade

2010-10-31 Thread Luka Perkov
Upgrade lm-sensors package. Patch enables compiling applications that
depend on libsensors library.

Signed-off-by: Luka Perkov  openwrt --to-- lukaperkov.net 
---

Index: lm-sensors/Makefile
===
--- lm-sensors/Makefile (revision 23647)
+++ lm-sensors/Makefile (working copy)
@@ -9,27 +9,27 @@
 
 PKG_NAME:=lm-sensors
 PKG_VERSION:=3.2.0
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_SOURCE:=lm_sensors-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://dl.lm-sensors.org/lm-sensors/releases/
 PKG_MD5SUM:=829d88fb09d67723fbf42853eb84d1fd
-
+ 
 PKG_BUILD_DIR:=$(BUILD_DIR)/lm_sensors-$(PKG_VERSION)
+PKG_BUILD_PARALLEL:=1
 
 include $(INCLUDE_DIR)/package.mk
 
 define Package/lm-sensors/Default
-  SECTION:=utils
-  CATEGORY:=Utilities
-  TITLE:=lm-sensors
   DEPENDS:=+sysfsutils
   URL:=http://www.lm-sensors.org/
 endef
 
 define Package/lm-sensors
   $(call Package/lm-sensors/Default)
-  TITLE+=(programs)
+  SECTION:=utils
+  CATEGORY:=Utilities
+  TITLE:=lm-sensors
   DEPENDS+=+libsensors
 endef
 
@@ -37,7 +37,7 @@
   $(call Package/lm-sensors/Default)
   SECTION:=libs
   CATEGORY:=Libraries
-  TITLE+=libraries
+  TITLE:=libsensors
 endef
 
 define Package/lm-sensors/description
@@ -49,11 +49,12 @@
 endef
 
 define Package/lm-sensors/conffiles
-/etc/sensors.conf
+   /etc/sensors.conf
 endef
 
 define Build/Compile
$(MAKE) -C $(PKG_BUILD_DIR) \
+   $(TARGET_CONFIGURE_OPTS) \
KERNELVERSION=$(LINUX_VERSION) \
LINUX=$(LINUX_DIR) \
CC=$(TARGET_CC) \
@@ -63,6 +64,17 @@
user
 endef
 
+define Build/InstallDev
+   mkdir -p $(1)/usr/include/sensors
+   $(CP) \
+   $(PKG_BUILD_DIR)/lib/sensors.h \
+   $(1)/usr/include/sensors
+   mkdir -p $(1)/usr/lib
+   $(CP) \
+   $(PKG_BUILD_DIR)/lib/libsensors.{a,so*} \
+   $(1)/usr/lib/
+endef
+
 define Package/lm-sensors/install
$(INSTALL_DIR) $(1)/usr/sbin
$(INSTALL_BIN) $(PKG_BUILD_DIR)/prog/sensors/sensors $(1)/usr/sbin/
@@ -76,6 +88,5 @@
$(CP) $(PKG_BUILD_DIR)/lib/libsensors.so* $(1)/usr/lib/
 endef
 
-
 $(eval $(call BuildPackage,lm-sensors))
 $(eval $(call BuildPackage,libsensors))
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] lm-sensors package upgrade

2010-10-31 Thread Michael Büsch
On Sun, 2010-10-31 at 23:25 +0100, Luka Perkov wrote: 
 +PKG_BUILD_PARALLEL:=1

 define Build/Compile
   $(MAKE) -C $(PKG_BUILD_DIR) \
 + $(TARGET_CONFIGURE_OPTS) \
   KERNELVERSION=$(LINUX_VERSION) \
   LINUX=$(LINUX_DIR) \
   CC=$(TARGET_CC) \
 @@ -63,6 +64,17 @@
   user
  endef


PKG_BUILD_PARALLEL does nothing unless you use the default
build macro, or PKG_JOBS.

So you either want to $(call Build/Compile/Default) and set the
appropriate MAKE_FLAGS, or add PKG_JOBS to your Build/Compile macro.



 +define Build/InstallDev
 +   mkdir -p $(1)/usr/include/sensors

I think you should use $(INSTALL_DIR) instead of mkdir -p.

-- 
Greetings Michael.

___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


Re: [OpenWrt-Devel] [PATCH] lm-sensors package upgrade/update

2010-08-04 Thread Jo-Philipp Wich
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Committed in r22491 - thanks!
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkxZoScACgkQdputYINPTPMTsACfS56kXhAZGNAR+0km8Nb8apO1
6ZEAnAu8dfFSXudZdKHu6fOiPS6k3wHV
=gYWs
-END PGP SIGNATURE-
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel


[OpenWrt-Devel] [PATCH] lm-sensors package upgrade/update

2010-08-02 Thread Luka Perkov
Update the lm-Sensors Makefile to new the release (3.1.2). Enable
package selection on other platforms.

Signed-off-by: Luka Perkov  openwrt --to-- lukaperkov.net 
---


Index: utils/lm-sensors/Makefile
===
--- utils/lm-sensors/Makefile   (revision 22462)
+++ utils/lm-sensors/Makefile   (working copy)
@@ -8,12 +8,12 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=lm-sensors
-PKG_VERSION:=3.1.1
+PKG_VERSION:=3.1.2
 PKG_RELEASE:=1
 
 PKG_SOURCE:=lm_sensors-$(PKG_VERSION).tar.bz2
 PKG_SOURCE_URL:=http://dl.lm-sensors.org/lm-sensors/releases/
-PKG_MD5SUM:=613d7cfa23b70c0abae3fabb0a72ff5f
+PKG_MD5SUM:=58a9a225808ac4587c4c8cbd12b40b5c
 
 PKG_BUILD_DIR:=$(BUILD_DIR)/lm_sensors-$(PKG_VERSION)
 
@@ -23,21 +23,21 @@
   SECTION:=utils
   CATEGORY:=Utilities
   TITLE:=lm-sensors
-  DEPENDS:=+sysfsutils @LINUX_2_6
+  DEPENDS:=+sysfsutils
   URL:=http://www.lm-sensors.org/
 endef
 
 define Package/lm-sensors
   $(call Package/lm-sensors/Default)
-  TITLE+= (programs)
-  DEPENDS+= +libsensors @TARGET_x86
+  TITLE+=(programs)
+  DEPENDS+=+libsensors
 endef
 
 define Package/libsensors
   $(call Package/lm-sensors/Default)
   SECTION:=libs
   CATEGORY:=Libraries
-  TITLE+= libraries
+  TITLE+=libraries
 endef
 
 define Package/lm-sensors/description
___
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel