1 # SPDX-License-Identifier: LGPL-2.1+
3 # Copyright 2017 Zbigniew Jędrzejewski-Szmek
5 # systemd is free software; you can redistribute it and/or modify it
6 # under the terms of the GNU Lesser General Public License as published by
7 # the Free Software Foundation; either version 2.1 of the License, or
8 # (at your option) any later version.
10 # systemd is distributed in the hope that it will be useful, but
11 # WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 # Lesser General Public License for more details.
15 # You should have received a copy of the GNU Lesser General Public License
16 # along with systemd; If not, see <http://www.gnu.org/licenses/>.
18 hwdb_files = files('''
19 20-pci-vendor-model.hwdb
21 20-usb-vendor-model.hwdb
23 20-sdio-vendor-model.hwdb
25 20-bluetooth-vendor-product.hwdb
38 if conf.get('ENABLE_HWDB') == 1
39 install_data(hwdb_files,
40 install_dir : udevhwdbdir)
42 meson.add_install_script('sh', '-c',
43 mkdir_p.format(join_paths(sysconfdir, 'udev/hwdb.d')))
45 meson.add_install_script('sh', '-c',
46 'test -n "$DESTDIR" || @0@/systemd-hwdb update'
50 ############################################################
52 parse_hwdb_py = find_program('parse_hwdb.py')
57 ############################################################
61 command : [hwdb_update_sh, meson.current_source_dir()])