mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-12 01:44:54 +00:00
kernel: Add configfs support for USB HID gadget
Added a rule to usb.mk to build usb_f_hid.ko for configfs support Tested on a Raspberry Pi Zero W Signed-off-by: Harvey Phillips <xcellerator@gmx.com>
This commit is contained in:
parent
56a03e4343
commit
eee59fa306
@ -142,6 +142,23 @@ endef
|
|||||||
|
|
||||||
$(eval $(call KernelPackage,usb-lib-composite))
|
$(eval $(call KernelPackage,usb-lib-composite))
|
||||||
|
|
||||||
|
define KernelPackage/usb-gadget-hid
|
||||||
|
TITLE:=USB HID Gadget Support
|
||||||
|
KCONFIG:=CONFIG_USB_G_HID
|
||||||
|
DEPENDS:=+kmod-usb-gadget +kmod-usb-lib-composite
|
||||||
|
FILES:= \
|
||||||
|
$(LINUX_DIR)/drivers/usb/gadget/legacy/g_hid.ko \
|
||||||
|
$(LINUX_DIR)/drivers/usb/gadget/function/usb_f_hid.ko
|
||||||
|
AUTOLOAD:=$(call AutoLoad,52,usb_f_hid)
|
||||||
|
$(call AddDepends/usb)
|
||||||
|
endef
|
||||||
|
|
||||||
|
define KernelPackage/usb-gadget-hid/description
|
||||||
|
Kernel support for USB HID Gadget.
|
||||||
|
endef
|
||||||
|
|
||||||
|
$(eval $(call KernelPackage,usb-gadget-hid))
|
||||||
|
|
||||||
define KernelPackage/usb-gadget-ehci-debug
|
define KernelPackage/usb-gadget-ehci-debug
|
||||||
TITLE:=USB EHCI debug port Gadget support
|
TITLE:=USB EHCI debug port Gadget support
|
||||||
KCONFIG:=\
|
KCONFIG:=\
|
||||||
|
Loading…
Reference in New Issue
Block a user