aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKuan-Yi Li <kyli@abysm.org>2021-05-30 07:35:38 +0800
committerHauke Mehrtens <hauke@hauke-m.de>2021-06-06 00:26:13 +0200
commit2fdb7053f9e77ed7ae4be0cdbf8a59f79988ee20 (patch)
tree18dcd7a9fb49c4dac38abd2d9f518a44234d49d0
parent8716dda0743454e3949b815613542a4d00fc2a09 (diff)
downloadupstream-2fdb7053f9e77ed7ae4be0cdbf8a59f79988ee20.tar.gz
upstream-2fdb7053f9e77ed7ae4be0cdbf8a59f79988ee20.tar.bz2
upstream-2fdb7053f9e77ed7ae4be0cdbf8a59f79988ee20.zip
kernel: usb: add kmod-usb-gadget-ncm
Add kernel module package for USB Network Control Model (NCM) Gadget support. Signed-off-by: Kuan-Yi Li <kyli@abysm.org>
-rw-r--r--package/kernel/linux/modules/usb.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index 9e8752cc64..3249b854d6 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -179,6 +179,23 @@ endef
$(eval $(call KernelPackage,usb-gadget-eth))
+define KernelPackage/usb-gadget-ncm
+ TITLE:=USB Network Control Model (NCM) Gadget support
+ KCONFIG:=CONFIG_USB_G_NCM
+ DEPENDS:=+kmod-usb-gadget +kmod-usb-lib-composite \
+ +kmod-usb-gadget-eth
+ FILES:= \
+ $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_ncm.ko \
+ $(LINUX_DIR)/drivers/usb/gadget/legacy/g_ncm.ko
+ AUTOLOAD:=$(call AutoLoad,52,usb_f_ncm)
+ $(call AddDepends/usb)
+endef
+
+define KernelPackage/usb-gadget-ncm/description
+ Kernel support for USB Network Control Model (NCM) Gadget
+endef
+
+$(eval $(call KernelPackage,usb-gadget-ncm))
define KernelPackage/usb-gadget-serial
TITLE:=USB Serial Gadget support