All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] udev: bump to 181 and other fixes
@ 2012-02-07 16:16 yegorslists at googlemail.com
  2012-02-07 16:16 ` [Buildroot] [PATCH 2/2] kmod: bump to 5 yegorslists at googlemail.com
  2012-02-07 19:44 ` [Buildroot] [PATCH 1/2] udev: bump to 181 and other fixes Arnout Vandecappelle
  0 siblings, 2 replies; 4+ messages in thread
From: yegorslists at googlemail.com @ 2012-02-07 16:16 UTC (permalink / raw)
  To: buildroot

From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>

Changes:
- Linux kernel requirement: 2.6.34 and above (devtmpfs is mandatory)
(this also applies to the chosen toolchain, because of Kernel headers)
- optional dependency on libusb and usbutils removed
- added dependency on kmod
- added dependency on util-linux for libblkid
- install in /lib/udev instead of /usr/libexec/udev
- udevd moved to /lib/udev
- fixed path to pci.ids and usb.ids
- persistent rules generator is disabled by default, so option
is introduced to enable this option if desired

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 package/udev/Config.in   |   26 +++++++++++++++++---------
 package/udev/S10udev     |    4 ++--
 package/udev/udev.mk     |   20 ++++++++++++--------
 target/generic/Config.in |    2 ++
 4 files changed, 33 insertions(+), 19 deletions(-)

diff --git a/package/udev/Config.in b/package/udev/Config.in
index 391c718..dfb4f0d 100644
--- a/package/udev/Config.in
+++ b/package/udev/Config.in
@@ -1,31 +1,39 @@
 config BR2_PACKAGE_UDEV
 	bool "udev"
 	depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
+	depends on BR2_LARGEFILE # util-linux
+	depends on BR2_USE_WCHAR # util-linux
+	select BR2_PACKAGE_UTIL_LINUX
+	select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
+	select BR2_PACKAGE_KMOD
 	help
 	  Userspace device daemon.
 
+	  udev requires a Linux kernel >= 2.6.34: it relies on devtmpfs.
+
 	  ftp://ftp.kernel.org/pub/linux/utils/kernel/hotplug/
 
 if BR2_PACKAGE_UDEV
 
+config BR2_PACKAGE_UDEV_RULES_GEN
+	bool "enable rules generator"
+	help
+	  Enable persistant rules generator
+
 config BR2_PACKAGE_UDEV_ALL_EXTRAS
 	bool "enable all extras"
-	depends on BR2_LARGEFILE # acl
-	depends on BR2_USE_WCHAR # libglib2
 	select BR2_PACKAGE_ACL
-	select BR2_PACKAGE_LIBUSB
-	select BR2_PACKAGE_LIBUSB_COMPAT
-	select BR2_PACKAGE_USBUTILS
 	select BR2_PACKAGE_HWDATA
 	select BR2_PACKAGE_LIBGLIB2
 	help
 	  Enable all extras with external dependencies like
-	  libacl, libusb, libusb-compat, usbutils, hwdata
-
-comment "udev extras requires a toolchain with LARGEFILE + WCHAR support"
-	depends on !(BR2_LARGEFILE && BR2_USE_WCHAR)
+	  libacl, hwdata and libglib2
 
 endif
 
 comment "udev requires /dev mgmnt set to udev under System configuration"
 	depends on !BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
+
+comment "udev requires a toolchain with LARGEFILE + WCHAR support"
+    depends on !(BR2_LARGEFILE && BR2_USE_WCHAR)
+
diff --git a/package/udev/S10udev b/package/udev/S10udev
index 29eb107..70a7c34 100755
--- a/package/udev/S10udev
+++ b/package/udev/S10udev
@@ -2,7 +2,7 @@
 #
 # udev	This is a minimal non-LSB version of a UDEV startup script.  It
 #	was derived by stripping down the udev-058 LSB version for use
-#	with buildroot on embedded hardware using Linux 2.6.12+ kernels.
+#	with buildroot on embedded hardware using Linux 2.6.34+ kernels.
 #
 #	You may need to customize this for your system's resource limits
 #	(including startup time!) and administration.  For example, if
@@ -17,7 +17,7 @@
 #
 
 # Check for missing binaries
-UDEV_BIN=/sbin/udevd
+UDEV_BIN=/lib/udev/udevd
 test -x $UDEV_BIN || exit 5
 
 # Check for config file and read it
diff --git a/package/udev/udev.mk b/package/udev/udev.mk
index 1825396..88df268 100644
--- a/package/udev/udev.mk
+++ b/package/udev/udev.mk
@@ -3,7 +3,7 @@
 # udev
 #
 #############################################################
