qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Cortland Tölva" <cst@tolva.net>
To: qemu-devel@nongnu.org
Cc: "Cortland Tölva" <cst@tolva.net>, "Laurent Vivier" <laurent@vivier.eu>
Subject: [Qemu-devel] [PATCH v3 1/3] linux-user: Check for Linux USBFS in configure
Date: Mon,  8 Oct 2018 09:35:19 -0700	[thread overview]
Message-ID: <20181008163521.17341-2-cst@tolva.net> (raw)
In-Reply-To: <20181008163521.17341-1-cst@tolva.net>

In preparation for adding user mode emulation support for the
Linux usbfs interface, check for its kernel header.

Signed-off-by: Cortland Tölva <cst@tolva.net>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-Id: <20180925071228.32040-2-cst@tolva.net>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
---
 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
-- 
2.11.0

  reply	other threads:[~2018-10-08 16:35 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-08 16:35 [Qemu-devel] [PATCH v3 0/3] Linux usermode emulation user mode USB driver support Cortland Tölva
2018-10-08 16:35 ` Cortland Tölva [this message]
2018-10-08 16:35 ` [Qemu-devel] [PATCH v3 2/3] linux-user: Define ordinary usbfs ioctls Cortland Tölva
2018-10-12 19:07   ` Laurent Vivier
2018-10-08 16:35 ` [Qemu-devel] [PATCH v3 3/3] linux-user: Implement special " Cortland Tölva
2018-10-18 16:42   ` Cortland Setlow Tölva
2018-10-18 18:15     ` Laurent Vivier
2018-10-18 18:48   ` Laurent Vivier
2018-10-19  2:16     ` Cortland Setlow Tölva
2018-10-19  7:13       ` Laurent Vivier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20181008163521.17341-2-cst@tolva.net \
    --to=cst@tolva.net \
    --cc=laurent@vivier.eu \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).