aboutsummaryrefslogtreecommitdiffstats
path: root/package/kernel
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2014-06-02 12:43:28 +0000
committerJohn Crispin <blogic@openwrt.org>2014-06-02 12:43:28 +0000
commit7136e4c998fa4bb0136dcc37dde459065ebf5538 (patch)
tree535b6c1dafc75a442e332285d065f6a21cc4f0ae /package/kernel
parentc6c4c6f4b5ad7270cb55b98b7dc080e269206448 (diff)
downloadmaster-187ad058-7136e4c998fa4bb0136dcc37dde459065ebf5538.tar.gz
master-187ad058-7136e4c998fa4bb0136dcc37dde459065ebf5538.tar.bz2
master-187ad058-7136e4c998fa4bb0136dcc37dde459065ebf5538.zip
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> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@40917 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/kernel')
-rw-r--r--package/kernel/linux/modules/usb.mk26
1 files changed, 26 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index e137515487..9226f222a8 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -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:= \