sys-kernel/udev-hid-bpf: add more config options from kernel selftests

Extracted from tools/testing/selftests/hid/config in linux.git.

Some of the more device-specific ones of course may not be needed but
we don't have USE-per-quirk and I don't really want to add that, as upstream
have no way of doing that (they have a filter for install, not for building;
can use INSTALL_MASK for doing that or MYMESONARGS to set the install option).

Bug: https://bugs.gentoo.org/961038
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James 2025-12-03 11:25:31 +00:00
parent 74b1c52c95
commit d3e60f09d7
No known key found for this signature in database
GPG Key ID: 738409F520DF9190

View File

@ -182,11 +182,25 @@ python_check_deps() {
}
pkg_pretend() {
local CONFIG_CHECK="~BPF ~DEBUG_INFO_BTF ~DEBUG_INFO_BTF_MODULES"
# hidraw: https://docs.kernel.org/hid/hid-bpf.html#tracing
CONFIG_CHECK+=" ~HID_BPF ~HIDRAW"
CONFIG_CHECK+=" ~BPF_EVENTS ~TRACING"
CONFIG_CHECK+=" ~BPF_SYSCALL"
local options=(
BPF DEBUG_INFO_BTF DEBUG_INFO_BTF_MODULES
# hidraw: https://docs.kernel.org/hid/hid-bpf.html#tracing
HID_BPF HIDRAW BPF_EVENTS TRACING BPF_SYSCALL
# tools/testing/selftests/hid/config
BPF_JIT BPF_KPROBE_OVERRIDE BPF_LSM
BPF_PRELOAD BPF_PRELOAD_UMD BPF_KPROBE_OVERRIDE
BPF_STREAM_PARSER CGROUP_BPF DYNAMIC_FTRACE_WITH_DIRECT_CALLS
FPROBE FTRACE_SYSCALLS FUNCTION_TRACER HID
INPUT_EVDEV UHID LEDS_CLASS_MULTICOLOR
USB USB_HID HID_APPLE HID_ITE HID_MULTITOUCH
HID_PLAYSTATION PLAYSTATION_FF HID_SONY
SONY_FF HID_WACOM
)
local CONFIG_CHECK f
for f in "${options[@]}"; do
CONFIG_CHECK+=" ~${f}"
done
check_extra_config
}