All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] libmbim: add udev as optional feature
@ 2017-09-06 21:28 Aleksander Morgado
  2017-09-06 21:47 ` Thomas Petazzoni
  0 siblings, 1 reply; 5+ messages in thread
From: Aleksander Morgado @ 2017-09-06 21:28 UTC (permalink / raw)
  To: buildroot

udev support will be enabled in the build if libgudev is selected.

Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
---
 package/libmbim/Config.in  |  7 ++-----
 package/libmbim/libmbim.mk | 10 +++++++++-
 2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/package/libmbim/Config.in b/package/libmbim/Config.in
index 5db8efbf9..fd7dbb313 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 33e500e53..b8dfa832d 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))
-- 
2.13.1

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] libmbim: add udev as optional feature
  2017-09-06 21:28 [Buildroot] [PATCH] libmbim: add udev as optional feature Aleksander Morgado
@ 2017-09-06 21:47 ` Thomas Petazzoni
  2017-09-07  6:05   ` Aleksander Morgado
  0 siblings, 1 reply; 5+ messages in thread
From: Thomas Petazzoni @ 2017-09-06 21:47 UTC (permalink / raw)
  To: buildroot

Hello,

On Wed,  6 Sep 2017 23:28:09 +0200, Aleksander Morgado wrote:
> udev support will be enabled in the build if libgudev is selected.
> 
> Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>

Applied to master, thanks! I just realized you're the maintainer for
libmbim and libqmi, so it's nice to see you sending patches to
Buildroot to improve their packaging!

Thanks!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] libmbim: add udev as optional feature
  2017-09-06 21:47 ` Thomas Petazzoni
@ 2017-09-07  6:05   ` Aleksander Morgado
  2017-09-07  7:01     ` Baruch Siach
  2017-09-07  7:04     ` Thomas Petazzoni
  0 siblings, 2 replies; 5+ messages in thread
From: Aleksander Morgado @ 2017-09-07  6:05 UTC (permalink / raw)
  To: buildroot

> On Wed,  6 Sep 2017 23:28:09 +0200, Aleksander Morgado wrote:
>> udev support will be enabled in the build if libgudev is selected.
>>
>> Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
>
> Applied to master, thanks! I just realized you're the maintainer for
> libmbim and libqmi, so it's nice to see you sending patches to
> Buildroot to improve their packaging!
>

Speaking of which, is there any way I can get CC-ed to changes done in
either libqmi, libmbim or modem-manager? I wouldn't mind to review
those.

-- 
Aleksander
https://aleksander.es

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] libmbim: add udev as optional feature
  2017-09-07  6:05   ` Aleksander Morgado
@ 2017-09-07  7:01     ` Baruch Siach
  2017-09-07  7:04     ` Thomas Petazzoni
  1 sibling, 0 replies; 5+ messages in thread
From: Baruch Siach @ 2017-09-07  7:01 UTC (permalink / raw)
  To: buildroot

Hi Aleksander,

On Thu, Sep 07, 2017 at 08:05:32AM +0200, Aleksander Morgado wrote:
> > On Wed,  6 Sep 2017 23:28:09 +0200, Aleksander Morgado wrote:
> >> udev support will be enabled in the build if libgudev is selected.
> >>
> >> Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
> >
> > Applied to master, thanks! I just realized you're the maintainer for
> > libmbim and libqmi, so it's nice to see you sending patches to
> > Buildroot to improve their packaging!
> 
> Speaking of which, is there any way I can get CC-ed to changes done in
> either libqmi, libmbim or modem-manager? I wouldn't mind to review
> those.

Add an entry to DEVELOPERS listing the packages you are interested in.

baruch

-- 
     http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
   - baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH] libmbim: add udev as optional feature
  2017-09-07  6:05   ` Aleksander Morgado
  2017-09-07  7:01     ` Baruch Siach
@ 2017-09-07  7:04     ` Thomas Petazzoni
  1 sibling, 0 replies; 5+ messages in thread
From: Thomas Petazzoni @ 2017-09-07  7:04 UTC (permalink / raw)
  To: buildroot

Hello,

On Thu, 7 Sep 2017 08:05:32 +0200, Aleksander Morgado wrote:

> Speaking of which, is there any way I can get CC-ed to changes done in
> either libqmi, libmbim or modem-manager? I wouldn't mind to review
> those.

Add yourself to the DEVELOPERS file for those packages. This way:

 * You will be Cc'ed when patches are sent,
   because ./utils/get-developers on patches touching those packages
   will return your e-mail address

 * You will be notified when http://autobuild.buildroot.org detects
   build failures for those packages.

If you're interested, just send a patch adding you to the DEVELOPERS
file.

Thanks a lot!

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-09-07  7:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-09-06 21:28 [Buildroot] [PATCH] libmbim: add udev as optional feature Aleksander Morgado
2017-09-06 21:47 ` Thomas Petazzoni
2017-09-07  6:05   ` Aleksander Morgado
2017-09-07  7:01     ` Baruch Siach
2017-09-07  7:04     ` Thomas Petazzoni

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.