From d3e60f09d7a09354937c3c6301613dc48e040916 Mon Sep 17 00:00:00 2001 From: Sam James Date: Wed, 3 Dec 2025 11:25:31 +0000 Subject: [PATCH] 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 --- .../udev-hid-bpf-2.2.0_p20251121.ebuild | 24 +++++++++++++++---- 1 file changed, 19 insertions(+), 5 deletions(-) diff --git a/sys-kernel/udev-hid-bpf/udev-hid-bpf-2.2.0_p20251121.ebuild b/sys-kernel/udev-hid-bpf/udev-hid-bpf-2.2.0_p20251121.ebuild index 2688e741fb2d..f4d942eac6e0 100644 --- a/sys-kernel/udev-hid-bpf/udev-hid-bpf-2.2.0_p20251121.ebuild +++ b/sys-kernel/udev-hid-bpf/udev-hid-bpf-2.2.0_p20251121.ebuild @@ -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 }