aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Crispin <blogic@openwrt.org>2015-10-19 10:10:51 +0000
committerJohn Crispin <blogic@openwrt.org>2015-10-19 10:10:51 +0000
commit1730dcd62fdeb38149daee4abce497b5be201435 (patch)
tree30ac39f17201aaaff0d85fb484f5b0281c7837b9
parentba23715886f29befaa94970b864c686d82ef1f71 (diff)
downloadmaster-187ad058-1730dcd62fdeb38149daee4abce497b5be201435.tar.gz
master-187ad058-1730dcd62fdeb38149daee4abce497b5be201435.tar.bz2
master-187ad058-1730dcd62fdeb38149daee4abce497b5be201435.zip
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 <psidhu@gateworks.com> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47225 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r--package/kernel/linux/modules/usb.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index 986f53f226..487a17de10 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -279,6 +279,23 @@ endef
$(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