summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Freihofer <adrian.freihofer@gmail.com>2022-06-07 00:01:37 +0200
committerKhem Raj <raj.khem@gmail.com>2022-06-06 16:34:28 -0700
commit11df15765c1c16572dfbbbe2831de6ad39f0ed63 (patch)
tree5a17599fc142341d3bca2efc54a9f4d7b0a8bddf
parentc78645dc29e132645462ab50e3f195f356e46af7 (diff)
downloadmeta-openembedded-11df15765c1c16572dfbbbe2831de6ad39f0ed63.tar.gz
modemmanager: update to 1.18.8
* A new connection status dispatcher setup is provided, where users can provide custom scripts that will be called on bearer connect/disconnect events. This dispatcher will make the netifd integration in openwrt work much better, as we'll be able to report network-initiated disconnections cleanly to netifd. There are no default connection status dispatcher scripts installed, but it's suggested distributions make sure the following directories exist: - ${sysconfdir}/ModemManager/connection.d/ - ${libdir}/ModemManager/connection.d/ * API: ** Add missing Simple interface definitions in ModemManager-names.h. * Build: ** meson: fix daemon enums dependencies. ** meson: fix port enums includes. ** meson: fix 'export_packages' in GIR setup. ** meson: fix simtech plugin module name. ** systemd: don't run ModemManager in containers. * Core: ** serial: ensure the port object is valid after BUFFER_FULL handling. ** netlink: use unaligned netlink attribute length. ** netlink: only change IFF_UP flag. ** bearer: match unknown auth to chap in loose comparisons. ** charsets: return error if UTF-8 validation fails. ** fcc-unlock: make scripts POSIX shell compatible. ** modem-helpers: consider minimum ID when choosing best profile. ** modem-helpers: fix reading <Act> given in COPS=? responses. ** sms: prevent crash if date is out of range. ** profile-manager: fix copy-paste error on tags for quarks. * QMI: ** Ignore slot status indications until initial status is known. ** Return error when loading capabilities if none is found. * MBIM: ** Default initial EPS bearer's auth to chap when unknown. ** Update default error when network error is out of range. * mmcli: ** Fix key length when printing list of items. * Plugins: ** linktop: new port type hints. ** cinterion: add support for PLSx3w modems ** huawei: disable +CPOL based features in Huawei E226 * Several other minor improvements and fixes. Signed-off-by: Adrian Freihofer <adrian.freihofer@siemens.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-oe/recipes-connectivity/modemmanager/files/0001-core-switch-bash-shell-scripts-to-use-bin-sh-for-use.patch42
-rw-r--r--meta-oe/recipes-connectivity/modemmanager/files/0002-fcc-unlock-Make-scripts-POSIX-shell-compatible.patch100
-rw-r--r--meta-oe/recipes-connectivity/modemmanager/modemmanager_1.18.8.bb (renamed from meta-oe/recipes-connectivity/modemmanager/modemmanager_1.18.6.bb)5
3 files changed, 24 insertions, 123 deletions
diff --git a/meta-oe/recipes-connectivity/modemmanager/files/0001-core-switch-bash-shell-scripts-to-use-bin-sh-for-use.patch b/meta-oe/recipes-connectivity/modemmanager/files/0001-core-switch-bash-shell-scripts-to-use-bin-sh-for-use.patch
index 7c3e7750af..914760512a 100644
--- a/meta-oe/recipes-connectivity/modemmanager/files/0001-core-switch-bash-shell-scripts-to-use-bin-sh-for-use.patch
+++ b/meta-oe/recipes-connectivity/modemmanager/files/0001-core-switch-bash-shell-scripts-to-use-bin-sh-for-use.patch
@@ -1,42 +1,44 @@
1From f7a3292c1c753b29384e216693f51a4213fea7d0 Mon Sep 17 00:00:00 2001 1From 35173fa04d0116ba30a86dc1a19f859f2be14a24 Mon Sep 17 00:00:00 2001
2From: "Bruce A. Johnson" <waterfordtrack@gmail.com> 2From: "Bruce A. Johnson" <waterfordtrack@gmail.com>
3Date: Wed, 22 Dec 2021 14:24:02 -0500 3Date: Wed, 22 Dec 2021 14:24:02 -0500
4Subject: [PATCH 1/2] core: switch bash shell scripts to use /bin/sh for use 4Subject: [PATCH] core: switch bash shell scripts to use /bin/sh for use
5 w/Busybox. 5 w/Busybox.
6 6
7Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/483 7Fixes https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/issues/483
8
9%% original patch: 0001-core-switch-bash-shell-scripts-to-use-bin-sh-for-use.patch
8--- 10---
9 data/fcc-unlock/105b | 2 +- 11 data/dispatcher-fcc-unlock/105b | 2 +-
10 data/fcc-unlock/1199 | 2 +- 12 data/dispatcher-fcc-unlock/1199 | 2 +-
11 data/fcc-unlock/1eac | 2 +- 13 data/dispatcher-fcc-unlock/1eac | 2 +-
12 test/mmcli-test-sms | 2 +- 14 test/mmcli-test-sms | 2 +-
13 tools/tests/test-wrapper.sh.in | 2 +- 15 tools/tests/test-wrapper.sh.in | 2 +-
14 5 files changed, 5 insertions(+), 5 deletions(-) 16 5 files changed, 5 insertions(+), 5 deletions(-)
15 17
16diff --git a/data/fcc-unlock/105b b/data/fcc-unlock/105b 18diff --git a/data/dispatcher-fcc-unlock/105b b/data/dispatcher-fcc-unlock/105b
17index 21fe5329..f276050f 100644 19index 444bd51f..772c90f4 100644
18--- a/data/fcc-unlock/105b 20--- a/data/dispatcher-fcc-unlock/105b
19+++ b/data/fcc-unlock/105b 21+++ b/data/dispatcher-fcc-unlock/105b
20@@ -1,4 +1,4 @@ 22@@ -1,4 +1,4 @@
21-#!/bin/bash 23-#!/bin/bash
22+#!/bin/sh 24+#!/bin/sh
23 25
24 # SPDX-License-Identifier: CC0-1.0 26 # SPDX-License-Identifier: CC0-1.0
25 # 2021 Aleksander Morgado <aleksander@aleksander.es> 27 # 2021 Aleksander Morgado <aleksander@aleksander.es>
26diff --git a/data/fcc-unlock/1199 b/data/fcc-unlock/1199 28diff --git a/data/dispatcher-fcc-unlock/1199 b/data/dispatcher-fcc-unlock/1199
27index 0109c6ab..e1d3804c 100644 29index 83ab2c9e..6dbf8d1b 100644
28--- a/data/fcc-unlock/1199 30--- a/data/dispatcher-fcc-unlock/1199
29+++ b/data/fcc-unlock/1199 31+++ b/data/dispatcher-fcc-unlock/1199
30@@ -1,4 +1,4 @@ 32@@ -1,4 +1,4 @@
31-#!/bin/bash 33-#!/bin/bash
32+#!/bin/sh 34+#!/bin/sh
33 35
34 # SPDX-License-Identifier: CC0-1.0 36 # SPDX-License-Identifier: CC0-1.0
35 # 2021 Aleksander Morgado <aleksander@aleksander.es> 37 # 2021 Aleksander Morgado <aleksander@aleksander.es>
36diff --git a/data/fcc-unlock/1eac b/data/fcc-unlock/1eac 38diff --git a/data/dispatcher-fcc-unlock/1eac b/data/dispatcher-fcc-unlock/1eac
37index 1068d9c2..d9342852 100644 39index 1a048dc8..44ce46d7 100644
38--- a/data/fcc-unlock/1eac 40--- a/data/dispatcher-fcc-unlock/1eac
39+++ b/data/fcc-unlock/1eac 41+++ b/data/dispatcher-fcc-unlock/1eac
40@@ -1,4 +1,4 @@ 42@@ -1,4 +1,4 @@
41-#!/bin/bash 43-#!/bin/bash
42+#!/bin/sh 44+#!/bin/sh
@@ -64,5 +66,5 @@ index d64ea4cb..fcdb56de 100644
64 # For debugging behavior of test-modemmanager-service.py, you can modify 66 # For debugging behavior of test-modemmanager-service.py, you can modify
65 # this line to add --log-file option 67 # this line to add --log-file option
66-- 68--
672.34.1 692.35.3
68 70
diff --git a/meta-oe/recipes-connectivity/modemmanager/files/0002-fcc-unlock-Make-scripts-POSIX-shell-compatible.patch b/meta-oe/recipes-connectivity/modemmanager/files/0002-fcc-unlock-Make-scripts-POSIX-shell-compatible.patch
deleted file mode 100644
index d911d54ce4..0000000000
--- a/meta-oe/recipes-connectivity/modemmanager/files/0002-fcc-unlock-Make-scripts-POSIX-shell-compatible.patch
+++ /dev/null
@@ -1,100 +0,0 @@
1From ddf634b92bf96b35f521db6da329628b4525c2eb Mon Sep 17 00:00:00 2001
2From: Sven Schwermer <sven.schwermer@disruptive-technologies.com>
3Date: Fri, 25 Feb 2022 21:37:13 +0100
4Subject: [PATCH 2/2] fcc-unlock: Make scripts POSIX shell compatible
5
6This allows us to not rely on bash which may not be available on
7constrained systems, e.g. Yocto-built embedded systems. The scripts now
8pass shellcheck.
9
10Signed-off-by: Sven Schwermer <sven.schwermer@disruptive-technologies.com>
11---
12 data/fcc-unlock/105b | 8 ++++----
13 data/fcc-unlock/1199 | 6 +++---
14 data/fcc-unlock/1eac | 8 ++++----
15 3 files changed, 11 insertions(+), 11 deletions(-)
16
17diff --git a/data/fcc-unlock/105b b/data/fcc-unlock/105b
18index f276050f..772c90f4 100644
19--- a/data/fcc-unlock/105b
20+++ b/data/fcc-unlock/105b
21@@ -15,20 +15,20 @@ shift
22 # second and next arguments are control port names
23 for PORT in "$@"; do
24 # match port type in Linux 5.14 and newer
25- grep -q MBIM /sys/class/wwan/${PORT}/type 2>/dev/null && {
26+ grep -q MBIM "/sys/class/wwan/$PORT/type" 2>/dev/null && {
27 MBIM_PORT=$PORT
28 break
29 }
30 # match port name in Linux 5.13
31- [[ $PORT == *"MBIM"* ]] && {
32+ echo "$PORT" | grep -q MBIM && {
33 MBIM_PORT=$PORT
34 break
35 }
36 done
37
38 # fail if no MBIM port exposed
39-[ -n "${MBIM_PORT}" ] || exit 2
40+[ -n "$MBIM_PORT" ] || exit 2
41
42 # run qmicli operation over MBIM
43-qmicli --device-open-proxy --device=/dev/${MBIM_PORT} --dms-foxconn-set-fcc-authentication=0
44+qmicli --device-open-proxy --device="/dev/$MBIM_PORT" --dms-foxconn-set-fcc-authentication=0
45 exit $?
46diff --git a/data/fcc-unlock/1199 b/data/fcc-unlock/1199
47index e1d3804c..6dbf8d1b 100644
48--- a/data/fcc-unlock/1199
49+++ b/data/fcc-unlock/1199
50@@ -19,15 +19,15 @@ shift
51 # second and next arguments are control port names
52 for PORT in "$@"; do
53 # match port name
54- [[ $PORT == *"cdc-wdm"* ]] && {
55+ echo "$PORT" | grep -q cdc-wdm && {
56 CDC_WDM_PORT=$PORT
57 break
58 }
59 done
60
61 # fail if no cdc-wdm port exposed
62-[ -n "${CDC_WDM_PORT}" ] || exit 2
63+[ -n "$CDC_WDM_PORT" ] || exit 2
64
65 # run qmicli operation
66-qmicli --device-open-proxy --device=/dev/${CDC_WDM_PORT} --dms-set-fcc-authentication
67+qmicli --device-open-proxy --device="/dev/$CDC_WDM_PORT" --dms-set-fcc-authentication
68 exit $?
69diff --git a/data/fcc-unlock/1eac b/data/fcc-unlock/1eac
70index d9342852..44ce46d7 100644
71--- a/data/fcc-unlock/1eac
72+++ b/data/fcc-unlock/1eac
73@@ -15,20 +15,20 @@ shift
74 # second and next arguments are control port names
75 for PORT in "$@"; do
76 # match port type in Linux 5.14 and newer
77- grep -q MBIM /sys/class/wwan/${PORT}/type 2>/dev/null && {
78+ grep -q MBIM "/sys/class/wwan/$PORT/type" 2>/dev/null && {
79 MBIM_PORT=$PORT
80 break
81 }
82 # match port name in Linux 5.13
83- [[ $PORT == *"MBIM"* ]] && {
84+ echo "$PORT" | grep -q MBIM && {
85 MBIM_PORT=$PORT
86 break
87 }
88 done
89
90 # fail if no MBIM port exposed
91-[ -n "${MBIM_PORT}" ] || exit 2
92+[ -n "$MBIM_PORT" ] || exit 2
93
94 # run mbimcli operation
95-mbimcli --device-open-proxy --device=/dev/${MBIM_PORT} --quectel-set-radio-state=on
96+mbimcli --device-open-proxy --device="/dev/$MBIM_PORT" --quectel-set-radio-state=on
97 exit $?
98--
992.34.1
100
diff --git a/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.18.6.bb b/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.18.8.bb
index 14d9942c02..28f81ba6e5 100644
--- a/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.18.6.bb
+++ b/meta-oe/recipes-connectivity/modemmanager/modemmanager_1.18.8.bb
@@ -12,13 +12,12 @@ inherit gnomebase gettext systemd gobject-introspection bash-completion
12 12
13DEPENDS = "glib-2.0 libgudev libxslt-native dbus" 13DEPENDS = "glib-2.0 libgudev libxslt-native dbus"
14 14
15SRCREV ?= "a7bcf2036b34d5043dbc33fee7d98bae5859c4d3" 15SRCREV ?= "0d8b5e93fc62eb0f41e18a2d9d845331d7af36ec"
16 16
17# Patches 0001, 0002 will be in ModemManager > 1.18.6 17# Patch 0001 will be in ModemManager > 1.19
18SRC_URI = " \ 18SRC_URI = " \
19 git://gitlab.freedesktop.org/mobile-broadband/ModemManager.git;protocol=https;branch=mm-1-18 \ 19 git://gitlab.freedesktop.org/mobile-broadband/ModemManager.git;protocol=https;branch=mm-1-18 \
20 file://0001-core-switch-bash-shell-scripts-to-use-bin-sh-for-use.patch \ 20 file://0001-core-switch-bash-shell-scripts-to-use-bin-sh-for-use.patch \
21 file://0002-fcc-unlock-Make-scripts-POSIX-shell-compatible.patch \
22" 21"
23 22
24S = "${WORKDIR}/git" 23S = "${WORKDIR}/git"