-UDEV_VERSION = 173
+UDEV_VERSION = 181
 UDEV_SOURCE = udev-$(UDEV_VERSION).tar.bz2
 UDEV_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/hotplug/
 UDEV_INSTALL_STAGING = YES
@@ -11,20 +11,24 @@ UDEV_INSTALL_STAGING = YES
 UDEV_CONF_OPT =			\
 	--sbindir=/sbin		\
 	--with-rootlibdir=/lib	\
-	--libexecdir=/lib/udev	\
+	--libexecdir=/lib	\
+	--with-usb-ids-path=/usr/share/hwdata/usb.ids	\
+	--with-pci-ids-path=/usr/share/hwdata/pci.ids	\
+	--with-firmware-path=/lib/firmware		\
 	--disable-introspection
 
-UDEV_DEPENDENCIES = host-gperf host-pkg-config
+UDEV_DEPENDENCIES = host-gperf host-pkg-config util-linux kmod
+
+ifeq ($(BR2_PACKAGE_UDEV_RULES_GEN),y)
+UDEV_CONF_OPT += --enable-rule_generator
+endif
 
 ifeq ($(BR2_PACKAGE_UDEV_ALL_EXTRAS),y)
-UDEV_DEPENDENCIES += libusb libusb-compat acl usbutils hwdata libglib2
-UDEV_CONF_OPT +=							\
-	--with-pci-ids-path=$(TARGET_DIR)/usr/share/hwdata/pci.ids	\
-	--with-usb-ids-path=$(TARGET_DIR)/usr/share/hwdata/usb.ids	\
+UDEV_DEPENDENCIES += acl usbutils hwdata libglib2
+UDEV_CONF_OPT +=		\
 	--enable-udev_acl
 else
 UDEV_CONF_OPT +=		\
-	--disable-hwdb		\
 	--disable-gudev
 endif
 
diff --git a/target/generic/Config.in b/target/generic/Config.in
index a91de32..5334a4b 100644
--- a/target/generic/Config.in
+++ b/target/generic/Config.in
@@ -28,6 +28,8 @@ config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV
 
 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
 	bool "Dynamic using udev"
+	depends on BR2_LARGEFILE # udev
+	depends on BR2_USE_WCHAR # udev
 	select BR2_PACKAGE_UDEV
 
 endchoice
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 2/2] kmod: bump to 5
  2012-02-07 16:16 [Buildroot] [PATCH 1/2] udev: bump to 181 and other fixes yegorslists at googlemail.com
@ 2012-02-07 16:16 ` yegorslists at googlemail.com
  2012-02-07 19:44 ` [Buildroot] [PATCH 1/2] udev: bump to 181 and other fixes Arnout Vandecappelle
  1 sibling, 0 replies; 4+ messages in thread
From: yegorslists at googlemail.com @ 2012-02-07 16:16 UTC (permalink / raw)
  To: buildroot

