mk/spdk.nvmecli.mk: add some missing conditions.
We need to add options to include ocfenv, rte_vhost, and libiscsi for building with shared objects. Signed-off-by: Seth Howell <seth.howell@intel.com> Change-Id: I2ba144a6f0101cb84c5ae2d9595f4d58997a3a23 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/3000 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com>
This commit is contained in:
parent
013b6b5234
commit
36e140b89e
@ -37,7 +37,7 @@ SPDK_LIB_DIR ?= $(SPDK_ROOT_DIR)/build/lib
|
||||
include $(SPDK_ROOT_DIR)/mk/config.mk
|
||||
|
||||
DPDK_LIB_DIR ?= $(CONFIG_DPDK_DIR)/lib
|
||||
DPDK_LIB_LIST = -lrte_eal -lrte_mempool -lrte_ring -lrte_pci -lrte_bus_pci
|
||||
DPDK_LIB_LIST = -lrte_eal -lrte_mempool -lrte_ring -lrte_pci -lrte_bus_pci -lrte_mbuf
|
||||
|
||||
ifneq (, $(wildcard $(DPDK_LIB_DIR)/librte_kvargs.*))
|
||||
DPDK_LIB_LIST += -lrte_kvargs
|
||||
@ -53,6 +53,18 @@ ifeq ($(CONFIG_RDMA),y)
|
||||
NVMECLI_SPDK_LIBS += -lspdk_rdma
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_OCF),y)
|
||||
NVMECLI_SPDK_LIBS += -lspdk_ocfenv
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_VHOST),y)
|
||||
ifneq ($(CONFIG_VHOST_INTERNAL_LIB),y)
|
||||
DPDK_LIB_LIST += -lrte_vhost -lrte_net -lrte_cryptodev -lrte_hash
|
||||
else
|
||||
NVMECLI_SPDK_LIBS += -lrte_vhost
|
||||
endif
|
||||
endif
|
||||
|
||||
override CFLAGS += -I$(SPDK_ROOT_DIR)/include
|
||||
override LDFLAGS += \
|
||||
-Wl,--whole-archive \
|
||||
@ -86,3 +98,7 @@ ifeq ($(CONFIG_COVERAGE), y)
|
||||
override CFLAGS += -fprofile-arcs -ftest-coverage
|
||||
override LDFLAGS += -fprofile-arcs -ftest-coverage
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_ISCSI_INITIATOR),y)
|
||||
override LDFLAGS += -L/usr/lib64/iscsi -liscsi
|
||||
endif
|
||||
|
Loading…
Reference in New Issue
Block a user