From nobody Tue Feb 10 23:33:02 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1597225527; cv=none; d=zohomail.com; s=zohoarc; b=bf3ezbWjiH7Roiu4mCgejq8m7fpSRlBGhkmK3mOS7hR2b/Rs5eSrmgQ6CKTn85BpPzn5qmhGhHvmS9eZlDQ1hOEM33QyzS2XBOe91CONOrsZ/NoZz6qqrTS3kOH3ldApMh9hZjzl3y8z3xxp+GFC93xcpZa9AU/n233XYP5w85A= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1597225527; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=K42hAKjm1rLprGFRqGQ+wifyVAn3hRvqBb3KmLjoXtc=; b=fZ587WfU1Bt9+FMZC1X90X0/OeuGOQGislJQTA/cV214jud+70I+B1qBCqeZaq34T2NowLK358RqDM4KaR5H3ZoUG8ivjOPcjpf31ODck+ygwInrLWJOv69kpKbIqIJYAhMUbbCeN0G22Y9Q5xRHPujviWPK5MgJFn1h7OM19o0= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1597225527916374.0418344731537; Wed, 12 Aug 2020 02:45:27 -0700 (PDT) Received: from localhost ([::1]:39094 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1k5nK2-0006rP-1O for importer@patchew.org; Wed, 12 Aug 2020 05:45:26 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:42344) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5nHV-00027p-Qj for qemu-devel@nongnu.org; Wed, 12 Aug 2020 05:42:49 -0400 Received: from gate-2.cri.epita.net ([163.5.55.20]:40906 helo=mail-2.srv.cri.epita.fr) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1k5nHU-0006kk-3P for qemu-devel@nongnu.org; Wed, 12 Aug 2020 05:42:49 -0400 Received: from MattGorko-Laptop.localdomain (unknown [78.194.154.81]) (Authenticated sender: cesar.belley) by mail-2.srv.cri.epita.fr (Postfix) with ESMTPSA id CDDBA415D1; Wed, 12 Aug 2020 11:42:46 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=lse.epita.fr; s=cri; t=1597225366; bh=iKIh0pVXn2xcd5xyw+MbSBYuutfq5VrL5AOyRI9zABo=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NDeLpgV64JD0+biihEOHvtimcV+M2KW1v4dSKw01hqlitzCFi5kwj2MHX4n2+cT/H TlqXVDDcrl0T+1IRcw0dIZ7bRbQagFiHiAyMajpGE3eztqjUP5tVhoZDc2tnmAJPH8 9LlrHbkA81W+MpGl2fb/3q5U49EKwB/F3SBsbR4s= From: =?UTF-8?q?C=C3=A9sar=20Belley?= To: qemu-devel@nongnu.org Subject: [PATCH 08/13] configure: Add USB U2F key device Date: Wed, 12 Aug 2020 11:41:30 +0200 Message-Id: <20200812094135.20550-9-cesar.belley@lse.epita.fr> X-Mailer: git-send-email 2.28.0 In-Reply-To: <20200812094135.20550-1-cesar.belley@lse.epita.fr> References: <20200812094135.20550-1-cesar.belley@lse.epita.fr> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=163.5.55.20; envelope-from=srs0=nna4=bw=lse.epita.fr=cesar.belley@cri.epita.fr; helo=mail-2.srv.cri.epita.fr X-detected-operating-system: by eggs.gnu.org: First seen = 2020/08/12 05:42:10 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -16 X-Spam_score: -1.7 X-Spam_bar: - X-Spam_report: (-1.7 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: =?UTF-8?q?C=C3=A9sar=20Belley?= , kraxel@redhat.com Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: C=C3=A9sar Belley --- 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=3D"trace" spice=3D"" rbd=3D"" smartcard=3D"" +u2f=3D"" libusb=3D"" usb_redir=3D"" opengl=3D"" @@ -1390,6 +1391,10 @@ for opt do ;; --enable-smartcard) smartcard=3D"yes" ;; + --disable-u2f) u2f=3D"no" + ;; + --enable-u2f) u2f=3D"yes" + ;; --disable-libusb) libusb=3D"no" ;; --enable-libusb) libusb=3D"yes" @@ -1899,6 +1904,7 @@ disabled with --disable-FEATURE, default is enabled i= f 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" !=3D "no"; then fi fi =20 +# check for u2f support +if test "$u2f" !=3D "no"; then + if $pkg_config --atleast-version=3D0.0.0 u2f-emu; then + u2f_emu_cflags=3D$($pkg_config --cflags u2f-emu) + u2f_emu_libs=3D$($pkg_config --libs u2f-emu) + u2f=3D"yes" + else + if test "$u2f" =3D "yes"; then + feature_not_found "u2f" "Install u2f-emu" + fi + u2f=3D"no" + fi +fi + # check for libusb if test "$libusb" !=3D "no" ; then if $pkg_config --atleast-version=3D1.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" =3D "yes" ; then echo "SMARTCARD_LIBS=3D$libcacard_libs" >> $config_host_mak fi =20 +if test "$u2f" =3D "yes" ; then + echo "CONFIG_U2F=3Dy" >> $config_host_mak + echo "U2F_CFLAGS=3D$u2f_emu_cflags" >> $config_host_mak + echo "U2F_LIBS=3D$u2f_emu_libs" >> $config_host_mak +fi + if test "$libusb" =3D "yes" ; then echo "CONFIG_USB_LIBUSB=3Dy" >> $config_host_mak echo "LIBUSB_CFLAGS=3D$libusb_cflags" >> $config_host_mak --=20 2.28.0