2016-11-22 14:58:30 +00:00
|
|
|
#
|
|
|
|
# BSD LICENSE
|
|
|
|
#
|
|
|
|
# Copyright (c) Intel Corporation.
|
|
|
|
# All rights reserved.
|
2021-06-15 13:25:07 +00:00
|
|
|
# Copyright (c) 2021 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
|
2016-11-22 14:58:30 +00:00
|
|
|
#
|
|
|
|
# Redistribution and use in source and binary forms, with or without
|
|
|
|
# modification, are permitted provided that the following conditions
|
|
|
|
# are met:
|
|
|
|
#
|
|
|
|
# * Redistributions of source code must retain the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer.
|
|
|
|
# * Redistributions in binary form must reproduce the above copyright
|
|
|
|
# notice, this list of conditions and the following disclaimer in
|
|
|
|
# the documentation and/or other materials provided with the
|
|
|
|
# distribution.
|
|
|
|
# * Neither the name of Intel Corporation nor the names of its
|
|
|
|
# contributors may be used to endorse or promote products derived
|
|
|
|
# from this software without specific prior written permission.
|
|
|
|
#
|
|
|
|
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
|
|
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
|
|
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
|
|
|
|
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
|
|
|
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
|
|
|
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
|
|
|
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
|
|
|
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
|
|
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
|
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
|
|
#
|
|
|
|
|
2019-07-01 04:04:21 +00:00
|
|
|
BLOCKDEV_MODULES_LIST = bdev_malloc bdev_null bdev_nvme bdev_passthru bdev_lvol
|
|
|
|
BLOCKDEV_MODULES_LIST += bdev_raid bdev_error bdev_gpt bdev_split bdev_delay
|
2019-08-19 09:45:18 +00:00
|
|
|
BLOCKDEV_MODULES_LIST += bdev_zone_block
|
2020-10-09 20:40:26 +00:00
|
|
|
BLOCKDEV_MODULES_LIST += blobfs blobfs_bdev blob_bdev blob lvol vmd nvme
|
2016-07-20 18:16:23 +00:00
|
|
|
|
2020-12-30 13:53:35 +00:00
|
|
|
# Some bdev modules don't have pollers, so they can directly run in interrupt mode
|
|
|
|
INTR_BLOCKDEV_MODULES_LIST = bdev_malloc bdev_passthru bdev_error bdev_gpt bdev_split bdev_raid
|
|
|
|
# Logical volume, blobstore and blobfs can directly run in both interrupt mode and poll mode.
|
|
|
|
INTR_BLOCKDEV_MODULES_LIST += bdev_lvol blobfs blobfs_bdev blob_bdev blob lvol
|
|
|
|
|
2020-08-19 15:35:38 +00:00
|
|
|
ifeq ($(CONFIG_VFIO_USER),y)
|
|
|
|
BLOCKDEV_MODULES_LIST += vfio_user
|
|
|
|
endif
|
|
|
|
|
2018-03-07 23:44:06 +00:00
|
|
|
ifeq ($(CONFIG_CRYPTO),y)
|
2018-10-12 22:45:57 +00:00
|
|
|
BLOCKDEV_MODULES_LIST += bdev_crypto
|
2018-03-07 23:44:06 +00:00
|
|
|
endif
|
|
|
|
|
2018-09-20 16:54:49 +00:00
|
|
|
ifeq ($(CONFIG_OCF),y)
|
|
|
|
BLOCKDEV_MODULES_LIST += bdev_ocf
|
|
|
|
BLOCKDEV_MODULES_LIST += ocfenv
|
|
|
|
endif
|
|
|
|
|
2018-12-01 15:09:46 +00:00
|
|
|
ifeq ($(CONFIG_REDUCE),y)
|
2018-12-01 22:04:21 +00:00
|
|
|
BLOCKDEV_MODULES_LIST += bdev_compress reduce
|
2020-09-29 18:50:05 +00:00
|
|
|
BLOCKDEV_MODULES_PRIVATE_LIBS += -lpmem
|
2021-06-15 13:25:07 +00:00
|
|
|
ifeq ($(CONFIG_REDUCE_MLX5),y)
|
|
|
|
BLOCKDEV_MODULES_PRIVATE_LIBS += -lmlx5
|
|
|
|
endif
|
2018-12-01 15:09:46 +00:00
|
|
|
endif
|
|
|
|
|
2016-11-18 16:57:53 +00:00
|
|
|
ifeq ($(CONFIG_RDMA),y)
|
2020-03-14 08:32:18 +00:00
|
|
|
BLOCKDEV_MODULES_LIST += rdma
|
2020-09-29 18:50:05 +00:00
|
|
|
BLOCKDEV_MODULES_PRIVATE_LIBS += -libverbs -lrdmacm
|
2020-03-14 12:08:29 +00:00
|
|
|
ifeq ($(CONFIG_RDMA_PROV),mlx5_dv)
|
2020-09-29 18:50:05 +00:00
|
|
|
BLOCKDEV_MODULES_PRIVATE_LIBS += -lmlx5
|
2020-03-14 12:08:29 +00:00
|
|
|
endif
|
2016-11-18 16:57:53 +00:00
|
|
|
endif
|
2016-07-20 18:16:23 +00:00
|
|
|
|
2016-08-03 17:36:14 +00:00
|
|
|
ifeq ($(OS),Linux)
|
2020-01-08 15:30:35 +00:00
|
|
|
BLOCKDEV_MODULES_LIST += bdev_ftl ftl
|
2018-07-19 21:36:11 +00:00
|
|
|
BLOCKDEV_MODULES_LIST += bdev_aio
|
2020-09-29 18:50:05 +00:00
|
|
|
BLOCKDEV_MODULES_PRIVATE_LIBS += -laio
|
2020-12-30 13:53:35 +00:00
|
|
|
INTR_BLOCKDEV_MODULES_LIST += bdev_aio
|
2018-07-19 21:36:11 +00:00
|
|
|
ifeq ($(CONFIG_VIRTIO),y)
|
|
|
|
BLOCKDEV_MODULES_LIST += bdev_virtio virtio
|
|
|
|
endif
|
2017-12-04 17:07:04 +00:00
|
|
|
ifeq ($(CONFIG_ISCSI_INITIATOR),y)
|
|
|
|
BLOCKDEV_MODULES_LIST += bdev_iscsi
|
|
|
|
# Fedora installs libiscsi to /usr/lib64/iscsi for some reason.
|
2020-09-29 18:50:05 +00:00
|
|
|
BLOCKDEV_MODULES_PRIVATE_LIBS += -L/usr/lib64/iscsi -liscsi
|
2017-12-04 17:07:04 +00:00
|
|
|
endif
|
2016-08-03 17:36:14 +00:00
|
|
|
endif
|
|
|
|
|
2019-02-19 17:06:19 +00:00
|
|
|
ifeq ($(CONFIG_URING),y)
|
|
|
|
BLOCKDEV_MODULES_LIST += bdev_uring
|
2020-09-29 18:50:05 +00:00
|
|
|
BLOCKDEV_MODULES_PRIVATE_LIBS += -luring
|
2019-02-19 17:06:19 +00:00
|
|
|
ifneq ($(strip $(CONFIG_URING_PATH)),)
|
|
|
|
CFLAGS += -I$(CONFIG_URING_PATH)
|
2020-09-29 18:50:05 +00:00
|
|
|
BLOCKDEV_MODULES_PRIVATE_LIBS += -L$(CONFIG_URING_PATH)
|
2019-02-19 17:06:19 +00:00
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2016-09-20 04:12:45 +00:00
|
|
|
ifeq ($(CONFIG_RBD),y)
|
2016-11-18 16:57:53 +00:00
|
|
|
BLOCKDEV_MODULES_LIST += bdev_rbd
|
2020-09-29 18:50:05 +00:00
|
|
|
BLOCKDEV_MODULES_PRIVATE_LIBS += -lrados -lrbd
|
2016-09-20 04:12:45 +00:00
|
|
|
endif
|
|
|
|
|
2018-04-03 23:07:39 +00:00
|
|
|
ifeq ($(CONFIG_PMDK),y)
|
2017-09-29 08:49:51 +00:00
|
|
|
BLOCKDEV_MODULES_LIST += bdev_pmem
|
2020-09-29 18:50:05 +00:00
|
|
|
BLOCKDEV_MODULES_PRIVATE_LIBS += -lpmemblk -lpmem
|
2017-09-29 08:49:51 +00:00
|
|
|
endif
|
|
|
|
|
2018-11-20 16:10:20 +00:00
|
|
|
SOCK_MODULES_LIST = sock_posix
|
2018-03-14 12:54:30 +00:00
|
|
|
|
2019-10-14 23:58:51 +00:00
|
|
|
ifeq ($(OS), Linux)
|
|
|
|
ifeq ($(CONFIG_URING),y)
|
|
|
|
SOCK_MODULES_LIST += sock_uring
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2020-02-05 17:10:05 +00:00
|
|
|
ACCEL_MODULES_LIST = accel_ioat ioat
|
2020-04-07 16:38:58 +00:00
|
|
|
ifeq ($(CONFIG_IDXD),y)
|
|
|
|
ACCEL_MODULES_LIST += accel_idxd idxd
|
|
|
|
endif
|
2016-07-20 18:16:23 +00:00
|
|
|
|
2021-08-06 09:17:16 +00:00
|
|
|
SCHEDULER_MODULES_LIST = scheduler_dynamic
|
|
|
|
ifeq ($(SPDK_ROOT_DIR)/lib/env_dpdk,$(CONFIG_ENV))
|
|
|
|
ifeq ($(OS),Linux)
|
|
|
|
SCHEDULER_MODULES_LIST += env_dpdk scheduler_dpdk_governor scheduler_gscheduler
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2020-01-28 21:23:43 +00:00
|
|
|
EVENT_BDEV_SUBSYSTEM = event_bdev event_accel event_vmd event_sock
|
2020-01-31 15:49:37 +00:00
|
|
|
|
2021-08-06 09:17:16 +00:00
|
|
|
ALL_MODULES_LIST = $(BLOCKDEV_MODULES_LIST) $(ACCEL_MODULES_LIST) $(SCHEDULER_MODULES_LIST) $(SOCK_MODULES_LIST)
|
2020-09-29 18:50:05 +00:00
|
|
|
SYS_LIBS += $(BLOCKDEV_MODULES_PRIVATE_LIBS)
|