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:
parent
f0ab59a325
commit
4ace96533d
@ -35,7 +35,7 @@ SPDK_ROOT_DIR := $(abspath $(CURDIR)/..)
|
|||||||
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
||||||
|
|
||||||
DIRS-y += trace
|
DIRS-y += trace
|
||||||
DIRS-$(CONFIG_RDMA) += nvmf_tgt
|
DIRS-y += nvmf_tgt
|
||||||
ifeq ($(OS),Linux)
|
ifeq ($(OS),Linux)
|
||||||
DIRS-y += iscsi_tgt
|
DIRS-y += iscsi_tgt
|
||||||
endif
|
endif
|
||||||
|
@ -67,7 +67,10 @@ LIBS += $(BLOCKDEV_MODULES_LINKER_ARGS) \
|
|||||||
|
|
||||||
LIBS += $(SPDK_LIBS) $(PCIACCESS_LIB)
|
LIBS += $(SPDK_LIBS) $(PCIACCESS_LIB)
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_RDMA),y)
|
||||||
LIBS += -libverbs -lrdmacm
|
LIBS += -libverbs -lrdmacm
|
||||||
|
endif
|
||||||
|
|
||||||
LIBS += $(DPDK_LIB)
|
LIBS += $(DPDK_LIB)
|
||||||
|
|
||||||
all : $(APP)
|
all : $(APP)
|
||||||
|
Loading…
Reference in New Issue
Block a user