mirror of
https://git.openwrt.org/openwrt/openwrt.git
synced 2026-01-24 05:51:22 +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 22a69dfa4a9a04833aaac62b9f0a7814571b9e07)
This commit is contained in:
parent
c8b98eab98
commit
8bf13dcb36
@ -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…
x
Reference in New Issue
Block a user