Skip to content

Create and use a hwdb for our BPF files

Peter Hutterer requested to merge whot/udev-hid-bpf:wip/hwdb into main

This sits on top of !7 (merged)

This MR enforces that all BPF files have a fixed naming scheme that matches the HID modalias - notably we now use 8 digits for VID/PID as in the modalias file to make things a bit easier. The build script will fail the build if there's a file with a noncompliant match (* still works as before).

And now that we know our files all match the modalias, we can use those filenames to generate a hwdb file that sets the HID_BPF= udev property and adjust the udev rule to use that property to decide whether to load our BPF filese.

Merge request reports