[Buildroot] [PATCH v2 2/2] udev: bump to 177
yegorslists at googlemail.com
yegorslists at googlemail.com
Fri Jan 20 10:30:14 UTC 2012
From: Yegor Yefremov <yegorslists at googlemail.com>
Changes:
- Linux kernel requirement: 2.6.34 and above (devtmpfs is mandatory)
- usbutils, hwdata are now mandatory, so that
usb.ids and pci.ids paths are provided by default
- persistant rules generator is disabled by default, so option
is introduced to enable this option if desired
- new dependencies: kmod and e2fsprogs
Signed-off-by: Yegor Yefremov <yegorslists at googlemail.com>
Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
---
package/udev/Config.in | 15 ++++++++++-----
package/udev/S10udev | 2 +-
package/udev/udev.mk | 16 ++++++++++------
3 files changed, 21 insertions(+), 12 deletions(-)
diff --git a/package/udev/Config.in b/package/udev/Config.in
index 391c718..8588aa0 100644
--- a/package/udev/Config.in
+++ b/package/udev/Config.in
@@ -1,6 +1,10 @@
config BR2_PACKAGE_UDEV
bool "udev"
depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
+ select BR2_PACKAGE_E2FSPROGS
+ select BR2_PACKAGE_USBUTILS
+ select BR2_PACKAGE_HWDATA
+ select BR2_PACKAGE_KMOD
help
Userspace device daemon.
@@ -8,19 +12,20 @@ config BR2_PACKAGE_UDEV
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
+ libacl and libglib2
comment "udev extras 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..928c7b6 100755
--- a/package/udev/S10udev
+++ b/package/udev/S10udev
@@ -17,7 +17,7 @@
#
# Check for missing binaries
-UDEV_BIN=/sbin/udevd
+UDEV_BIN=/lib/udev/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..03d1d22 100644
--- a/package/udev/udev.mk
+++ b/package/udev/udev.mk
@@ -3,7 +3,7 @@
# udev
#
#############################################################
-UDEV_VERSION = 173
+UDEV_VERSION = 177
UDEV_SOURCE = udev-$(UDEV_VERSION).tar.bz2
UDEV_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/hotplug/
UDEV_INSTALL_STAGING = YES
@@ -12,19 +12,23 @@ UDEV_CONF_OPT = \
--sbindir=/sbin \
--with-rootlibdir=/lib \
--libexecdir=/lib/udev \
+ --with-usb-ids-path=$(TARGET_DIR)/usr/share/hwdata/usb.ids \
+ --with-pci-ids-path=$(TARGET_DIR)/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 e2fsprogs kmod usbutils hwdata
+
+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_DEPENDENCIES += acl 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 \
--enable-udev_acl
else
UDEV_CONF_OPT += \
- --disable-hwdb \
--disable-gudev
endif
--
1.7.1.1
More information about the buildroot
mailing list