From: Gilles Lenaerts Date: Tue, 11 Feb 2025 12:58:57 +0000 (+0100) Subject: modemmanager: add config optional netifd integration X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=5cb12d479b43eaed89066827690a23f4e1e994a7;p=feed%2Fpackages.git modemmanager: add config optional netifd integration This change introduces an optional configuration of the netifd integration in the ModemManager package. When disabled, it removes the NETIFD dependency and other unwanted components from the root filesystem during the build phase. Additionally, in the modemmanager.common the netifd-proto.sh inclusion line can be savely removed as there is no usage of it in its functions. Signed-off-by: Gilles Lenaerts --- diff --git a/net/modemmanager/Config.in b/net/modemmanager/Config.in index ebcb60dbcc..90248a8e1f 100644 --- a/net/modemmanager/Config.in +++ b/net/modemmanager/Config.in @@ -1,6 +1,12 @@ menu "Configuration" depends on PACKAGE_modemmanager +config MODEMMANAGER_WITH_NETIFD + bool "Include netifd support" + default y + help + Provide ModemManager with netifd support + config MODEMMANAGER_WITH_MBIM bool "Include MBIM support" default y diff --git a/net/modemmanager/Makefile b/net/modemmanager/Makefile index fc50a7478a..6fb6539de1 100644 --- a/net/modemmanager/Makefile +++ b/net/modemmanager/Makefile @@ -153,9 +153,11 @@ define Package/modemmanager/install $(INSTALL_DATA) ./files/etc/hotplug.d/wwan/25-modemmanager-wwan \ $(1)/etc/hotplug.d/wwan +ifeq ($(CONFIG_MODEMMANAGER_WITH_NETIFD),y) $(INSTALL_DIR) $(1)/lib/netifd/proto $(INSTALL_BIN) ./files/lib/netifd/proto/modemmanager.sh \ $(1)/lib/netifd/proto +endif endef define Package/modemmanager-rpcd/install diff --git a/net/modemmanager/files/usr/share/ModemManager/modemmanager.common b/net/modemmanager/files/usr/share/ModemManager/modemmanager.common index 0315673d88..bc35eaca97 100644 --- a/net/modemmanager/files/usr/share/ModemManager/modemmanager.common +++ b/net/modemmanager/files/usr/share/ModemManager/modemmanager.common @@ -5,7 +5,6 @@ ################################################################################ . /lib/functions.sh -. /lib/netifd/netifd-proto.sh ################################################################################ # Runtime state