mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-24 07:46:48 +00:00
kernel: Add kernel modules for USB gadget serial devices.
This patch adds support for building the kernel modules for gadget serial devices. Signed-off-by: Owen Kirby <osk@exegin.com> Acked-by: Tim Harvey <tharvey@gateworks.com> SVN-Revision: 40917
This commit is contained in:
parent
af4769e298
commit
4fd7e0cdab
@ -276,6 +276,32 @@ endef
|
||||
$(eval $(call KernelPackage,usb-eth-gadget))
|
||||
|
||||
|
||||
define KernelPackage/usb-serial-gadget
|
||||
TITLE:=USB Serial Gadget support
|
||||
KCONFIG:=CONFIG_USB_G_SERIAL
|
||||
DEPENDS:=+kmod-usb-gadget +(!LINUX_3_3&&!LINUX_3_6):kmod-usb-lib-composite
|
||||
ifneq ($(wildcard $(LINUX_DIR)/drivers/usb/gadget/u_serial.ko),)
|
||||
FILES:= \
|
||||
$(LINUX_DIR)/drivers/usb/gadget/u_serial.ko \
|
||||
$(LINUX_DIR)/drivers/usb/gadget/usb_f_acm.ko \
|
||||
$(LINUX_DIR)/drivers/usb/gadget/usb_f_obex.ko \
|
||||
$(LINUX_DIR)/drivers/usb/gadget/usb_f_serial.ko \
|
||||
$(LINUX_DIR)/drivers/usb/gadget/g_serial.ko
|
||||
AUTOLOAD:=$(call AutoLoad,52,usb_f_acm g_serial)
|
||||
else
|
||||
FILES:=$(LINUX_DIR)/drivers/usb/gadget/g_serial.ko
|
||||
AUTOLOAD:=$(call AutoLoad,52,g_serial)
|
||||
endif
|
||||
$(call AddDepends/usb)
|
||||
endef
|
||||
|
||||
define KernelPackage/usb-serial-gadget/description
|
||||
Kernel support for USB Serial Gadget.
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,usb-serial-gadget))
|
||||
|
||||
|
||||
define KernelPackage/usb-uhci
|
||||
TITLE:=Support for UHCI controllers
|
||||
KCONFIG:= \
|
||||
|
Loading…
Reference in New Issue
Block a user