build: Add script to update the unsupported devices from wiki

Avoid some more manual labor
This commit is contained in:
Marco Trevisan (Treviño)
2026-07-24 10:44:26 +00:00
committed by Marco Trevisan
parent 833d39ab59
commit b72feabc58
5 changed files with 85 additions and 5 deletions
+4 -2
View File
@@ -26,9 +26,10 @@
static const FpIdEntry allowlist_id_table[] = {
/* Currently known and unsupported devices.
* You can generate this list from the wiki page using e.g.:
* gio cat https://gitlab.freedesktop.org/libfprint/wiki/-/wikis/Unsupported-Devices.md | sed -n 's!|.*\([0-9a-fA-F]\{4\}\):\([0-9a-fA-F]\{4\}\).*|.*! { .vid = 0x\1, .pid = 0x\2 },!p'
* You can regenerate this list from the wiki page with:
* meson compile -C <build-dir> sync-unsupported-devices
*/
/* --- BEGIN GENERATED IDS --- */
{ .vid = 0x0a5c, .pid = 0x5802 },
{ .vid = 0x047d, .pid = 0x00f2 },
{ .vid = 0x047d, .pid = 0x8054 },
@@ -166,6 +167,7 @@ static const FpIdEntry allowlist_id_table[] = {
{ .vid = 0x298d, .pid = 0x2033 },
{ .vid = 0x2df0, .pid = 0x0003 },
{ .vid = 0x3538, .pid = 0x0930 },
/* --- END GENERATED IDS --- */
{ .vid = 0 },
};
+6 -1
View File
@@ -301,8 +301,9 @@ libfprint_private_dep = declare_dependency(
]
)
udev_hwdb_list_file = files('fprint-list-udev-hwdb.c')
udev_hwdb = executable('fprint-list-udev-hwdb',
'fprint-list-udev-hwdb.c',
udev_hwdb_list_file,
dependencies: libfprint_private_dep,
link_with: libfprint_drivers,
install: false,
@@ -366,6 +367,10 @@ sync_udev_udb = custom_target('sync-udev-hwdb',
alias_target('sync-udev-hwdb', sync_udev_udb)
run_target('sync-unsupported-devices',
command: [ sync_unsupported_files, udev_hwdb_list_file ]
)
supported_devices = executable('fprint-list-supported-devices',
'fprint-list-supported-devices.c',
dependencies: libfprint_private_dep,