]>
Commit | Line | Data |
---|---|---|
3a726fcd | 1 | # SPDX-License-Identifier: LGPL-2.1+ |
3a726fcd | 2 | |
5c23128d | 3 | hwdb_files = files(''' |
37efbbd8 ZJS |
4 | 20-pci-vendor-model.hwdb |
5 | 20-pci-classes.hwdb | |
6 | 20-usb-vendor-model.hwdb | |
7 | 20-usb-classes.hwdb | |
8 | 20-sdio-vendor-model.hwdb | |
9 | 20-sdio-classes.hwdb | |
10 | 20-bluetooth-vendor-product.hwdb | |
11 | 20-acpi-vendor.hwdb | |
12 | 20-OUI.hwdb | |
13 | 20-net-ifname.hwdb | |
2063b554 | 14 | 20-vmbus-class.hwdb |
37efbbd8 | 15 | 60-evdev.hwdb |
4a6ab3f7 | 16 | 60-input-id.hwdb |
37efbbd8 ZJS |
17 | 60-keyboard.hwdb |
18 | 60-sensor.hwdb | |
816be2ba | 19 | 70-joystick.hwdb |
37efbbd8 ZJS |
20 | 70-mouse.hwdb |
21 | 70-pointingstick.hwdb | |
22 | 70-touchpad.hwdb | |
5c23128d ZJS |
23 | '''.split()) |
24 | ||
349cc4a5 | 25 | if conf.get('ENABLE_HWDB') == 1 |
37efbbd8 ZJS |
26 | install_data(hwdb_files, |
27 | install_dir : udevhwdbdir) | |
94e75a54 | 28 | |
37efbbd8 ZJS |
29 | meson.add_install_script('sh', '-c', |
30 | mkdir_p.format(join_paths(sysconfdir, 'udev/hwdb.d'))) | |
f6e49d4e | 31 | |
37efbbd8 ZJS |
32 | meson.add_install_script('sh', '-c', |
33 | 'test -n "$DESTDIR" || @0@/systemd-hwdb update' | |
34 | .format(rootbindir)) | |
5c23128d | 35 | endif |
abba22c5 ZJS |
36 | |
37 | ############################################################ | |
38 | ||
26bd4b7f | 39 | parse_hwdb_py = find_program('parse_hwdb.py') |
938be089 ZJS |
40 | if want_tests != 'false' |
41 | test('parse-hwdb', | |
42 | parse_hwdb_py, | |
43 | timeout : 90) | |
44 | endif | |
26bd4b7f ZJS |
45 | |
46 | ############################################################ | |
47 | ||
a923e085 | 48 | run_target( |
9e82570e | 49 | 'hwdb-update', |
37efbbd8 | 50 | command : [hwdb_update_sh, meson.current_source_dir()]) |
62d39995 ZJS |
51 | |
52 | run_target( | |
53 | 'autosuspend-update', | |
54 | command : [autosuspend_update_sh, project_source_root + '/tools/chromiumos']) |