package: kernel: modules: Add USB Mass Storage package
package: kernel: modules: Add USB Mass Storage package

Add package which enables building of the USB Mass Storage
support kernel modules (USB MSG).

Signed-off-by: Marek Vasut <marex@denx.de>

git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49365 3c298f89-4303-0410-b956-a3cf2f4a3e73

--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -295,6 +295,24 @@
 endef
 
 $(eval $(call KernelPackage,usb-mass-storage-gadget))
+
+
+define KernelPackage/usb-storage-gadget
+  TITLE:=USB Mass Storage Gadget support
+  KCONFIG:=CONFIG_USB_F_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_storage.ko
+  AUTOLOAD:=$(call AutoLoad,52,usb_f_mass_storage g_storage)
+  $(call AddDepends/usb)
+endef
+
+define KernelPackage/usb-storage-gadget/description
+  Kernel support for USB Mass Storage Gadget.
+endef
+
+$(eval $(call KernelPackage,usb-storage-gadget))
 
 
 define KernelPackage/usb-uhci

comments