[OpenWrt-Devel] [PATCH 2/4] package: kernel: modules: Add USB Mass Storage package

Marek Vasut marex at denx.de
Mon May 2 16:42:10 EDT 2016


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

Signed-off-by: Marek Vasut <marex at denx.de>
---
 package/kernel/linux/modules/usb.mk | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index b41880b..0343cbb 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -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:= \
-- 
2.7.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