CONFIG: rename CONFIG_NVMF to CONFIG_RDMA
The NVMf target is being refactored to split the RDMA transport-specific code into its own file. Once this is complete, we should be able to plug in other transports and build the NVMf target without any RDMA dependency if desired. To enable this, change the CONFIG option to RDMA; it still controls whether the whole NVMf target is built for now, but once the RDMA dependency is actually made optional, we will be able to build the generic NVMf target code without libibverbs installed. Change-Id: I8cd90a9aaa85dcefcc9b0f8f2e7b6af21958b2a8 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
parent
51701f0053
commit
3f80d55199
4
CONFIG
4
CONFIG
@ -69,6 +69,6 @@ CONFIG_FIO_PLUGIN?=n
|
||||
# which is required for building the SPDK FIO plugin.
|
||||
FIO_SOURCE_DIR?=/usr/src/fio
|
||||
|
||||
# Build NVMf (NVMe over Fabrics) target.
|
||||
# Enable RDMA support for the NVMf target.
|
||||
# Requires ibverbs development libraries.
|
||||
CONFIG_NVMF?=n
|
||||
CONFIG_RDMA?=n
|
||||
|
@ -35,7 +35,7 @@ SPDK_ROOT_DIR := $(abspath $(CURDIR)/..)
|
||||
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
||||
|
||||
DIRS-y += trace
|
||||
DIRS-$(CONFIG_NVMF) += nvmf_tgt
|
||||
DIRS-$(CONFIG_RDMA) += nvmf_tgt
|
||||
|
||||
.PHONY: all clean $(DIRS-y)
|
||||
|
||||
|
@ -50,10 +50,10 @@ apt-get install libibverbs-dev librdmacm-dev
|
||||
\endverbatim
|
||||
|
||||
Then build SPDK with the NVMf target enabled, either by editing CONFIG
|
||||
to enable CONFIG_NVMF or enabling it on the `make` command line:
|
||||
to enable CONFIG_RDMA or enabling it on the `make` command line:
|
||||
|
||||
\verbatim
|
||||
make CONFIG_NVMF=y <other config parameters>
|
||||
make CONFIG_RDMA=y <other config parameters>
|
||||
\endverbatim
|
||||
|
||||
\section nvmf_config Configuring NVMf
|
||||
|
@ -34,9 +34,7 @@
|
||||
SPDK_ROOT_DIR := $(abspath $(CURDIR)/..)
|
||||
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
||||
|
||||
DIRS-y += conf cunit event json jsonrpc log memory rpc trace util nvme ioat
|
||||
|
||||
DIRS-$(CONFIG_NVMF) += nvmf
|
||||
DIRS-y += conf cunit event json jsonrpc log memory rpc trace util nvme nvmf ioat
|
||||
|
||||
.PHONY: all clean $(DIRS-y)
|
||||
|
||||
|
@ -35,8 +35,10 @@ SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..)
|
||||
|
||||
CFLAGS += $(DPDK_INC)
|
||||
LIBNAME = nvmf
|
||||
C_SRCS = rdma.c port.c conn.c controller.c \
|
||||
C_SRCS = port.c conn.c controller.c \
|
||||
host.c subsystem.c conf.c \
|
||||
nvmf.c request.c session.c
|
||||
|
||||
C_SRCS-$(CONFIG_RDMA) += rdma.c
|
||||
|
||||
include $(SPDK_ROOT_DIR)/mk/spdk.lib.mk
|
||||
|
@ -111,6 +111,9 @@ SYS_LIBS += -lrt
|
||||
|
||||
MAKEFLAGS += --no-print-directory
|
||||
|
||||
C_SRCS += $(C_SRCS-y)
|
||||
CXX_SRCS += $(CXX_SRCS-y)
|
||||
|
||||
OBJS = $(C_SRCS:.c=.o) $(CXX_SRCS:.cpp=.o)
|
||||
|
||||
DEPFLAGS = -MMD -MP -MF $*.d.tmp
|
||||
|
@ -24,7 +24,7 @@ case `uname` in
|
||||
esac
|
||||
|
||||
if [ -f /usr/include/infiniband/verbs.h ]; then
|
||||
MAKECONFIG="$MAKECONFIG CONFIG_NVMF=y"
|
||||
MAKECONFIG="$MAKECONFIG CONFIG_RDMA=y"
|
||||
fi
|
||||
|
||||
if [ -z "$output_dir" ]; then
|
||||
|
@ -35,7 +35,7 @@ SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..)
|
||||
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
||||
|
||||
DIRS-y = event log json jsonrpc nvme memory ioat
|
||||
DIRS-$(CONFIG_NVMF) += nvmf
|
||||
DIRS-$(CONFIG_RDMA) += nvmf
|
||||
|
||||
.PHONY: all clean $(DIRS-y)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user