mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Ladislav Michl <oss-lists@triops.cz>
To: ptxdist@pengutronix.de
Subject: [ptxdist] [PATCH] libmbim: make udev support optional
Date: Wed, 29 Apr 2026 13:51:21 +0200	[thread overview]
Message-ID: <afHwuYcBhreA-0bM@lenoch> (raw)

From: Ladislav Michl <ladis@triops.cz>

Signed-off-by: Ladislav Michl <ladis@triops.cz>
---
 rules/libmbim.in   | 16 ++++++++++++----
 rules/libmbim.make | 11 ++++++-----
 2 files changed, 18 insertions(+), 9 deletions(-)

diff --git a/rules/libmbim.in b/rules/libmbim.in
index 01e222533..c7688edc7 100644
--- a/rules/libmbim.in
+++ b/rules/libmbim.in
@@ -1,13 +1,21 @@
 ## SECTION=networking
 
-config LIBMBIM
+menuconfig LIBMBIM
 	tristate
 	select HOST_MESON
 	select GLIB
-	select UDEV
-	select LIBGUDEV
-	prompt "libmbim"
+	select UDEV		if LIBMBIM_UDEV
+	select LIBGUDEV		if LIBMBIM_UDEV
+	prompt "libmbim                       "
 	help
 	  libmbim is a glib-based library for talking to WWAN modems and
 	  devices which speak the Mobile Interface Broadband Model (MBIM)
 	  protocol.
+
+if LIBMBIM
+
+config LIBMBIM_UDEV
+	bool "enable udev support"
+	default y
+
+endif
diff --git a/rules/libmbim.make b/rules/libmbim.make
index 0e67eed81..1b9527b51 100644
--- a/rules/libmbim.make
+++ b/rules/libmbim.make
@@ -36,13 +36,14 @@ LIBMBIM_LICENSE_FILES	:= \
 LIBMBIM_CONF_TOOL	:= meson
 LIBMBIM_CONF_OPT	:= \
 	$(CROSS_MESON_USR) \
-	-Dbash_completion=false \
-	-Dfuzzer=false \
-	-Dgtk_doc=false \
+	-Dmbim_username= \
+	-Dmbim_groupname= \
+	-Dudevdir=$(call ptx/ifdef,PTXCONF_LIBMBIM_UDEV,/usr/lib/udev,) \
 	-Dintrospection=false \
+	-Dgtk_doc=false \
 	-Dman=false \
-	-Dmbim_username= \
-	-Dudevdir=/usr/lib/udev
+	-Dbash_completion=false \
+	-Dfuzzer=false
 
 # ----------------------------------------------------------------------------
 # Target-Install
-- 
2.47.3




                 reply	other threads:[~2026-04-29 11:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=afHwuYcBhreA-0bM@lenoch \
    --to=oss-lists@triops.cz \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox