From nobody Wed Feb 11 05:28:50 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1539951602331778.4222620002258; Fri, 19 Oct 2018 05:20:02 -0700 (PDT) Received: from localhost ([::1]:49838 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDTkz-0007OB-2V for importer@patchew.org; Fri, 19 Oct 2018 08:19:57 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34489) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDTht-0005DL-MI for qemu-devel@nongnu.org; Fri, 19 Oct 2018 08:16:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDThp-0002Gc-Dh for qemu-devel@nongnu.org; Fri, 19 Oct 2018 08:16:45 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:59315) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDThp-0002FE-2L for qemu-devel@nongnu.org; Fri, 19 Oct 2018 08:16:41 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M5fdC-1gGEaK0X2Q-007Akq; Fri, 19 Oct 2018 14:16:30 +0200 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1M5fdC-1gGEaK0X2Q-007Akq; Fri, 19 Oct 2018 14:16:30 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Fri, 19 Oct 2018 14:16:21 +0200 Message-Id: <20181019121623.29148-2-laurent@vivier.eu> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181019121623.29148-1-laurent@vivier.eu> References: <20181019121623.29148-1-laurent@vivier.eu> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:G9OVcuyEYecFaMHAt7bLscKgiiOk4e8UNcT3ZcRtixcYuko+Ejo +xdJi/xpj98tC6LJl/BWFPgTUdLOGo15HbaXBXs1YFdytL0iH9gX496xEIR3uFCpx4MJM+R 1ng06XeqyAAaIG3oI8X2d+d2Dvb9fAtNpTrOz0kAVhPKPOVJEACj+j6hgAPqYCm1ZCpJJ97 yw7hLcFPbjVOm2nYhw2kQ== X-UI-Out-Filterresults: notjunk:1;V01:K0:Xz1kGVWmVec=:5W8hI/9k0kHcMTCdgc8zJX wVbMxaoir+AnamSmv96ATpJTzu5bqXYNjxlLro7ZzzrHkzmJ/UMy+PbaoC6zCFqukvMUEH76B GoUeCOGM2Itier+M83xUJpqWp5WVVv8l+wOTN+AL8MzH4kZpBw/GukJFdDecq4ChVlQE7kzyE kHt6T4Gr0MRxCqqgzTkFW1IuWp9c7FyOaffH/Zui/LABGrtvJyPYJcDnM0DyATyoXkn08Dz0L +6vOsXfAlcFUS/m9Pfi0fvMvLH1SFuxLoksU6rkueBIPyhnz79uUSv69htPrTJzLpRecHe9gn 9Ud2HepxiDRF7/1Q0ReIMEz0OA+0YrMIG2nb8bYK8m685pqgW6/ktibqHgTVEu1mb2QTKUzS4 Y+pT+b+FVXHoUgYvwkEXV5goKY/9DYaR7C9vzJIYHzs6PCuFXfriN/OGmGWL6qYTrNUszkWYM qB8xuoIJQEoas6nMIBJYZzRYtn1nkWbTdZgUy0IsvIMGvO04i9gyUCMxEyoi7Hfie8HLkmwxf nYUURZYc2ljEytUcg7awd6xBo7tg+JVSvj2ul5Xaq5aV+sfYMbhqHCG3B7w39HJlKm70k0SG2 9Iq2zlad1BokOR/HISpTph61szh0Jonkdy6VT7WDaH5hylnHmHvWqfKXxt2kOFG2Iv4slehdZ luOnAZMa3nZhJs6H9vqr0G9cmd6qIBhSYN/mt8SZGVEtS5S3xG/3lKPot2Q9AEJ3xqmFO6/zt XAE8iIpSyz01OIjd X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.134 Subject: [Qemu-devel] [2 1/3] linux-user: Check for Linux USBFS in configure X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Riku Voipio , Laurent Vivier , =?UTF-8?q?Cortland=20T=C3=B6lva?= Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 From: Cortland T=C3=B6lva In preparation for adding user mode emulation support for the Linux usbfs interface, check for its kernel header. Signed-off-by: Cortland T=C3=B6lva Reviewed-by: Laurent Vivier Message-Id: <20181008163521.17341-2-cst@tolva.net> Signed-off-by: Laurent Vivier --- configure | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 9138af37f8..37277fd591 100755 --- a/configure +++ b/configure @@ -4202,7 +4202,14 @@ if compile_prog "" "" ; then memfd=3Dyes fi =20 - +# check for usbfs +have_usbfs=3Dno +if test "$linux_user" =3D "yes"; then + if check_include linux/usbdevice_fs.h; then + have_usbfs=3Dyes + fi + have_usbfs=3Dyes +fi =20 # check for fallocate fallocate=3Dno @@ -6310,6 +6317,9 @@ fi if test "$memfd" =3D "yes" ; then echo "CONFIG_MEMFD=3Dy" >> $config_host_mak fi +if test "$have_usbfs" =3D "yes" ; then + echo "CONFIG_USBFS=3Dy" >> $config_host_mak +fi if test "$fallocate" =3D "yes" ; then echo "CONFIG_FALLOCATE=3Dy" >> $config_host_mak fi --=20 2.17.2