From: Yegor Yefremov <yegorslists@googlemail.com>

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 package/kmod/kmod.mk |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk
index 0e3bc34..acf5f0a 100644
--- a/package/kmod/kmod.mk
+++ b/package/kmod/kmod.mk
@@ -1,4 +1,4 @@
-KMOD_VERSION = 4
+KMOD_VERSION = 5
 KMOD_SOURCE = kmod-$(KMOD_VERSION).tar.xz
 KMOD_SITE = http://packages.profusion.mobi/kmod/
 KMOD_INSTALL_STAGING = YES
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/2] udev: bump to 181 and other fixes
  2012-02-07 16:16 [Buildroot] [PATCH 1/2] udev: bump to 181 and other fixes yegorslists at googlemail.com
  2012-02-07 16:16 ` [Buildroot] [PATCH 2/2] kmod: bump to 5 yegorslists at googlemail.com
@ 2012-02-07 19:44 ` Arnout Vandecappelle
  2012-02-08  9:52   ` Yegor Yefremov
  1 sibling, 1 reply; 4+ messages in thread
From: Arnout Vandecappelle @ 2012-02-07 19:44 UTC (permalink / raw)
  To: buildroot

On Tuesday 07 February 2012 17:16:19 yegorslists at googlemail.com wrote:
> From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>

 Sorry about that - I have --reset-author on by default on 
git commit --amend.  Yegor should remain as author, of course.

[snip]
>  config BR2_PACKAGE_UDEV_ALL_EXTRAS
>  	bool "enable all extras"
> -	depends on BR2_LARGEFILE # acl
> -	depends on BR2_USE_WCHAR # libglib2
>  	select BR2_PACKAGE_ACL
> -	select BR2_PACKAGE_LIBUSB
> -	select BR2_PACKAGE_LIBUSB_COMPAT
> -	select BR2_PACKAGE_USBUTILS
>  	select BR2_PACKAGE_HWDATA
>  	select BR2_PACKAGE_LIBGLIB2
>  	help
>  	  Enable all extras with external dependencies like
> -	  libacl, libusb, libusb-compat, usbutils, hwdata
> -
> -comment "udev extras requires a toolchain with LARGEFILE + WCHAR support"
> -	depends on !(BR2_LARGEFILE && BR2_USE_WCHAR)
> +	  libacl, hwdata and libglib2
[snip]
>  ifeq ($(BR2_PACKAGE_UDEV_ALL_EXTRAS),y)
> -UDEV_DEPENDENCIES += libusb libusb-compat acl usbutils hwdata libglib2
> -UDEV_CONF_OPT +=							\
> -	--with-pci-ids-path=$(TARGET_DIR)/usr/share/hwdata/pci.ids	\
> -	--with-usb-ids-path=$(TARGET_DIR)/usr/share/hwdata/usb.ids	\
> +UDEV_DEPENDENCIES += acl usbutils hwdata libglib2

 There's an inconsistency between the config and the mk-file here:
mk-file depends on usbutils but Config.in doesn't select it. I realize 
I wrote this myself - to err is human :-)

 Regards,
 Arnout


-- 
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] [PATCH 1/2] udev: bump to 181 and other fixes
  2012-02-07 19:44 ` [Buildroot] [PATCH 1/2] udev: bump to 181 and other fixes Arnout Vandecappelle
@ 2012-02-08  9:52   ` Yegor Yefremov
  0 siblings, 0 replies; 4+ messages in thread
From: Yegor Yefremov @ 2012-02-08  9:52 UTC (permalink / raw)
  To: buildroot

Am 07.02.2012 20:44, schrieb Arnout Vandecappelle:
> On Tuesday 07 February 2012 17:16:19 yegorslists at googlemail.com wrote:
>> From: "Arnout Vandecappelle (Essensium/Mind)" <arnout@mind.be>
> 
>  Sorry about that - I have --reset-author on by default on 
> git commit --amend.  Yegor should remain as author, of course.

Changed

> [snip]
>>  config BR2_PACKAGE_UDEV_ALL_EXTRAS
>>  	bool "enable all extras"
>> -	depends on BR2_LARGEFILE # acl
>> -	depends on BR2_USE_WCHAR # libglib2
>>  	select BR2_PACKAGE_ACL
>> -	select BR2_PACKAGE_LIBUSB
>> -	select BR2_PACKAGE_LIBUSB_COMPAT
>> -	select BR2_PACKAGE_USBUTILS
>>  	select BR2_PACKAGE_HWDATA
>>  	select BR2_PACKAGE_LIBGLIB2
>>  	help
>>  	  Enable all extras with external dependencies like
>> -	  libacl, libusb, libusb-compat, usbutils, hwdata
>> -
>> -comment "udev extras requires a toolchain with LARGEFILE + WCHAR support"
>> -	depends on !(BR2_LARGEFILE && BR2_USE_WCHAR)
>> +	  libacl, hwdata and libglib2
> [snip]
>>  ifeq ($(BR2_PACKAGE_UDEV_ALL_EXTRAS),y)
>> -UDEV_DEPENDENCIES += libusb libusb-compat acl usbutils hwdata libglib2
>> -UDEV_CONF_OPT +=							\
>> -	--with-pci-ids-path=$(TARGET_DIR)/usr/share/hwdata/pci.ids	\
>> -	--with-usb-ids-path=$(TARGET_DIR)/usr/share/hwdata/usb.ids	\
>> +UDEV_DEPENDENCIES += acl usbutils hwdata libglib2
> 
>  There's an inconsistency between the config and the mk-file here:
> mk-file depends on usbutils but Config.in doesn't select it. I realize 
> I wrote this myself - to err is human :-)

I had to check this too. Fixed. Thanks.

Yegor

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2012-02-08  9:52 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-02-07 16:16 [Buildroot] [PATCH 1/2] udev: bump to 181 and other fixes yegorslists at googlemail.com
2012-02-07 16:16 ` [Buildroot] [PATCH 2/2] kmod: bump to 5 yegorslists at googlemail.com
2012-02-07 19:44 ` [Buildroot] [PATCH 1/2] udev: bump to 181 and other fixes Arnout Vandecappelle
2012-02-08  9:52   ` Yegor Yefremov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.