提交 955727d2 编写于 作者: C Cortland Tölva 提交者: Laurent Vivier

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: NCortland Tölva <cst@tolva.net>
Reviewed-by: NLaurent Vivier <laurent@vivier.eu>
Message-Id: <20181008163521.17341-2-cst@tolva.net>
Signed-off-by: NLaurent Vivier <laurent@vivier.eu>
上级 1b749044
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册