mirror of
https://github.com/openwrt/openwrt.git
synced 2026-10-12 04:47:17 +04:00
kernel: select evdev for HID only with input-support
Since kmod-input-evdev depends on input-support, kmod-hid and
kmod-usb-hid are hidden without it, and so is everything selecting
kmod-hid: kmod-bluetooth, kmod-hci-uart and kmod-btusb. A device that
lists one of them in DEVICE_PACKAGES fails to build as a single profile:
ERROR: unable to select packages:
kmod-hci-uart (no such package):
Neither module needs evdev, so select it only with input-support.
Fixes: a7c50f7d73 ("input-support: add a package for input device handling")
Assisted-by: Claude:claude-opus-5-5
Signed-off-by: Julius Bairaktaris <julius@bairaktaris.de>
Link: https://github.com/openwrt/openwrt/pull/25565
Signed-off-by: Nick Hainke <vincent@systemli.org>
This commit is contained in:
1 parent
8b767c4bd5
commit
f2ec42706e
2 files changed
+2
-2
No files matched your search
@@ -10,7 +10,7 @@ INPUT_MODULES_MENU:=Input modules
|
||||
define KernelPackage/hid
|
||||
SUBMENU:=$(INPUT_MODULES_MENU)
|
||||
TITLE:=HID Devices
|
||||
DEPENDS:=+kmod-input-core +kmod-input-evdev
|
||||
DEPENDS:=+kmod-input-core +PACKAGE_input-support:kmod-input-evdev
|
||||
KCONFIG:=CONFIG_HID CONFIG_HID_SUPPORT=y CONFIG_HIDRAW=y CONFIG_HID_BATTERY_STRENGTH=y
|
||||
FILES:=$(LINUX_DIR)/drivers/hid/hid.ko
|
||||
AUTOLOAD:=$(call AutoLoad,61,hid)
|
||||
|
||||
@@ -1662,7 +1662,7 @@ $(eval $(call KernelPackage,usb-net-pl))
|
||||
define KernelPackage/usb-hid
|
||||
TITLE:=Support for USB Human Input Devices
|
||||
KCONFIG:=CONFIG_HID_SUPPORT=y CONFIG_USB_HID CONFIG_USB_HIDDEV=y
|
||||
DEPENDS:=+kmod-hid +kmod-hid-generic +kmod-input-evdev
|
||||
DEPENDS:=+kmod-hid +kmod-hid-generic +PACKAGE_input-support:kmod-input-evdev
|
||||
FILES:=$(LINUX_DIR)/drivers/$(USBHID_DIR)/usbhid.ko
|
||||
AUTOLOAD:=$(call AutoProbe,usbhid)
|
||||
$(call AddDepends/usb)
|
||||
|
||||
Reference in new issue
Block a user