From 4fd7e0cdabc998d4cc0b165d919736f5200aa58c Mon Sep 17 00:00:00 2001 From: John Crispin Date: Mon, 2 Jun 2014 12:43:28 +0000 Subject: [PATCH] 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 Acked-by: Tim Harvey SVN-Revision: 40917 --- package/kernel/linux/modules/usb.mk | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) 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:= \ -- 2.25.1