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 <gilles.lenaerts_ext@softathome.com>
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
$(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
################################################################################
. /lib/functions.sh
-. /lib/netifd/netifd-proto.sh
################################################################################
# Runtime state