aboutsummaryrefslogtreecommitdiffstats
path: root/package
diff options
context:
space:
mode:
authorHarvey Phillips <xcellerator@gmx.com>2018-05-19 20:34:05 +0100
committerHauke Mehrtens <hauke@hauke-m.de>2018-05-21 18:07:47 +0200
commiteee59fa30634a6b567fd21ca5cbf524ce0819d2f (patch)
tree2a7f080e2241a91894730f692596e74b1436548a /package
parent56a03e434386ccd1359d5c995a5a3c0fcc44f6af (diff)
downloadupstream-eee59fa30634a6b567fd21ca5cbf524ce0819d2f.tar.gz
upstream-eee59fa30634a6b567fd21ca5cbf524ce0819d2f.tar.bz2
upstream-eee59fa30634a6b567fd21ca5cbf524ce0819d2f.zip
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>
Diffstat (limited to 'package')
-rw-r--r--package/kernel/linux/modules/usb.mk17
1 files changed, 17 insertions, 0 deletions
diff --git a/package/kernel/linux/modules/usb.mk b/package/kernel/linux/modules/usb.mk
index 0c5bb33f38..5e10f9eab5 100644
--- a/package/kernel/linux/modules/usb.mk
+++ b/package/kernel/linux/modules/usb.mk
@@ -142,6 +142,23 @@ endef
$(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
TITLE:=USB EHCI debug port Gadget support
KCONFIG:=\