udev: convert to virtual package
authoreric.le.bihan.dev@free.fr <eric.le.bihan.dev@free.fr>
Fri, 7 Feb 2014 13:21:33 +0000 (14:21 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Wed, 12 Feb 2014 21:14:19 +0000 (22:14 +0100)
This patch converts udev to a virtual package. For the moment, there is only
one provider for the udev features: eudev.

Packages meant to provide udev-like features must select the symbol
BR2_PACKAGE_HAS_UDEV.

Packages depending on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV or
BR2_PACKAGE_UDEV have been converted to use the new symbol.

[Peter: move legacy symbols under 2014.05]
Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
28 files changed:
Config.in.legacy
docs/manual/adding-packages-directory.txt
linux/linux.mk
package/ccid/ccid.mk
package/eudev/Config.in
package/gpsd/gpsd.mk
package/libatasmart/Config.in
package/libcec/libcec.mk
package/libdrm/libdrm.mk
package/libmbim/Config.in
package/libusb/libusb.mk
package/modem-manager/Config.in
package/network-manager/Config.in
package/ofono/ofono.mk
package/pcsc-lite/Config.in
package/pcsc-lite/pcsc-lite.mk
package/pulseaudio/pulseaudio.mk
package/systemd/Config.in
package/udev/Config.in
package/udev/udev.mk
package/udisks/Config.in
package/usbmount/Config.in
package/vlc/vlc.mk
package/weston/Config.in
package/x11r7/xdriver_xf86-input-evdev/Config.in
package/x11r7/xserver_xorg-server/xserver_xorg-server.mk
package/xenomai/xenomai.mk
system/Config.in

index 4424e31b5d2b01e5135d5d1cbfc7c75a08855511..69d6abc31de61219e92795d30dba9f12be3bbe84 100644 (file)
@@ -98,6 +98,64 @@ comment "build, or run, in unpredictable ways.               "
 comment "----------------------------------------------------"
 endif
 
+###############################################################################
+comment "Legacy options removed in 2014.05"
+
+config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
+       bool "/dev management by udev removed"
+       select BR2_LEGACY
+       help
+         The 'udev' package has been converted to a virtual package.
+         There is currently one provider for this feature: 'eudev'.
+
+         Therefore, you must choose 'Dynamic using eudev' in the
+         '/dev management' menu to get the same behaviour as in your
+          old configuration.
+
+         You must also check the packages depending on 'udev' are still
+         selected.
+
+config BR2_PACKAGE_UDEV
+       bool "udev is now a virtual package"
+       select BR2_LEGACY
+       select BR2_PACKAGE_HAS_UDEV
+       help
+         The 'udev' package has been converted to a virtual package.
+         There is currently one provider for this feature: 'eudev'.
+
+         Your old configuration refers to packages depending on 'udev',
+         either for build or at runtime.
+
+         Check that a 'udev' provider is selected, i.e. that 'eudev' is
+         selected, which is the case if '/dev management' is set to
+         'Dynamic using eudev'.
+
+config BR2_PACKAGE_UDEV_RULES_GEN
+       bool "udev rules generation handled by eudev"
+       select BR2_LEGACY
+       select BR2_PACKAGE_EUDEV
+       select BR2_PACKAGE_EUDEV_RULES_GEN
+       help
+         The 'udev' package has been converted to a virtual package.
+         There is currently one provider for this feature: 'eudev'.
+
+         udev rules generation will now be handled by 'eudev'.
+
+         Check that '/dev management' is set to 'Dynamic using eudev'
+         to get the same behaviour as in your old configuration.
+
+config BR2_PACKAGE_UDEV_ALL_EXTRAS
+       bool "udev extras removed"
+       select BR2_LEGACY
+       help
+         The 'udev' package has been converted to a virtual package.
+         There is currently one provider for this feature: 'eudev'.
+
+         The option to enable the extra features of 'udev' (gudev, ...)
+         has been removed. These features are automatically enabled in
+         the 'udev' providers if the dependencies are selected. For
+         example, selecting 'libglib2' will trigger the build of gudev.
+
 ###############################################################################
 comment "Legacy options removed in 2014.02"
 
index 754a14505f75c2fa997c59ded6060034be20c012..40af8091fa3675997017b1095b8c7f6465ef0b28 100644 (file)
@@ -273,8 +273,7 @@ foo needs a toolchain w/ featA, featB, featC and a Linux kernel to be built
 Dependencies on udev /dev management
 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 If a package needs udev /dev management, it should depend on symbol
-+BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV+, and the following comment
-should be added:
++BR2_PACKAGE_HAS_UDEV+, and the following comment should be added:
 
 --------------------------
 foo needs udev /dev management
index 34ea9243e3573764ce0412228c032ce66da1ebe6..cc7efe849cb452f5261d44410c76c3d0d6c37682 100644 (file)
@@ -186,8 +186,6 @@ define LINUX_CONFIGURE_CMDS
        $(if $(BR2_ROOTFS_DEVICE_CREATION_STATIC),,
                $(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS,$(@D)/.config)
                $(call KCONFIG_ENABLE_OPT,CONFIG_DEVTMPFS_MOUNT,$(@D)/.config))
-       $(if $(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV),
-               $(call KCONFIG_ENABLE_OPT,CONFIG_INOTIFY_USER,$(@D)/.config))
        $(if $(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV),
                $(call KCONFIG_ENABLE_OPT,CONFIG_INOTIFY_USER,$(@D)/.config))
        $(if $(BR2_PACKAGE_KTAP),
index f39edcefaa85965d20650ebb7a1feccc5fcfa1d5..b635aa1cbf79462c566cd5ad0d2e76d1cd2cee18 100644 (file)
@@ -12,7 +12,7 @@ CCID_LICENSE_FILES = COPYING
 CCID_INSTALL_STAGING = YES
 CCID_DEPENDENCIES = pcsc-lite host-pkgconf libusb
 
-ifeq ($(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV),y)
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
 define CCID_INSTALL_UDEV_RULES
        if test -d $(TARGET_DIR)/etc/udev/rules.d ; then \
                cp $(@D)/src/92_pcscd_ccid.rules $(TARGET_DIR)/etc/udev/rules.d/ ; \
index 9d2eb1b28523542824ff59e240a41abfcf87267c..bfad99a271493cfbabcb1d737608d15b150807e9 100644 (file)
@@ -6,6 +6,7 @@ config BR2_PACKAGE_EUDEV
        depends on BR2_LARGEFILE # util-linux
        depends on BR2_USE_WCHAR # util-linux
        depends on !BR2_PREFER_STATIC_LIB # kmod
+       select BR2_PACKAGE_HAS_UDEV
        select BR2_PACKAGE_UTIL_LINUX
        select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
        select BR2_PACKAGE_KMOD
index efc8d37b2f8c6a1972a863c3afb2ffdc8c0e1fb4..0f655ba284bf48223deb63abf4be12d373f868c0 100644 (file)
@@ -222,7 +222,7 @@ define GPSD_INSTALL_STAGING_CMDS
                install)
 endef
 
-ifeq ($(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV),y)
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
 define GPSD_INSTALL_UDEV_RULES
        (cd $(@D); \
                $(GPSD_SCONS_ENV) \
index a3e44f8b2fcd0ec3d4a5c6e8f135d22364fae89b..534e7c17b296903fb04e4b2f3b7b87b6b5e230fb 100644 (file)
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_LIBATASMART
        bool "libatasmart"
-       depends on BR2_PACKAGE_UDEV # libudev is configure dependency
+       depends on BR2_PACKAGE_HAS_UDEV # libudev is configure dependency
        help
          The libatasmart package is a disk reporting library.
          It only supports a subset of the ATA S.M.A.R.T. functionality.
@@ -8,4 +8,4 @@ config BR2_PACKAGE_LIBATASMART
          http://www.linuxfromscratch.org/blfs/view/svn/general/libatasmart.html
 
 comment "libatasmart requires udev to be enabled"
-       depends on !BR2_PACKAGE_UDEV
+       depends on !BR2_PACKAGE_HAS_UDEV
index 910f319bec4b1fbc5588161e6398efee2910d41b..99cc767cf5279a19210c3b121a766594390159a9 100644 (file)
@@ -18,7 +18,7 @@ ifeq ($(BR2_PACKAGE_LOCKDEV),y)
 LIBCEC_DEPENDENCIES += lockdev
 endif
 
-ifeq ($(BR2_PACKAGE_UDEV),y)
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
 LIBCEC_DEPENDENCIES += udev
 endif
 
index f5efaf1b1d85af84d89abb5a1fa73f0371558992..a1b0580d9df9ae73c64d7777d37f3106142a8969 100644 (file)
@@ -65,7 +65,7 @@ else
 LIBDRM_CONF_OPT += --disable-freedreno-experimental-api
 endif
 
-ifeq ($(BR2_PACKAGE_UDEV),y)
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
 LIBDRM_CONF_OPT += --enable-udev
 LIBDRM_DEPENDENCIES += udev
 else
index d034e8480cde67fce9505328645706da01a9c742..bd34dd4ba15b6cf70948f306d9fd4de56426103a 100644 (file)
@@ -2,9 +2,8 @@ config BR2_PACKAGE_LIBMBIM
        bool "libmbim"
        depends on BR2_USE_WCHAR # libglib2
        depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
-       depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
+       depends on BR2_PACKAGE_HAS_UDEV
        select BR2_PACKAGE_LIBGLIB2
-       select BR2_PACKAGE_UDEV_ALL_EXTRAS
        help
          libmbim is a glib-based library for talking to WWAN modems and
          devices which speak the Mobile Interface Broadband Model (MBIM)
@@ -14,4 +13,4 @@ config BR2_PACKAGE_LIBMBIM
 
 comment "libmbim needs udev /dev management and a toolchain w/ wchar, threads"
        depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
-               !BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
+               !BR2_PACKAGE_HAS_UDEV
index a8ff74c2f97babccce2fe4b510d4b845794e8e33..417b2cebe9eeaaf318c7e54fe2bc41fd6b6df977 100644 (file)
@@ -21,7 +21,7 @@ ifeq ($(BR2_avr32),y)
 LIBUSB_CONF_OPT += --disable-timerfd
 endif
 
-ifeq ($(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV),y)
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
 LIBUSB_DEPENDENCIES += udev
 else
 LIBUSB_CONF_OPT += --disable-udev
index e157ca838bace814d02b6103066169c0d1de5ed3..fe60850f65f6c0093e59f28da733c2e77a59b652 100644 (file)
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_MODEM_MANAGER
        bool "modemmanager"
-       depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
+       depends on BR2_PACKAGE_HAS_UDEV
        select BR2_PACKAGE_DBUS
        depends on BR2_INET_IPV6
        depends on BR2_LARGEFILE # acl
@@ -8,8 +8,6 @@ config BR2_PACKAGE_MODEM_MANAGER
        depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2
        depends on BR2_USE_MMU # dbus
        select BR2_PACKAGE_DBUS_GLIB
-       select BR2_PACKAGE_UDEV
-       select BR2_PACKAGE_UDEV_ALL_EXTRAS
        help
          ModemManager is a DBus-activated daemon which controls mobile
          broadband (2G/3G/4G) devices and connections.
@@ -33,4 +31,4 @@ endif
 
 comment "modemmanager needs udev /dev management and a toolchain w/ largefile, wchar, threads, IPv6"
        depends on !BR2_INET_IPV6 || !BR2_LARGEFILE || !BR2_USE_WCHAR || \
-               !BR2_TOOLCHAIN_HAS_THREADS || !BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
+               !BR2_TOOLCHAIN_HAS_THREADS || !BR2_PACKAGE_HAS_UDEV
index a1944339338b72cb3a3ffc2195c483cee8690f3c..a4eeeaf462521e0696bb97448d3b9ac7773e2bd5 100644 (file)
@@ -1,16 +1,14 @@
 config BR2_PACKAGE_NETWORK_MANAGER
        bool "NetworkManager"
        depends on !BR2_avr32 # udev
-       depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
-       select BR2_PACKAGE_DBUS
        depends on BR2_INET_IPV6
        depends on BR2_LARGEFILE # acl
        depends on BR2_USE_WCHAR # libglib2 and gnutls
        depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2
        depends on BR2_USE_MMU # dbus
+       depends on BR2_PACKAGE_HAS_UDEV
+       select BR2_PACKAGE_DBUS
        select BR2_PACKAGE_DBUS_GLIB
-       select BR2_PACKAGE_UDEV
-       select BR2_PACKAGE_UDEV_ALL_EXTRAS
        select BR2_PACKAGE_GNUTLS
        select BR2_PACKAGE_LIBGCRYPT
        select BR2_PACKAGE_LIBNL
@@ -33,4 +31,4 @@ comment "NetworkManager needs udev /dev management and a toolchain w/ IPv6, larg
        depends on BR2_USE_MMU
        depends on !BR2_INET_IPV6 || !BR2_LARGEFILE || !BR2_USE_WCHAR || \
                !BR2_TOOLCHAIN_HAS_THREADS || \
-               !BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
+               !BR2_PACKAGE_HAS_UDEV
index aaaa8fa22c62f3953313995f9bac70ddd2377ed1..9e30c63635249e09dc53dcce77a9670a69caed6a 100644 (file)
@@ -22,7 +22,7 @@ OFONO_CONF_OPT = --disable-test
 # make sure that it is defined.
 OFONO_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
 
-ifeq ($(BR2_PACKAGE_UDEV),y)
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
        OFONO_CONF_OPT += --enable-udev
        OFONO_DEPENDENCIES += udev
 else
index 4cd89e93bc255590e901588305b713af5a32dbce..aab42e8ce94f39e3eb8b316ca2c8a8185bc4e807 100644 (file)
@@ -11,7 +11,7 @@ if BR2_PACKAGE_PCSC_LITE
 
 config BR2_PACKAGE_PCSC_LITE_FORCE_LIBUSB
        bool "use libusb"
-       depends on !BR2_PACKAGE_UDEV
+       depends on !BR2_PACKAGE_HAS_UDEV
        select BR2_PACKAGE_LIBUSB
        help
          Select Y if you want to support usb smart card readers.
index afbe822561e2bc101c5844020f815d5468b17a45..18859cdb12a1b3d0f26bb4f0348f4e1eef1c7abe 100644 (file)
@@ -16,7 +16,7 @@ PCSC_LITE_LICENSE_FILES = COPYING
 # - libudev and libusb can't be used together
 # - libudev has a priority over libusb
 
-ifeq ($(BR2_PACKAGE_UDEV),y)
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
 PCSC_LITE_CONF_OPT += --enable-libudev --disable-libusb
 PCSC_LITE_DEPENDENCIES += udev
 else
index 54340c49a3ca683e2d91de1d97ee0b758a516180..6a9e369ba37c16f57974a4becbd205677fc19df2 100644 (file)
@@ -26,7 +26,7 @@ PULSEAUDIO_DEPENDENCIES = \
        $(if $(BR2_PACKAGE_AVAHI_DAEMON),avahi) \
        $(if $(BR2_PACKAGE_DBUS),dbus) \
        $(if $(BR2_PACKAGE_BLUEZ_UTILS),bluez_utils) \
-       $(if $(BR2_PACKAGE_UDEV),udev) \
+       $(if $(BR2_PACKAGE_HAS_UDEV),udev) \
        $(if $(BR2_PACKAGE_OPENSSL),openssl) \
        $(if $(BR2_PACKAGE_FFTW),fftw) \
        $(if $(BR2_PACKAGE_WEBRTC_AUDIO_PROCESSING),webrtc-audio-processing) \
index fe81900aa952e3073ca3cb620667045974117c85..500e62345a667ebdcba0cbf30b2ea7bb7221907c 100644 (file)
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_SYSTEMD
        bool "systemd"
-       depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
+       depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
        depends on BR2_INET_IPV6
        depends on BR2_TOOLCHAIN_HAS_THREADS # dbus
        depends on BR2_USE_MMU # dbus
@@ -18,7 +18,7 @@ config BR2_PACKAGE_SYSTEMD
 
          http://freedesktop.org/wiki/Software/systemd
 
-comment "systemd needs udev /dev management and a toolchain w/ IPv6, threads"
+comment "systemd needs eudev /dev management and a toolchain w/ IPv6, threads"
        depends on BR2_USE_MMU
-       depends on !BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV || !BR2_INET_IPV6 || \
+       depends on !BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV || !BR2_INET_IPV6 || \\
                !BR2_TOOLCHAIN_HAS_THREADS
index 7aa79c4452ed691be3418ce92f4d855e27ef5806..5cd40516210af435890fcb0350795579492f8809 100644 (file)
@@ -1,47 +1,6 @@
-config BR2_PACKAGE_UDEV
-       bool "udev"
-       depends on !BR2_avr32 # no epoll_create1
-       depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
-       depends on BR2_LARGEFILE # util-linux
-       depends on BR2_USE_WCHAR # util-linux
-       depends on !BR2_PREFER_STATIC_LIB # kmod
-       select BR2_PACKAGE_UTIL_LINUX
-       select BR2_PACKAGE_UTIL_LINUX_LIBBLKID
-       select BR2_PACKAGE_KMOD
+config BR2_PACKAGE_HAS_UDEV
+       bool
        help
-         Userspace device daemon.
-
-         udev requires a Linux kernel >= 2.6.34: it relies on devtmpfs
-         and inotify.
-
-         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"
-       select BR2_PACKAGE_ACL
-       select BR2_PACKAGE_HWDATA
-       select BR2_PACKAGE_LIBGLIB2
-       depends on BR2_USE_WCHAR # libglib2
-       depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
-       depends on BR2_USE_MMU # libglib2
-       help
-         Enable all extras with external dependencies like
-         libacl, hwdata and libglib2
-
-comment "enabling all extras needs a toolchain w/ wchar, threads"
-       depends on BR2_USE_MMU
-       depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
-
-endif
-
-comment "udev needs udev /dev management and a toolchain w/ largefile, wchar, dynamic library"
-       depends on !BR2_avr32
-       depends on !BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV || \
-               !BR2_LARGEFILE || !BR2_USE_WCHAR || BR2_PREFER_STATIC_LIB
+         udev is now a virtual package.
+         Packages requiring udevd at run time or libudev/gudev at build time
+         should select it.
index db86850ba21699ac1903cf24b3db5553404cb429..d274246b2039c27a7ab4bd965301dd4d7461ed02 100644 (file)
@@ -4,48 +4,17 @@
 #
 ################################################################################
 
-UDEV_VERSION = 182
-UDEV_SOURCE = udev-$(UDEV_VERSION).tar.xz
-UDEV_SITE = $(BR2_KERNEL_MIRROR)/linux/utils/kernel/hotplug/
-UDEV_LICENSE = GPLv2+
-UDEV_LICENSE_FILES = COPYING
-UDEV_INSTALL_STAGING = YES
+UDEV_SOURCE =
 
-# mq_getattr is in librt
-UDEV_CONF_ENV += LIBS=-lrt
-
-UDEV_CONF_OPT =                        \
-       --sbindir=/sbin         \
-       --with-rootlibdir=/lib  \
-       --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-pkgconf 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 += acl hwdata libglib2
-UDEV_CONF_OPT +=               \
-       --enable-udev_acl
-else
-UDEV_CONF_OPT +=               \
-       --disable-gudev
+ifeq ($(BR2_PACKAGE_EUDEV),y)
+UDEV_DEPENDENCIES += eudev
 endif
 
-ifeq ($(BR2_PACKAGE_SYSTEMD),y)
-       UDEV_CONF_OPT += --with-systemdsystemunitdir=/lib/systemd/system/
-endif
-
-define UDEV_INSTALL_INITSCRIPT
-       $(INSTALL) -m 0755 package/udev/S10udev $(TARGET_DIR)/etc/init.d/S10udev
+ifeq ($(UDEV_DEPENDENCIES),)
+define UDEV_CONFIGURE_CMDS
+       echo "No Udev implementation selected. Configuration error."
+       exit 1
 endef
+endif
 
-UDEV_POST_INSTALL_TARGET_HOOKS += UDEV_INSTALL_INITSCRIPT
-
-$(eval $(autotools-package))
+$(eval $(generic-package))
index e9539a30f40e679e50dd4f8fe3764f8bee1d1176..d560b6cf76662b446dad47bae977205e3fbbf9dd 100644 (file)
@@ -1,11 +1,9 @@
 config BR2_PACKAGE_UDISKS
        bool "udisks"
        depends on !BR2_avr32 # udev
-       depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
+       depends on BR2_PACKAGE_HAS_UDEV
        depends on BR2_TOOLCHAIN_HAS_THREADS # dbus-glib -> glib2
        depends on BR2_USE_MMU # lvm2
-       select BR2_PACKAGE_UDEV
-       select BR2_PACKAGE_UDEV_ALL_EXTRAS
        select BR2_PACKAGE_DBUS
        select BR2_PACKAGE_DBUS_GLIB
        depends on BR2_USE_WCHAR # dbus-glib -> glib2
@@ -36,8 +34,12 @@ config BR2_PACKAGE_UDISKS_LVM2
 
 endif
 
-comment "udisks needs udev /dev management and a toolchain w/ wchar, threads"
+comment "udisks needs udev /dev management"
        depends on !BR2_avr32
        depends on BR2_USE_MMU
-       depends on !BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV || \
-               !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
+       depends on !BR2_PACKAGE_HAS_UDEV
+
+comment "udisks needs a toolchain w/ wchar, threads"
+       depends on !BR2_avr32
+       depends on BR2_USE_MMU
+       depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
index 2583e7cc7ce9f6e78d081e9427e88681643b39b3..0bb8883b9640736b88f592e1ab002a00cd654845 100644 (file)
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_USBMOUNT
        bool "usbmount"
-       depends on BR2_PACKAGE_UDEV
+       depends on BR2_PACKAGE_HAS_UDEV
        select BR2_PACKAGE_LOCKFILE_PROGS
        help
          The usbmount package automatically mounts USB mass storage devices
@@ -9,4 +9,4 @@ config BR2_PACKAGE_USBMOUNT
          http://usbmount.alioth.debian.org/
 
 comment "usbmount requires udev to be enabled"
-       depends on !BR2_PACKAGE_UDEV
+       depends on !BR2_PACKAGE_HAS_UDEV
index f235ff81176316158a2b6df764f13935c51813c0..ad7d9ffd64874df7eb754671bc116de564300547 100644 (file)
@@ -266,7 +266,7 @@ else
 VLC_CONF_OPT += --disable-tremor
 endif
 
-ifeq ($(BR2_PACKAGE_UDEV),y)
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
 VLC_CONF_OPT += --enable-udev
 VLC_DEPENDENCIES += udev
 else
index 247efc88831a4f8eac0f3ece4c1cff51ee779c74..36bbb0159c4a969dd76b42854f5b5c7ae178e2c6 100644 (file)
@@ -1,6 +1,6 @@
 comment "weston needs udev and a toolchain w/ threads"
        depends on !BR2_avr32
-       depends on !BR2_PACKAGE_UDEV || !BR2_TOOLCHAIN_HAS_THREADS
+       depends on !BR2_PACKAGE_HAS_UDEV || !BR2_TOOLCHAIN_HAS_THREADS
 
 config BR2_PACKAGE_WESTON
        bool "weston"
@@ -11,7 +11,7 @@ config BR2_PACKAGE_WESTON
        select BR2_PACKAGE_LIBPNG
        select BR2_PACKAGE_JPEG
        select BR2_PACKAGE_MTDEV
-       depends on BR2_PACKAGE_UDEV
+       depends on BR2_PACKAGE_HAS_UDEV
        depends on !BR2_avr32 # wayland
        depends on BR2_TOOLCHAIN_HAS_THREADS # wayland
        # Runtime dependency
index 88d3e6e82d80f1857de5ad0d9bd0bde2254af723..6ec14bfe8d94b060cb708de98677cf65c24132de 100644 (file)
@@ -1,6 +1,6 @@
 config BR2_PACKAGE_XDRIVER_XF86_INPUT_EVDEV
        bool "xf86-input-evdev"
-       depends on BR2_PACKAGE_UDEV # libudev is configure dependency
+       depends on BR2_PACKAGE_HAS_UDEV # libudev is configure dependency
        select BR2_PACKAGE_XPROTO_INPUTPROTO
        select BR2_PACKAGE_XPROTO_RANDRPROTO
        select BR2_PACKAGE_XPROTO_XPROTO
@@ -8,4 +8,4 @@ config BR2_PACKAGE_XDRIVER_XF86_INPUT_EVDEV
          Generic Linux input driver
 
 comment "xf86-input-evdev requires udev to be enabled"
-       depends on !BR2_PACKAGE_UDEV
+       depends on !BR2_PACKAGE_HAS_UDEV
index 4089aab83c8894df988e9ccd8c36c08150716785..a7ac9a0b744f0aabe7b6d6919f197970f2e3d579 100644 (file)
@@ -123,7 +123,7 @@ XSERVER_XORG_SERVER_DEPENDENCIES += tslib
 XSERVER_XORG_SERVER_CONF_OPT += --enable-tslib LDFLAGS="-lts"
 endif
 
-ifeq ($(BR2_PACKAGE_UDEV),y)
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
 XSERVER_XORG_SERVER_DEPENDENCIES += udev
 XSERVER_XORG_SERVER_CONF_OPT += --enable-config-udev
 else
index 2dd1bf601e590bcfd0cd86d101660cc2ef7f6f72..4e9025db0e8734477427af18787680235869a339 100644 (file)
@@ -93,7 +93,7 @@ define XENOMAI_DEVICES
 /dev/rtp     c  666  0  0  150 0    0  1  32
 endef
 
-ifeq ($(BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV),y)
+ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
 XENOMAI_DEPENDENCIES += udev
 
 define XENOMAI_INSTALL_UDEV_RULES
index d1b0cbb0dbcc53b6d84d02233ac61425232cd748..34726b079eea672c0fccaea97605d2845c984abf 100644 (file)
@@ -90,17 +90,17 @@ config BR2_INIT_SYSTEMD
        depends on BR2_LARGEFILE
        depends on BR2_USE_WCHAR
        depends on BR2_INET_IPV6
-       depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
+       depends on BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
        depends on BR2_TOOLCHAIN_HAS_THREADS
        depends on BR2_USE_MMU
        select BR2_PACKAGE_DBUS
        select BR2_PACKAGE_SYSTEMD
 
-comment 'systemd needs udev /dev management and a toolchain w/ largefile, wchar, IPv6, threads'
+comment 'systemd needs eudev /dev management and a toolchain w/ largefile, wchar, IPv6, threads'
        depends on BR2_USE_MMU
        depends on !(BR2_LARGEFILE && BR2_USE_WCHAR && \
                     BR2_INET_IPV6 && BR2_TOOLCHAIN_HAS_THREADS && \
-                    BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV)
+                    BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV)
 
 config BR2_INIT_NONE
        bool "None"
@@ -121,22 +121,6 @@ config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_MDEV
        bool "Dynamic using mdev"
        select BR2_PACKAGE_BUSYBOX
 
-config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_UDEV
-       bool "Dynamic using udev"
-       depends on !BR2_avr32 # udev
-       depends on BR2_LARGEFILE # udev
-       depends on BR2_USE_WCHAR # udev
-       depends on !BR2_PREFER_STATIC_LIB # udev -> kmod
-       select BR2_PACKAGE_UDEV
-
-comment "udev needs a toolchain w/ largefile, wchar"
-       depends on !BR2_avr32 # udev
-       depends on !(BR2_LARGEFILE && BR2_USE_WCHAR)
-
-comment "udev doesn't work with 'prefer static libraries'"
-       depends on !BR2_avr32 # udev
-       depends on BR2_PREFER_STATIC_LIB
-
 config BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV
        bool "Dynamic using eudev"
        depends on !BR2_avr32 # eudev