mirror of
https://github.com/libratbag/libratbag.git
synced 2026-11-07 23:23:52 +01:00
This adds udev rules/hwdb that sets RATBAG_DRIVER and RATBAG_SVG properties to the event devices. We then use this property to select the correct driver instead of checking the hardcoded list in the drivers. Having this in a hwdb makes it easier for users to test if drivers match their mouse with a system installed libratbag. Each driver now has an "id" which is used to match the driver set in RATBAG_DRIVER. A SVG can optionally be set as well. All entries in the hwdb are currently without a name as that information was not available in the hardcoded lists. Note that this patch breaks the test-driver.
10 lines
204 B
Makefile
10 lines
204 B
Makefile
udevrulesdir = $(UDEV_BASE_DIR)/rules.d
|
|
udevrules_DATA = 70-libratbag-mouse.rules
|
|
|
|
hwdbdir = $(UDEV_BASE_DIR)/hwdb.d
|
|
hwdb_DATA = 70-libratbag-mouse.hwdb
|
|
|
|
EXTRA_DIST = \
|
|
$(udevrules_DATA) \
|
|
$(hwdb_DATA)
|