mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2025-12-21 21:17:37 -08:00
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:
parent
74b1c52c95
commit
d3e60f09d7
@ -182,11 +182,25 @@ python_check_deps() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pkg_pretend() {
|
pkg_pretend() {
|
||||||
local CONFIG_CHECK="~BPF ~DEBUG_INFO_BTF ~DEBUG_INFO_BTF_MODULES"
|
local options=(
|
||||||
# hidraw: https://docs.kernel.org/hid/hid-bpf.html#tracing
|
BPF DEBUG_INFO_BTF DEBUG_INFO_BTF_MODULES
|
||||||
CONFIG_CHECK+=" ~HID_BPF ~HIDRAW"
|
# hidraw: https://docs.kernel.org/hid/hid-bpf.html#tracing
|
||||||
CONFIG_CHECK+=" ~BPF_EVENTS ~TRACING"
|
HID_BPF HIDRAW BPF_EVENTS TRACING BPF_SYSCALL
|
||||||
CONFIG_CHECK+=" ~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
|
check_extra_config
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user