package: kernel: modules: Add USB Mass Storage package
authorLuka Perkov <luka@openwrt.org>
Tue, 10 May 2016 22:51:54 +0000 (22:51 +0000)
committerLuka Perkov <luka@openwrt.org>
Tue, 10 May 2016 22:51:54 +0000 (22:51 +0000)
Add package which enables building of the USB Mass Storage
support kernel modules (USB MSG).

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

package/kernel/linux/modules/usb.mk

index b41880b5cb7a2dc2edea247db6394d645260b72b..0343cbb07260e01052ac87053a372b374ed60418 100644 (file)
@@ -297,6 +297,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
   TITLE:=Support for UHCI controllers
   KCONFIG:= \