nvmf_tgt: build even if RDMA is disabled

Build the now-generic nvmf_tgt app regardless of whether the RDMA
libraries are available.

The nvmf_tgt app Makefile still has to add the RDMA libraries to the
linker command, but otherwise it does not need to know anything about
the avilable transports.

Change-Id: Ibeeac5ed998be1eb12a673a1340893dbb53110b7
Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
This commit is contained in:
Daniel Verkamp 2016-08-18 16:06:00 -07:00 committed by Ben Walker
parent f0ab59a325
commit 4ace96533d
2 changed files with 4 additions and 1 deletions

View File

@ -35,7 +35,7 @@ SPDK_ROOT_DIR := $(abspath $(CURDIR)/..)
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
DIRS-y += trace
DIRS-$(CONFIG_RDMA) += nvmf_tgt
DIRS-y += nvmf_tgt
ifeq ($(OS),Linux)
DIRS-y += iscsi_tgt
endif

View File

@ -67,7 +67,10 @@ LIBS += $(BLOCKDEV_MODULES_LINKER_ARGS) \
LIBS += $(SPDK_LIBS) $(PCIACCESS_LIB)
ifeq ($(CONFIG_RDMA),y)
LIBS += -libverbs -lrdmacm
endif
LIBS += $(DPDK_LIB)
all : $(APP)