Author: blogic
Date: 2015-10-19 12:10:51 +0200 (Mon, 19 Oct 2015)
New Revision: 47225

Modified:
   trunk/package/kernel/linux/modules/usb.mk
Log:
kernel: add usb-mass-storage-gadget driver package

This is another useful gadget driver that can allow an OTG port to act as a
mass storage device.

Signed-off-by: Pushpal Sidhu <[email protected]>

Modified: trunk/package/kernel/linux/modules/usb.mk
===================================================================
--- trunk/package/kernel/linux/modules/usb.mk   2015-10-19 10:10:41 UTC (rev 
47224)
+++ trunk/package/kernel/linux/modules/usb.mk   2015-10-19 10:10:51 UTC (rev 
47225)
@@ -279,7 +279,24 @@
 
 $(eval $(call KernelPackage,usb-serial-gadget))
 
+define KernelPackage/usb-mass-storage-gadget
+  TITLE:=USB Mass Storage support
+  KCONFIG:=CONFIG_USB_MASS_STORAGE
+  DEPENDS:=+kmod-usb-gadget +kmod-usb-lib-composite
+  FILES:= \
+       $(LINUX_DIR)/drivers/usb/gadget/function/usb_f_mass_storage.ko \
+       $(LINUX_DIR)/drivers/usb/gadget/legacy/g_mass_storage.ko
+  AUTOLOAD:=$(call AutoLoad,52,usb_f_mass_storage g_mass_storage)
+  $(call AddDepends/usb)
+endef
 
+define KernelPackage/usb-mass-storage-gadget/description
+  Kernel support for USB Gadget Mass Storage
+endef
+
+$(eval $(call KernelPackage,usb-mass-storage-gadget))
+
+
 define KernelPackage/usb-uhci
   TITLE:=Support for UHCI controllers
   KCONFIG:= \
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to