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>
This commit is contained in:
Kuan-Yi Li 2021-05-30 07:35:38 +08:00 committed by Hauke Mehrtens
parent 8716dda074
commit 2fdb7053f9

View File

@ -179,6 +179,23 @@ endef
$(eval $(call KernelPackage,usb-gadget-eth)) $(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 define KernelPackage/usb-gadget-serial
TITLE:=USB Serial Gadget support TITLE:=USB Serial Gadget support