modem-manager: select libgudev, if systemd is enabled
authorYegor Yefremov <yegorslists@googlemail.com>
Fri, 11 Sep 2015 07:09:47 +0000 (09:09 +0200)
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>
Sun, 20 Sep 2015 13:09:09 +0000 (15:09 +0200)
When eudev is used as the udev provider, libgudev is automatically
provided as it is part of eudev. However, when systemd is used as
the udev provider, libgudev is not provided, and needs to be built
separately. This is why we select the libgudev package only if
systemd is used.

Fixes: http://autobuild.buildroot.net/results/d59/d597a81271a082c8252e2333906815c437b6576d/
While at it, group the existing dbus select together with the dbus-glib
select, so that all "select" statements are together.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
Reviewed-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
package/modem-manager/Config.in
package/modem-manager/modem-manager.mk

index 59b8d88f0b83d20f233848519f914092155b7dbc..1cd502b3ac2e48816ffdfedcde6dc8c5b9c6f565 100644 (file)
@@ -1,11 +1,12 @@
 config BR2_PACKAGE_MODEM_MANAGER
        bool "modemmanager"
        depends on BR2_PACKAGE_HAS_UDEV
-       select BR2_PACKAGE_DBUS
        depends on BR2_USE_WCHAR # libglib2 and gnutls
        depends on BR2_TOOLCHAIN_HAS_THREADS # dbus, libglib2
        depends on BR2_USE_MMU # dbus
+       select BR2_PACKAGE_DBUS
        select BR2_PACKAGE_DBUS_GLIB
+       select BR2_PACKAGE_LIBGUDEV if BR2_INIT_SYSTEMD
        help
          ModemManager is a DBus-activated daemon which controls mobile
          broadband (2G/3G/4G) devices and connections.
index 0e6b36a749b3f87ddf2f37fc948a1b571e4d7d1b..36c8c0dbeff7ffa7d8d0e67064701e8c99e17207 100644 (file)
@@ -12,6 +12,10 @@ MODEM_MANAGER_LICENSE_FILES = COPYING
 MODEM_MANAGER_DEPENDENCIES = host-pkgconf udev dbus-glib host-intltool
 MODEM_MANAGER_INSTALL_STAGING = YES
 
+ifeq ($(BR2_INIT_SYSTEMD),y)
+MODEM_MANAGER_DEPENDENCIES += libgudev
+endif
+
 ifeq ($(BR2_PACKAGE_MODEM_MANAGER_LIBQMI),y)
 MODEM_MANAGER_DEPENDENCIES += libqmi
 MODEM_MANAGER_CONF_OPTS += --with-qmi