[OpenWrt-Devel] [PATCH 4/4] add usb gadget ehci debug driver

Alexander Couzens lynxis at fe80.eu
Mon Apr 25 21:17:25 EDT 2016


This gadget driver allow you to debug other devices via EHCI Debug Port
capability.

Signed-off-by: Alexander Couzens <lynxis at fe80.eu>
---
 package/kernel/linux/modules/usb.mk | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index 8c5a2ab..7857d44 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -234,6 +234,23 @@ endef
 
 $(eval $(call KernelPackage,usb-lib-composite))
 
+define KernelPackage/usb-ehci-debug-gadget
+  TITLE:=USB EHCI debug port Gadget support
+  KCONFIG:=\
+        CONFIG_USB_G_DBGP \
+	CONFIG_USB_G_DBGP_SERIAL=y \
+	CONFIG_USB_G_DBGP_PRINTK=n
+  DEPENDS:=+kmod-usb-gadget +kmod-usb-lib-composite +kmod-usb-serial-gadget
+  FILES:=$(LINUX_DIR)/drivers/usb/gadget/legacy/g_dbgp.ko
+  AUTOLOAD:=$(call AutoLoad,52,g_dbgp)
+  $(call AddDepends/usb)
+endef
+
+define KernelPackage/usb-ehci-debug-gadget/description
+  Kernel support for USB EHCI debug port Gadget.
+endef
+
+$(eval $(call KernelPackage,usb-ehci-debug-gadget))
 
 define KernelPackage/usb-eth-gadget
   TITLE:=USB Ethernet Gadget support
-- 
2.8.0
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list