configure: add --with/without-vhost options
This option was configurable on the command line and in CONFIG, but it wasn't mapped to a configure flag. Change-Id: Ib10619f9a92d40041e2687ee201574e1af838caf Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-on: https://review.gerrithub.io/403751 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
parent
e793fad5e9
commit
35260f2b40
11
configure
vendored
11
configure
vendored
@ -35,6 +35,8 @@ function usage()
|
||||
echo " example: /usr/share/dpdk/x86_64-default-linuxapp-gcc"
|
||||
echo " fio Required to build fio_plugin."
|
||||
echo " example: /usr/src/fio"
|
||||
echo " vhost Required to build vhost target."
|
||||
echo " No path required."
|
||||
echo " virtio Required to build vhost initiator (Virtio) bdev module."
|
||||
echo " No path required."
|
||||
echo " nvml Required to build persistent memory bdev."
|
||||
@ -138,6 +140,12 @@ for i in "$@"; do
|
||||
--without-dpdk)
|
||||
CONFIG_DPDK_DIR=
|
||||
;;
|
||||
--with-vhost)
|
||||
CONFIG_VHOST=y
|
||||
;;
|
||||
--without-vhost)
|
||||
CONFIG_VHOST=n
|
||||
;;
|
||||
--with-virtio)
|
||||
CONFIG_VIRTIO=y
|
||||
;;
|
||||
@ -271,6 +279,9 @@ fi
|
||||
if [ -n "$CONFIG_DPDK_DIR" ]; then
|
||||
echo "CONFIG_DPDK_DIR?=$CONFIG_DPDK_DIR" >> CONFIG.local
|
||||
fi
|
||||
if [ -n "$CONFIG_VHOST" ]; then
|
||||
echo "CONFIG_VHOST?=$CONFIG_VHOST" >> CONFIG.local
|
||||
fi
|
||||
if [ -n "$CONFIG_VIRTIO" ]; then
|
||||
echo "CONFIG_VIRTIO?=$CONFIG_VIRTIO" >> CONFIG.local
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user