From patchwork Fri Oct 19 12:16:21 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 986716 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=nongnu.org (client-ip=2001:4830:134:3::11; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=vivier.eu Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 42c4hw1czWz9sDJ for ; Fri, 19 Oct 2018 23:19:10 +1100 (AEDT) Received: from localhost ([::1]:49833 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDTkA-0006pe-VK for incoming@patchwork.ozlabs.org; Fri, 19 Oct 2018 08:19:06 -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 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_T=C3=B6lva?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" From: Cortland Tölva In preparation for adding user mode emulation support for the Linux usbfs interface, check for its kernel header. Signed-off-by: Cortland Tölva 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=yes fi - +# check for usbfs +have_usbfs=no +if test "$linux_user" = "yes"; then + if check_include linux/usbdevice_fs.h; then + have_usbfs=yes + fi + have_usbfs=yes +fi # check for fallocate fallocate=no @@ -6310,6 +6317,9 @@ fi if test "$memfd" = "yes" ; then echo "CONFIG_MEMFD=y" >> $config_host_mak fi +if test "$have_usbfs" = "yes" ; then + echo "CONFIG_USBFS=y" >> $config_host_mak +fi if test "$fallocate" = "yes" ; then echo "CONFIG_FALLOCATE=y" >> $config_host_mak fi