mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Lars Pedersen <lapeddk@gmail.com>
To: ptxdist@pengutronix.de
Cc: Lars Pedersen <lapeddk@gmail.com>
Subject: [ptxdist] [PATCH] libqmi: Add option to enable QMI firmware update tool
Date: Thu, 21 Mar 2024 12:44:23 +0100	[thread overview]
Message-ID: <20240321114423.1503313-1-lapeddk@gmail.com> (raw)

Signed-off-by: Lars Pedersen <lapeddk@gmail.com>
---
 rules/libqmi.in   | 3 +++
 rules/libqmi.make | 6 +++++-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/rules/libqmi.in b/rules/libqmi.in
index 571bfa3a0..1b4c8c88c 100644
--- a/rules/libqmi.in
+++ b/rules/libqmi.in
@@ -15,4 +15,7 @@ config LIBQMI_MBIM_QMUX
 	bool "enable mbim-qmux support"
 	default y if MODEMMANAGER
 
+config LIBQMI_FIRMWARE_UPDATE
+	bool "Add firmware update tool for QMI devices"
+
 endif
diff --git a/rules/libqmi.make b/rules/libqmi.make
index 03487369c..2cc6695cb 100644
--- a/rules/libqmi.make
+++ b/rules/libqmi.make
@@ -36,7 +36,7 @@ LIBQMI_LICENSE_FILES := \
 LIBQMI_CONF_TOOL	:= meson
 LIBQMI_CONF_OPT		:= \
 	$(CROSS_MESON_USR) \
-	-Dfirmware_update=false \
+	-Dfirmware_update=$(call ptx/truefalse, PTXCONF_LIBQMI_FIRMWARE_UPDATE) \
 	-Dcollection=full \
 	-Dmbim_qmux=$(call ptx/truefalse, PTXCONF_LIBQMI_MBIM_QMUX) \
 	-Dmm_runtime_check=false \
@@ -65,6 +65,10 @@ $(STATEDIR)/libqmi.targetinstall:
 	@$(call install_copy, libqmi, 0, 0, 0755, -, /usr/bin/qmicli)
 	@$(call install_copy, libqmi, 0, 0, 0755, -, /usr/bin/qmi-network)
 
+ifdef PTXCONF_LIBQMI_FIRMWARE_UPDATE
+	@$(call install_copy, libqmi, 0, 0, 0755, -, /usr/bin/qmi-firmware-update)
+endif
+
 	@$(call install_copy, libqmi, 0, 0, 0755, -, /usr/libexec/qmi-proxy)
 	@$(call install_lib, libqmi, 0, 0, 0644, libqmi-glib)
 
-- 
2.44.0




             reply	other threads:[~2024-03-21 11:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-03-21 11:44 Lars Pedersen [this message]
2024-03-23  8:59 ` [ptxdist] [APPLIED] " Michael Olbrich

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=20240321114423.1503313-1-lapeddk@gmail.com \
    --to=lapeddk@gmail.com \
    --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