Commit 4ace9653 authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Ben Walker
Browse files

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: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent f0ab59a3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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
+3 −0
Original line number Diff line number Diff line
@@ -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)