Generate a hwdb instead of udev rules

We only use the rules/hwdb to enable auto-suspend. So, instead of
shipping our own rules, we can just use the existing autosuspend rules
and ship a hwdb that sets the appropriate flag.

Closes: #336
This commit is contained in:
Benjamin Berg
2021-01-19 14:13:03 +01:00
parent 16095a21fd
commit 55a2bb5536
5 changed files with 20 additions and 17 deletions

View File

@@ -169,8 +169,8 @@ foreach test_name: unit_tests
endforeach
# Run udev rule generator with fatal warnings
test('udev-rules',
udev_rules,
test('udev-hwdb',
udev_hwdb,
env: envs)
gdb = find_program('gdb', required: false)