udev: update udev to new virtual package infra.
The udev virtual package and its current providers (eudev and systemd) have been updated to use the latest version of virtual package infrastructure. A provider should now select BR2_PACKAGE_HAS_UDEV and well as set a value for BR2_PACKAGE_PROVIDES_UDEV. Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr> Reviewed-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
parent
5cc2a89a45
commit
5e35c1bedd
|
@ -21,6 +21,9 @@ config BR2_PACKAGE_EUDEV
|
||||||
|
|
||||||
if BR2_PACKAGE_EUDEV
|
if BR2_PACKAGE_EUDEV
|
||||||
|
|
||||||
|
config BR2_PACKAGE_PROVIDES_UDEV
|
||||||
|
default "eudev"
|
||||||
|
|
||||||
config BR2_PACKAGE_EUDEV_RULES_GEN
|
config BR2_PACKAGE_EUDEV_RULES_GEN
|
||||||
bool "enable rules generator"
|
bool "enable rules generator"
|
||||||
help
|
help
|
||||||
|
|
|
@ -40,6 +40,9 @@ config BR2_PACKAGE_SYSTEMD
|
||||||
|
|
||||||
if BR2_PACKAGE_SYSTEMD
|
if BR2_PACKAGE_SYSTEMD
|
||||||
|
|
||||||
|
config BR2_PACKAGE_PROVIDES_UDEV
|
||||||
|
default "systemd"
|
||||||
|
|
||||||
config BR2_PACKAGE_SYSTEMD_ALL_EXTRAS
|
config BR2_PACKAGE_SYSTEMD_ALL_EXTRAS
|
||||||
bool "enable all extras"
|
bool "enable all extras"
|
||||||
select BR2_PACKAGE_XZ
|
select BR2_PACKAGE_XZ
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
config BR2_PACKAGE_HAS_UDEV
|
config BR2_PACKAGE_HAS_UDEV
|
||||||
bool
|
bool
|
||||||
help
|
|
||||||
udev is now a virtual package.
|
config BR2_PACKAGE_PROVIDES_UDEV
|
||||||
Packages requiring udevd at run time or libudev/gudev at build time
|
depends on BR2_PACKAGE_HAS_UDEV
|
||||||
should select it.
|
string
|
||||||
|
|
|
@ -5,20 +5,12 @@
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
UDEV_SOURCE =
|
UDEV_SOURCE =
|
||||||
|
UDEV_DEPENDENCIES = $(call qstrip,$(BR2_PACKAGE_PROVIDES_UDEV))
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_EUDEV),y)
|
ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
|
||||||
UDEV_DEPENDENCIES += eudev
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(BR2_PACKAGE_SYSTEMD),y)
|
|
||||||
UDEV_DEPENDENCIES += systemd
|
|
||||||
endif
|
|
||||||
|
|
||||||
ifeq ($(UDEV_DEPENDENCIES),)
|
ifeq ($(UDEV_DEPENDENCIES),)
|
||||||
define UDEV_CONFIGURE_CMDS
|
$(error No Udev implementation selected. Configuration error)
|
||||||
echo "No Udev implementation selected. Configuration error."
|
endif
|
||||||
exit 1
|
|
||||||
endef
|
|
||||||
endif
|
endif
|
||||||
|
|
||||||
$(eval $(generic-package))
|
$(eval $(generic-package))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user