ublk backend could support ublk driver with kernel. Specify configuration parameter to start it up. Signed-off-by: Yifan Bian <yifan.bian@intel.com> Co-authored-by: Xiaodong Liu <xiaodong.liu@intel.com> Change-Id: I55e7d757e04315b25e9bfab5fdcbb6621be3e29e Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/15680 Reviewed-by: Xiaodong Liu <xiaodong.liu@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
42 lines
812 B
Makefile
42 lines
812 B
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (C) 2018 Intel Corporation.
|
|
# All rights reserved.
|
|
#
|
|
|
|
SPDK_ROOT_DIR := $(abspath $(CURDIR)/../..)
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.modules.mk
|
|
|
|
APP = spdk_tgt
|
|
|
|
C_SRCS := spdk_tgt.c
|
|
|
|
SPDK_LIB_LIST = $(ALL_MODULES_LIST)
|
|
|
|
SPDK_LIB_LIST += event event_iscsi event_nvmf
|
|
|
|
ifeq ($(SPDK_ROOT_DIR)/lib/env_dpdk,$(CONFIG_ENV))
|
|
SPDK_LIB_LIST += env_dpdk_rpc
|
|
endif
|
|
|
|
ifeq ($(OS),Linux)
|
|
SPDK_LIB_LIST += event_nbd
|
|
ifeq ($(CONFIG_UBLK),y)
|
|
SPDK_LIB_LIST += event_ublk
|
|
endif
|
|
ifeq ($(CONFIG_VHOST),y)
|
|
SPDK_LIB_LIST += event_vhost_blk event_vhost_scsi
|
|
endif
|
|
ifeq ($(CONFIG_VFIO_USER),y)
|
|
SPDK_LIB_LIST += event_vfu_tgt
|
|
endif
|
|
endif
|
|
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.app.mk
|
|
|
|
install: $(APP)
|
|
$(INSTALL_APP)
|
|
|
|
uninstall:
|
|
$(UNINSTALL_APP)
|