mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-28 03:37:17 +01:00
kernel: add option for USB FunctionFS gadget
Add menuconfig option 'kmod-usb-gadget-fs' for the USB FunctionFS gadget
module
OpenWRT is perfect for USB gadgets that are network-enabled, since it
provides everything needed to easily manage the device. Having support
for the FunctionFS gadget enables the use of any custom USB devices
that does not have a specific module, like Media Transfer Protocol.
Signed-off-by: Dominic Germain <dominic@germain.cc>
Link: https://github.com/openwrt/openwrt/pull/21207
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit 22a69dfa4a)
This commit is contained in:
parent
c8b98eab98
commit
8bf13dcb36
1 changed files with 18 additions and 0 deletions
|
|
@ -154,6 +154,24 @@ endef
|
|||
|
||||
$(eval $(call KernelPackage,usb-gadget-hid))
|
||||
|
||||
define KernelPackage/usb-gadget-fs
|
||||
TITLE:=USB FunctionFS Gadget Support
|
||||
KCONFIG:=CONFIG_USB_FUNCTIONFS \
|
||||
CONFIG_USB_FUNCTIONFS_ETH=n \
|
||||
CONFIG_USB_FUNCTIONFS_RNDIS=n
|
||||
FILES:= \
|
||||
$(LINUX_DIR)/drivers/usb/gadget/legacy/g_ffs.ko \
|
||||
$(LINUX_DIR)/drivers/usb/gadget/function/usb_f_fs.ko
|
||||
AUTOLOAD:=$(call AutoLoad,52,usb_f_fs)
|
||||
$(call AddDepends/usbgadget,+kmod-usb-lib-composite +kmod-dma-buf)
|
||||
endef
|
||||
|
||||
define KernelPackage/usb-gadget-fs/description
|
||||
Kernel support for USB FunctionFS Gadget.
|
||||
endef
|
||||
|
||||
$(eval $(call KernelPackage,usb-gadget-fs))
|
||||
|
||||
define KernelPackage/usb-gadget-ehci-debug
|
||||
TITLE:=USB EHCI debug port Gadget support
|
||||
KCONFIG:=\
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue