From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-wm1-x342.google.com ([2a00:1450:4864:20::342]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1jxYfl-0003il-Vv for ptxdist@pengutronix.de; Mon, 20 Jul 2020 18:29:50 +0200 Received: by mail-wm1-x342.google.com with SMTP id c80so144818wme.0 for ; Mon, 20 Jul 2020 09:29:49 -0700 (PDT) From: Bruno Thomsen Date: Mon, 20 Jul 2020 18:29:44 +0200 Message-Id: <20200720162944.7332-1-bruno.thomsen@gmail.com> MIME-Version: 1.0 Subject: [ptxdist] [PATCH v3] modemmanager: config: allow arbitrary AT command via DBus List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: ptxdist@pengutronix.de Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ptxdist-bounces@pengutronix.de Sender: "ptxdist" To: ptxdist@pengutronix.de Cc: Bruno Thomsen , bth@kamstrup.com This feature is useful when needing to approve a device under RED directive for the EU market where it's required to use the same firmware that ships to customers during radio testing. As this work typically involves the use of hidden/custom commands not need for every day operation. Signed-off-by: Bruno Thomsen --- Since version 2: mol: DBUS is only a runtime dependency. Since version 1: rhi: use select DBUS dependency. rules/modemmanager.in | 5 +++++ rules/modemmanager.make | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/rules/modemmanager.in b/rules/modemmanager.in index 50f2d9c6a..5b8d03016 100644 --- a/rules/modemmanager.in +++ b/rules/modemmanager.in @@ -2,6 +2,7 @@ menuconfig MODEMMANAGER tristate + select DBUS if MODEMMANAGER_ALLOW_DBUS_AT_CMDS && RUNTIME select GLIB select UDEV select LIBGUDEV @@ -24,4 +25,8 @@ config MODEMMANAGER_SYSTEMD_UNIT depends on SYSTEMD prompt "install systemd unit file" +config MODEMMANAGER_ALLOW_DBUS_AT_CMDS + bool + prompt "allow arbitrary AT commands via DBus" + endif diff --git a/rules/modemmanager.make b/rules/modemmanager.make index b26e47c4a..5cae10024 100644 --- a/rules/modemmanager.make +++ b/rules/modemmanager.make @@ -50,7 +50,7 @@ MODEMMANAGER_CONF_OPT := \ --$(call ptx/wwo, PTXCONF_INITMETHOD_SYSTEMD)-systemd-suspend-resume \ --$(call ptx/wwo, PTXCONF_INITMETHOD_SYSTEMD)-systemd-journal \ --without-polkit \ - --without-at-command-via-dbus \ + --$(call ptx/wwo, PTXCONF_MODEMMANAGER_ALLOW_DBUS_AT_CMDS)-at-command-via-dbus \ --with-mbim \ --with-qmi base-commit: e37db9dbf300a5921055a47748291dcc580feca0 -- 2.26.2 _______________________________________________ ptxdist mailing list ptxdist@pengutronix.de To unsubscribe, send a mail with subject "unsubscribe" to ptxdist-request@pengutronix.de