diff mbox

[10/12,v8] package/libudev: make it selectable

Message ID a9b2e3dfb8a1dcdde4e02fe166e841848586521d.1468274498.git.yann.morin.1998@free.fr
State Rejected
Headers show

Commit Message

Yann E. MORIN July 11, 2016, 10:16 p.m. UTC
Usually, it is not possible for a pacakge to select a virtual package it
depends on, and expects a provider to suddenly be available.

However, for libudev, this is slightly simpler: there will be only two
providers ever: eudev and systemd. Both are incompatible one with the
other, systemd is only available if chosen as an init system.

So, if systemd is not enabled (as an init system), then we can
forcefully enable eudev as the provider for libudev.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
 package/libudev/Config.in | 7 +++++++
 1 file changed, 7 insertions(+)

Comments

Bernd Kuhls July 13, 2016, 7:41 p.m. UTC | #1
Am Tue, 12 Jul 2016 00:16:33 +0200 schrieb Yann E. MORIN:

>  package/libudev/Config.in | 7 +++++++
>  1 file changed, 7 insertions(+)

Tested-by: Bernd Kuhls <bernd.kuhls@t-online.de>
(run-time tested libdrm, mesa3d, libcec & kodi 17 using libudev
 on a system using BR2_ROOTFS_DEVICE_CREATION_STATIC=y)
diff mbox

Patch

diff --git a/package/libudev/Config.in b/package/libudev/Config.in
index 2745fcc..036adce 100644
--- a/package/libudev/Config.in
+++ b/package/libudev/Config.in
@@ -1,3 +1,10 @@ 
+config BR2_PACKAGE_LIBUDEV
+	bool
+	depends on BR2_USE_MMU # eudev / systemd
+	depends on BR2_USE_WCHAR # eudev / systemd
+	depends on !BR2_STATIC_LIBS # eudev / systemd
+	select BR2_PACKAGE_EUDEV if !BR2_PACKAGE_SYSTEMD
+
 config BR2_PACKAGE_HAS_LIBUDEV
 	bool