diff options
| author | Cortland Tölva | 2018-10-08 18:35:19 +0200 |
|---|---|---|
| committer | Laurent Vivier | 2018-10-19 14:03:53 +0200 |
| commit | 955727d29d9dcede8207d675238942476a7f5b22 (patch) | |
| tree | c072481b45991b05775ce115e2468decd7830b98 | |
| parent | Merge remote-tracking branch 'remotes/vivier2/tags/linux-user-for-3.1-pull-re... (diff) | |
| download | qemu-955727d29d9dcede8207d675238942476a7f5b22.tar.gz qemu-955727d29d9dcede8207d675238942476a7f5b22.tar.xz qemu-955727d29d9dcede8207d675238942476a7f5b22.zip | |
linux-user: Check for Linux USBFS in configure
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: <20181008163521.17341-2-cst@tolva.net>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
| -rwxr-xr-x | configure | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -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 |
