[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 08/13] configure: Add USB U2F key device
From: |
César Belley |
Subject: |
[PATCH 08/13] configure: Add USB U2F key device |
Date: |
Wed, 12 Aug 2020 11:41:30 +0200 |
Signed-off-by: César Belley <cesar.belley@lse.epita.fr>
---
configure | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
diff --git a/configure b/configure
index 2acc4d1465..3ea5e561ff 100755
--- a/configure
+++ b/configure
@@ -447,6 +447,7 @@ trace_file="trace"
spice=""
rbd=""
smartcard=""
+u2f=""
libusb=""
usb_redir=""
opengl=""
@@ -1390,6 +1391,10 @@ for opt do
;;
--enable-smartcard) smartcard="yes"
;;
+ --disable-u2f) u2f="no"
+ ;;
+ --enable-u2f) u2f="yes"
+ ;;
--disable-libusb) libusb="no"
;;
--enable-libusb) libusb="yes"
@@ -1899,6 +1904,7 @@ disabled with --disable-FEATURE, default is enabled if
available:
libiscsi iscsi support
libnfs nfs support
smartcard smartcard support (libcacard)
+ u2f U2F support (u2f-emu)
libusb libusb (for usb passthrough)
live-block-migration Block migration in the main migration stream
usb-redir usb network redirection support
@@ -5250,6 +5256,20 @@ if test "$smartcard" != "no"; then
fi
fi
+# check for u2f support
+if test "$u2f" != "no"; then
+ if $pkg_config --atleast-version=0.0.0 u2f-emu; then
+ u2f_emu_cflags=$($pkg_config --cflags u2f-emu)
+ u2f_emu_libs=$($pkg_config --libs u2f-emu)
+ u2f="yes"
+ else
+ if test "$u2f" = "yes"; then
+ feature_not_found "u2f" "Install u2f-emu"
+ fi
+ u2f="no"
+ fi
+fi
+
# check for libusb
if test "$libusb" != "no" ; then
if $pkg_config --atleast-version=1.0.13 libusb-1.0; then
@@ -6965,6 +6985,7 @@ echo "spice support $spice $(echo_version $spice
$spice_protocol_version/$sp
echo "rbd support $rbd"
echo "xfsctl support $xfs"
echo "smartcard support $smartcard"
+echo "U2F support $u2f"
echo "libusb $libusb"
echo "usb net redir $usb_redir"
echo "OpenGL support $opengl"
@@ -7543,6 +7564,12 @@ if test "$smartcard" = "yes" ; then
echo "SMARTCARD_LIBS=$libcacard_libs" >> $config_host_mak
fi
+if test "$u2f" = "yes" ; then
+ echo "CONFIG_U2F=y" >> $config_host_mak
+ echo "U2F_CFLAGS=$u2f_emu_cflags" >> $config_host_mak
+ echo "U2F_LIBS=$u2f_emu_libs" >> $config_host_mak
+fi
+
if test "$libusb" = "yes" ; then
echo "CONFIG_USB_LIBUSB=y" >> $config_host_mak
echo "LIBUSB_CFLAGS=$libusb_cflags" >> $config_host_mak
--
2.28.0
- [PATCH 00/13] Introduce USB U2F key device, César Belley, 2020/08/12
- [PATCH 01/13] hw/usb: Regroup USB HID protocol values, César Belley, 2020/08/12
- [PATCH 02/13] docs: Add USB U2F key device documentation, César Belley, 2020/08/12
- [PATCH 03/13] hw/usb: Add U2F key base class, César Belley, 2020/08/12
- [PATCH 05/13] hw/usb: Add U2F key passthru mode, César Belley, 2020/08/12
- [PATCH 08/13] configure: Add USB U2F key device,
César Belley <=
- [PATCH 10/13] docs/qdev-device-use.txt: Add USB U2F key to the QDEV devices examples, César Belley, 2020/08/12
- [PATCH 04/13] hw/usb: Add U2F key base class implementation, César Belley, 2020/08/12
- [PATCH 07/13] hw/usb: Add U2F key build recipe, César Belley, 2020/08/12
- [PATCH 09/13] docs/system: Add U2F key to the USB devices examples, César Belley, 2020/08/12
- [PATCH 06/13] hw/usb: Add U2F key emulated mode, César Belley, 2020/08/12
- [PATCH 11/13] scripts: Add u2f-setup-gen script, César Belley, 2020/08/12
- [PATCH 12/13] hw/usb: Add U2F device check to passthru mode, César Belley, 2020/08/12
- [PATCH 13/13] hw/usb: Add U2F device autoscan to passthru mode, César Belley, 2020/08/12
- Re: [PATCH 00/13] Introduce USB U2F key device, Gerd Hoffmann, 2020/08/19