package/modem-manager: qrtr needs qmi

Fix the following build failure raised since bump to version 1.20.2 in
commit b95334b71f:

../output-1/build/modem-manager-1.20.2/meson.build:262:2: ERROR: Assert failed: QRTR support requires QMI enabled

Fixes:
 - http://autobuild.buildroot.org/results/04b9a41c5edbc492ef640b27d4d3d896d230cf34

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
Fabrice Fontaine 2022-12-31 10:49:35 +01:00 committed by Yann E. MORIN
parent 44be514b21
commit 4bb4288dd0
2 changed files with 13 additions and 1 deletions

View File

@ -25,6 +25,18 @@ config BR2_PACKAGE_MODEM_MANAGER_LIBQMI
select BR2_PACKAGE_LIBQMI
help
This option enables support for QMI protocol
config BR2_PACKAGE_MODEM_MANAGER_LIBQRTR
bool "QRTR support"
depends on BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15 # libqrtr-glib
select BR2_PACKAGE_LIBQRTR_GLIB
select BR2_PACKAGE_MODEM_MANAGER_LIBQMI
help
This option enables support for QRTR protocol
comment "QRTR support needs a toolchain w/ headers >= 4.15"
depends on !BR2_TOOLCHAIN_HEADERS_AT_LEAST_4_15
endif
comment "modemmanager needs a toolchain w/ wchar, threads"

View File

@ -37,7 +37,7 @@ else
MODEM_MANAGER_CONF_OPTS += -Dmbim=false
endif
ifeq ($(BR2_PACKAGE_LIBQRTR_GLIB),y)
ifeq ($(BR2_PACKAGE_MODEM_MANAGER_LIBQRTR),y)
MODEM_MANAGER_DEPENDENCIES += libqrtr-glib
MODEM_MANAGER_CONF_OPTS += -Dqrtr=true
else