CONFIG: add CONFIG_VHOST option (on by default)

Change-Id: Ic493e5d4ebbd45370ddf0086cfe9e924d444c72f
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2017-03-06 13:34:45 -07:00 committed by Jim Harris
parent b58a5d73ef
commit ba74eaf49f
3 changed files with 7 additions and 2 deletions

3
CONFIG
View File

@ -71,3 +71,6 @@ CONFIG_RDMA?=n
# Build Ceph RBD support in bdev modules # Build Ceph RBD support in bdev modules
# Requires librbd development libraries # Requires librbd development libraries
CONFIG_RBD?=n CONFIG_RBD?=n
# Build vhost library.
CONFIG_VHOST?=y

View File

@ -38,7 +38,8 @@ DIRS-y += trace
DIRS-y += nvmf_tgt DIRS-y += nvmf_tgt
DIRS-y += iscsi_top DIRS-y += iscsi_top
ifeq ($(OS),Linux) ifeq ($(OS),Linux)
DIRS-y += iscsi_tgt vhost DIRS-y += iscsi_tgt
DIRS-$(CONFIG_VHOST) += vhost
endif endif
.PHONY: all clean $(DIRS-y) .PHONY: all clean $(DIRS-y)

View File

@ -37,7 +37,8 @@ include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
DIRS-y += bdev conf copy cunit event json jsonrpc \ DIRS-y += bdev conf copy cunit event json jsonrpc \
log env_dpdk net rpc trace util nvme nvmf scsi ioat log env_dpdk net rpc trace util nvme nvmf scsi ioat
ifeq ($(OS),Linux) ifeq ($(OS),Linux)
DIRS-y += iscsi vhost DIRS-y += iscsi
DIRS-$(CONFIG_VHOST) += vhost
endif endif