From: Christian Korber Date: Fri, 3 Jul 2026 07:48:18 +0000 (+0200) Subject: modemmanager: make building builtin options optional X-Git-Url: http://git.99rst.org/?a=commitdiff_plain;h=b71338b5a7ec279a5b1c3db91298366e1d6da4e8;p=openwrt-packages.git modemmanager: make building builtin options optional This commit enables to choose whether to compile the plugins into the binary or not. If not included, it moves the plugins to `/usr/lib/ModemManager/`. Signed-off-by: Christian Korber --- diff --git a/net/modemmanager/Config.in b/net/modemmanager/Config.in index 90248a8e1..ceb171c45 100644 --- a/net/modemmanager/Config.in +++ b/net/modemmanager/Config.in @@ -33,4 +33,9 @@ config MODEMMANAGER_WITH_AT_COMMAND_VIA_DBUS help Compile ModemManager allowing AT commands without debug flag +config MODEMMANAGER_WITH_BUILTIN_PLUGINS + bool "Build modemmanager with builtin plugins" + default y + help + Build ModemManager with builtin plugins endmenu diff --git a/net/modemmanager/Makefile b/net/modemmanager/Makefile index bc671bfc6..8fa6f48c6 100644 --- a/net/modemmanager/Makefile +++ b/net/modemmanager/Makefile @@ -84,7 +84,7 @@ MESON_ARGS += \ -Dintrospection=false \ -Dman=false \ -Dbash_completion=false \ - -Dbuiltin_plugins=true \ + -Dbuiltin_plugins=$(if $(CONFIG_MODEMMANAGER_WITH_BUILTIN_PLUGINS),true,false) \ -Db_lto=true \ -Dmbim=$(if $(CONFIG_MODEMMANAGER_WITH_MBIM),true,false) \ -Dqmi=$(if $(CONFIG_MODEMMANAGER_WITH_QMI),true,false) \ @@ -120,6 +120,10 @@ define Package/modemmanager/install $(INSTALL_DIR) $(1)/usr/lib $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmm-glib.so.* $(1)/usr/lib + $(INSTALL_DIR) $(1)/usr/lib/ModemManager + $(CP) $(PKG_INSTALL_DIR)/usr/lib/ModemManager/libmm-shared-*.so* $(1)/usr/lib/ModemManager + $(CP) $(PKG_INSTALL_DIR)/usr/lib/ModemManager/libmm-plugin-*.so* $(1)/usr/lib/ModemManager + $(INSTALL_DIR) $(1)/usr/lib/ModemManager/connection.d $(INSTALL_BIN) ./files/usr/lib/ModemManager/connection.d/10-report-down \ $(1)/usr/lib/ModemManager/connection.d