diff options
author | Hauke Mehrtens <hauke@hauke-m.de> | 2022-08-07 14:35:03 +0200 |
---|---|---|
committer | Hauke Mehrtens <hauke@hauke-m.de> | 2022-08-10 21:36:17 +0200 |
commit | 3b5294beb72cca50f1826963794845e080f88e63 (patch) | |
tree | ba32bcdc95aea3629fd6bd1f64dd2f0b905e28d7 | |
parent | 2a0284fb0325f07e79b9b4c58a7d280ba9999a39 (diff) | |
download | upstream-3b5294beb72cca50f1826963794845e080f88e63.tar.gz upstream-3b5294beb72cca50f1826963794845e080f88e63.tar.bz2 upstream-3b5294beb72cca50f1826963794845e080f88e63.zip |
kernel: kmod-wwan: Add package
This adds the kmod-wwan package. This provides the generic wwan driver
core which is needed for some existing packages.
Currently the drivers/net/wwan/wwan.ko driver is compiled into the
kernel when one of the wwan module is activated, better build it as a
kernel module.
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r-- | package/kernel/linux/modules/netdevices.mk | 27 | ||||
-rw-r--r-- | target/linux/generic/config-5.15 | 2 |
2 files changed, 23 insertions, 6 deletions
diff --git a/package/kernel/linux/modules/netdevices.mk b/package/kernel/linux/modules/netdevices.mk index 50a72f8dd3..55b87ab13e 100644 --- a/package/kernel/linux/modules/netdevices.mk +++ b/package/kernel/linux/modules/netdevices.mk @@ -1361,6 +1361,23 @@ endef $(eval $(call KernelPackage,sfc-falcon)) + +define KernelPackage/wwan + SUBMENU:=$(NETWORK_DEVICES_MENU) + TITLE:=WWAN Driver Core + DEPENDS:=@LINUX_5_15 + KCONFIG:=CONFIG_WWAN + FILES:=$(LINUX_DIR)/drivers/net/wwan/wwan.ko + AUTOLOAD:=$(call AutoProbe,wwan) +endef + +define KernelPackage/wwan/description + his driver provides a common framework for WWAN drivers. +endef + +$(eval $(call KernelPackage,wwan)) + + define KernelPackage/mhi-net SUBMENU:=$(NETWORK_DEVICES_MENU) TITLE:=MHI Network Device @@ -1379,9 +1396,8 @@ $(eval $(call KernelPackage,mhi-net)) define KernelPackage/mhi-wwan-ctrl SUBMENU:=$(NETWORK_DEVICES_MENU) TITLE:=MHI WWAN Control - DEPENDS:=@LINUX_5_15 @PCI_SUPPORT +kmod-mhi-bus - KCONFIG:=CONFIG_MHI_WWAN_CTRL \ - CONFIG_WWAN=y + DEPENDS:=@LINUX_5_15 @PCI_SUPPORT +kmod-mhi-bus +kmod-wwan + KCONFIG:=CONFIG_MHI_WWAN_CTRL FILES:=$(LINUX_DIR)/drivers/net/wwan/mhi_wwan_ctrl.ko AUTOLOAD:=$(call AutoProbe,mhi_wwan_ctrl) endef @@ -1396,9 +1412,8 @@ $(eval $(call KernelPackage,mhi-wwan-ctrl)) define KernelPackage/mhi-wwan-mbim SUBMENU:=$(NETWORK_DEVICES_MENU) TITLE:=MHI MBIM - DEPENDS:=@LINUX_5_15 @PCI_SUPPORT +kmod-mhi-bus - KCONFIG:=CONFIG_MHI_WWAN_MBIM \ - CONFIG_WWAN=y + DEPENDS:=@LINUX_5_15 @PCI_SUPPORT +kmod-mhi-bus +kmod-wwan + KCONFIG:=CONFIG_MHI_WWAN_MBIM FILES:=$(LINUX_DIR)/drivers/net/wwan/mhi_wwan_mbim.ko AUTOLOAD:=$(call AutoProbe,mhi_wwan_mbim) endef diff --git a/target/linux/generic/config-5.15 b/target/linux/generic/config-5.15 index 6323543991..cb2a742632 100644 --- a/target/linux/generic/config-5.15 +++ b/target/linux/generic/config-5.15 @@ -2774,6 +2774,7 @@ CONFIG_INPUT_MISC=y # CONFIG_IOMMU_SUPPORT is not set # CONFIG_IONIC is not set # CONFIG_IOSCHED_BFQ is not set +# CONFIG_IOSM is not set CONFIG_IO_STRICT_DEVMEM=y # CONFIG_IO_URING is not set CONFIG_IO_WQ=y @@ -5056,6 +5057,7 @@ CONFIG_RFKILL=y # CONFIG_RPCSEC_GSS_KRB5 is not set # CONFIG_RPMSG_QCOM_GLINK_RPM is not set # CONFIG_RPMSG_VIRTIO is not set +# CONFIG_RPMSG_WWAN_CTRL is not set # CONFIG_RPR0521 is not set # CONFIG_RSEQ is not set # CONFIG_RT2X00 is not set |