diff options
author | César Belley <cesar.belley@lse.epita.fr> | 2020-08-26 13:42:09 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2020-08-31 08:23:39 +0200 |
commit | d7c1523f58190936ed08d30389399a941994d148 (patch) | |
tree | d1ee6d1c2b50d6cdf412aa49dd1f17a8b1469854 /hw/usb/meson.build | |
parent | 4ee40a6b98c02b72fc5dd262df9d3ac8680d767b (diff) | |
download | qemu-d7c1523f58190936ed08d30389399a941994d148.zip qemu-d7c1523f58190936ed08d30389399a941994d148.tar.gz qemu-d7c1523f58190936ed08d30389399a941994d148.tar.bz2 |
hw/usb: Add U2F device autoscan to passthru mode
This patch adds an autoscan to let u2f-passthru choose the first U2F
device it finds.
The autoscan is performed using libudev with an enumeration of all the
hidraw devices present on the host.
The first device which happens to be a U2F device is taken to do the
passtru.
Signed-off-by: César Belley <cesar.belley@lse.epita.fr>
Message-id: 20200826114209.28821-13-cesar.belley@lse.epita.fr
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw/usb/meson.build')
-rw-r--r-- | hw/usb/meson.build | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/usb/meson.build b/hw/usb/meson.build index a25109b..b7c7ff2 100644 --- a/hw/usb/meson.build +++ b/hw/usb/meson.build @@ -52,7 +52,7 @@ endif # U2F softmmu_ss.add(when: 'CONFIG_USB_U2F', if_true: files('u2f.c')) -softmmu_ss.add(when: ['CONFIG_LINUX', 'CONFIG_USB_U2F'], if_true: files('u2f-passthru.c')) +softmmu_ss.add(when: ['CONFIG_LINUX', 'CONFIG_USB_U2F'], if_true: [libudev, files('u2f-passthru.c')]) if u2f.found() softmmu_ss.add(when: 'CONFIG_USB_U2F', if_true: [u2f, files('u2f-emulated.c')]) endif |