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>
44 lines
1.1 KiB
Makefile
44 lines
1.1 KiB
Makefile
# SPDX-License-Identifier: BSD-3-Clause
|
|
# Copyright (C) 2015 Intel Corporation.
|
|
# All rights reserved.
|
|
#
|
|
|
|
SPDK_ROOT_DIR := $(abspath $(CURDIR)/..)
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.common.mk
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.lib_deps.mk
|
|
|
|
DIRS-y += bdev blob blobfs conf dma accel event json jsonrpc \
|
|
log lvol rpc sock thread trace util nvme vmd nvmf scsi \
|
|
ioat ut_mock iscsi notify init trace_parser
|
|
ifeq ($(OS),Linux)
|
|
DIRS-y += nbd ftl vfio_user
|
|
ifeq ($(CONFIG_UBLK),y)
|
|
DIRS-y += ublk
|
|
endif
|
|
endif
|
|
|
|
DIRS-$(CONFIG_OCF) += env_ocf
|
|
DIRS-$(CONFIG_IDXD) += idxd
|
|
DIRS-$(CONFIG_VHOST) += vhost
|
|
DIRS-$(CONFIG_VIRTIO) += virtio
|
|
DIRS-$(CONFIG_VBDEV_COMPRESS) += reduce
|
|
DIRS-$(CONFIG_RDMA) += rdma
|
|
DIRS-$(CONFIG_VFIO_USER) += vfu_tgt
|
|
|
|
ifeq ($(CONFIG_RDMA_PROV),mlx5_dv)
|
|
DIRS-y += mlx5
|
|
endif
|
|
# If CONFIG_ENV is pointing at a directory in lib, build it.
|
|
# Out-of-tree env implementations must be built separately by the user.
|
|
ENV_NAME := $(notdir $(CONFIG_ENV))
|
|
ifeq ($(abspath $(CONFIG_ENV)),$(SPDK_ROOT_DIR)/lib/$(ENV_NAME))
|
|
DIRS-y += $(ENV_NAME)
|
|
endif
|
|
|
|
.PHONY: all clean $(DIRS-y)
|
|
|
|
all: $(DIRS-y)
|
|
clean: $(DIRS-y)
|
|
|
|
include $(SPDK_ROOT_DIR)/mk/spdk.subdirs.mk
|