aboutsummaryrefslogtreecommitdiff
path: root/package/libmbim
diff options
context:
space:
mode:
authorGravatar Aleksander Morgado <aleksander@aleksander.es>2017-09-06 23:28:09 +0200
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2017-09-06 23:36:13 +0200
commite1c06945eea337ec7f941563d3e0e5f3d7212331 (patch)
treea9ead01d4fc5ffe5b55e25ec6c5ad8ee1f9fd425 /package/libmbim
parent5cf9897f5b1843ed44918512251e9828c574a197 (diff)
downloadbuildroot-e1c06945eea337ec7f941563d3e0e5f3d7212331.tar.gz
buildroot-e1c06945eea337ec7f941563d3e0e5f3d7212331.tar.bz2
libmbim: add udev as optional feature
udev support will be enabled in the build if libgudev is selected. Signed-off-by: Aleksander Morgado <aleksander@aleksander.es> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'package/libmbim')
-rw-r--r--package/libmbim/Config.in7
-rw-r--r--package/libmbim/libmbim.mk10
2 files changed, 11 insertions, 6 deletions
diff --git a/package/libmbim/Config.in b/package/libmbim/Config.in
index 5db8efbf9c..fd7dbb313c 100644
--- a/package/libmbim/Config.in
+++ b/package/libmbim/Config.in
@@ -3,8 +3,6 @@ config BR2_PACKAGE_LIBMBIM
depends on BR2_USE_WCHAR # libglib2
depends on BR2_TOOLCHAIN_HAS_THREADS # libglib2
depends on BR2_USE_MMU # libglib2
- depends on BR2_PACKAGE_HAS_UDEV
- select BR2_PACKAGE_LIBGUDEV
select BR2_PACKAGE_LIBGLIB2
help
libmbim is a glib-based library for talking to WWAN modems and
@@ -13,7 +11,6 @@ config BR2_PACKAGE_LIBMBIM
http://www.freedesktop.org/wiki/Software/libmbim/
-comment "libmbim needs udev /dev management and a toolchain w/ wchar, threads"
+comment "libmbim needs a toolchain w/ wchar, threads"
depends on BR2_USE_MMU
- depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS || \
- !BR2_PACKAGE_HAS_UDEV
+ depends on !BR2_USE_WCHAR || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/libmbim/libmbim.mk b/package/libmbim/libmbim.mk
index 33e500e536..b8dfa832d2 100644
--- a/package/libmbim/libmbim.mk
+++ b/package/libmbim/libmbim.mk
@@ -11,9 +11,17 @@ LIBMBIM_LICENSE = LGPL-2.0+ (library), GPL-2.0+ (programs)
LIBMBIM_LICENSE_FILES = COPYING
LIBMBIM_INSTALL_STAGING = YES
-LIBMBIM_DEPENDENCIES = libglib2 udev libgudev
+LIBMBIM_DEPENDENCIES = libglib2
# we don't want -Werror
LIBMBIM_CONF_OPTS = --enable-more-warnings=no
+# if libgudev available, request udev support
+ifeq ($(BR2_PACKAGE_LIBGUDEV),y)
+LIBMBIM_DEPENDENCIES += libgudev
+LIBMBIM_CONF_OPTS += --with-udev
+else
+LIBMBIM_CONF_OPTS += --without-udev
+endif
+
$(eval $(autotools-package))