From patchwork Fri Oct 19 12:19:08 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Laurent Vivier X-Patchwork-Id: 986721 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 42c4mr63mfz9s5c for ; Fri, 19 Oct 2018 23:22:36 +1100 (AEDT) Received: from localhost ([::1]:49857 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDTnW-0000oW-6c for incoming@patchwork.ozlabs.org; Fri, 19 Oct 2018 08:22:34 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35601) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gDTkb-0007PC-F9 for qemu-devel@nongnu.org; Fri, 19 Oct 2018 08:19:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gDTkW-00006U-F2 for qemu-devel@nongnu.org; Fri, 19 Oct 2018 08:19:32 -0400 Received: from mout.kundenserver.de ([212.227.126.133]:50555) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gDTkV-0008C1-QR for qemu-devel@nongnu.org; Fri, 19 Oct 2018 08:19:28 -0400 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MderZ-1fdroR1RTN-00ZchP; Fri, 19 Oct 2018 14:19:14 +0200 Received: from localhost.localdomain ([78.238.229.36]) by mrelayeu.kundenserver.de (mreue011 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MderZ-1fdroR1RTN-00ZchP; Fri, 19 Oct 2018 14:19:14 +0200 From: Laurent Vivier To: qemu-devel@nongnu.org Date: Fri, 19 Oct 2018 14:19:08 +0200 Message-Id: <20181019121910.29726-2-laurent@vivier.eu> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181019121910.29726-1-laurent@vivier.eu> References: <20181019121910.29726-1-laurent@vivier.eu> MIME-Version: 1.0 X-Provags-ID: V03:K1:XbNgQAEubfG3A08uSd+6B+ZUN2iehVZiIzyD6R3Fgrg5X+2/3PY xmeumlAbjoJfRqf0+GsfudDaQRmZ6x76cl2HjdaJ4wsOmhnbF3WnPvDyftriSekhSg7HjXG lmQ36vzawWQ5XBLcLLtuXAIt0L+OrvdizK5sVImIVzfmJebEDjhLlnUXSPezxx1IUxHJhdC IdrZZ5CZfvThOpCu2tDKQ== X-UI-Out-Filterresults: notjunk:1; V01:K0:AGRh480Obfk=:+QUBeyx7gOyV0uVCCkB5OT Q7S6zqLuoz8ERO+SNudtX08pfyKO5IMHkQonkba/BBHGpfmBPzzcC/neWHeCvCzZ7LUqnxb4a utIReIv/DYePbenvnjW1uxO2Z+A8OZ8FbIVqD7vsyU2gdD7N0+4ZSGZxe0VtxCgEh+aneM+tJ lOdQqTAOZqKjmTw9dSY9mebCsbBV0WmWPBFYnXR6MkGHTIriTdchSaafY05Xmi57vqnJU9J8u eYl7cuLODKIxrtIn+8+qhS6S6tvY/IEl6VSt/9iN3LGYxPKz4rjsn5ZEDj2iVjZRfiZXzV8li hQf+hs4ThKp8LxapDmQ/614WhuAJyNiZGMYjAi1u1zO3u/394bRB50imVsnlAOmO8NzGe+OwT hOqSSwh/YsRK5280A+p2/qgxh0n5Op11u7oWAZ0uo7mMZv8OytUEgOvIJL9PyfhRaPPO/Amqn sdgZ806VLyxMcseYL/C5oZIVVTC/Q2Rqmtw80rBfIt5pm2oRd9l3mPSGsAwEsqC2bbuxiARuq R68Zsqiegkok8y6KaTOpaaOB+24GW47BuanV8EdZbobRU2jvoYslwk4lP8a4vqogJkgBK8Fv9 AfA/sdaVxCHH19/EgZQOGDt04M4mn++1NzyC6lCNT5BrZdn4qBTfy6XdMAv3wcMMNAz9tCyEP ubxp01Cd3CezPbiw53VF/5IPJg/sB8wagZsdXME+OQSvtp2XdJXAWa4Hq4WIV1DrmV8TqJkku ug5/RAjtewp6UBua X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.126.133 Subject: [Qemu-devel] [PULL 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