From patchwork Mon Oct 8 16:35:19 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Cortland_Setlow_T=C3=B6lva?= X-Patchwork-Id: 980666 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=tolva.net Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=mg-relay.tolva.net header.i=@mg-relay.tolva.net header.b="oSdNmxWh"; dkim-atps=neutral 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 42TQzk4F5Dz9sBk for ; Tue, 9 Oct 2018 03:38:56 +1100 (AEDT) Received: from localhost ([::1]:47309 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9YYV-0007GZ-Vj for incoming@patchwork.ozlabs.org; Mon, 08 Oct 2018 12:38:52 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52302) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g9YVQ-0005OH-3M for qemu-devel@nongnu.org; Mon, 08 Oct 2018 12:35:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g9YVP-0002fS-4t for qemu-devel@nongnu.org; Mon, 08 Oct 2018 12:35:40 -0400 Received: from mail2.static.mailgun.info ([104.130.122.2]:57390) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g9YVN-0002ZB-2O for qemu-devel@nongnu.org; Mon, 08 Oct 2018 12:35:39 -0400 DKIM-Signature: a=rsa-sha256; v=1; c=relaxed/relaxed; d=mg-relay.tolva.net; q=dns/txt; s=pic; t=1539016527; h=Content-Transfer-Encoding: Content-Type: MIME-Version: References: In-Reply-To: Message-Id: Date: Subject: Cc: To: From: Sender; bh=+SG9kwLkC51TnvLHRJCLajzIsyFMUAoxjGuTjJMkam0=; b=oSdNmxWhQ7rjOqWU5E53ROuHd0P+BQjVkjHSYRKUC8UWhHnxTAHW9gO94h/MvOusSy2I/kK2 eiSM9HwCQ8tV7EzqwsUgsja46ToFUrrF6jGZD79gwwznNnMohkFsN/nlOCh0i3AaTQBo6/PR eFWW5DS45vy1FDgBEvtPopBI3xg= X-Mailgun-Sending-Ip: 104.130.122.2 X-Mailgun-Sid: WyI5MDdkOCIsICJxZW11LWRldmVsQG5vbmdudS5vcmciLCAiN2Q3MzI5Il0= Received: from cerberus.teal.tolva.net (c-73-252-167-134.hsd1.ca.comcast.net [73.252.167.134]) by mxa.mailgun.org with ESMTP id 5bbb874f.7f07d8130230-smtp-out-n02; Mon, 08 Oct 2018 16:35:27 -0000 (UTC) From: =?utf-8?q?Cortland_T=C3=B6lva?= To: qemu-devel@nongnu.org Date: Mon, 8 Oct 2018 09:35:19 -0700 Message-Id: <20181008163521.17341-2-cst@tolva.net> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181008163521.17341-1-cst@tolva.net> References: <20181008163521.17341-1-cst@tolva.net> MIME-Version: 1.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 104.130.122.2 Subject: [Qemu-devel] [PATCH v3 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: Laurent Vivier , =?utf-8?q?Cortland_T=C3=B6lva?= Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" 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: <20180925071228.32040-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 f89d293585..19d66bbdeb 100755 --- a/configure +++ b/configure @@ -4236,7 +4236,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 @@ -6350,6 +6357,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