2022-06-03 19:15:11 +00:00
|
|
|
# SPDX-License-Identifier: BSD-3-Clause
|
2022-11-01 20:26:26 +00:00
|
|
|
# Copyright (C) 2016 Intel Corporation.
|
2022-10-04 19:18:18 +00:00
|
|
|
# Copyright (c) 2021, 2022 NVIDIA CORPORATION & AFFILIATES.
|
2016-11-22 14:58:30 +00:00
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
|
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
|
|
|
|
|
2022-01-19 10:12:50 +00:00
|
|
|
ifeq ($(CONFIG_XNVME),y)
|
|
|
|
BLOCKDEV_MODULES_LIST += bdev_xnvme
|
|
|
|
endif
|
|
|
|
|
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
|
2022-01-19 15:28:13 +00:00
|
|
|
ifeq ($(CONFIG_CRYPTO_MLX5),y)
|
|
|
|
BLOCKDEV_MODULES_PRIVATE_LIBS += -lmlx5 -libverbs
|
|
|
|
endif
|
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
|
|
|
|
|
2022-10-28 23:07:51 +00:00
|
|
|
ifeq ($(CONFIG_VBDEV_COMPRESS),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
|
2022-10-28 23:07:51 +00:00
|
|
|
ifeq ($(CONFIG_VBDEV_COMPRESS_MLX5),y)
|
2022-01-19 15:28:13 +00:00
|
|
|
BLOCKDEV_MODULES_PRIVATE_LIBS += -lmlx5 -libverbs
|
2021-06-15 13:25:07 +00:00
|
|
|
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)
|
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
|
2022-06-21 09:20:47 +00:00
|
|
|
BLOCKDEV_MODULES_LIST += bdev_ftl ftl
|
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
|
|
|
|
|
2022-03-08 23:55:01 +00:00
|
|
|
ifeq ($(CONFIG_DAOS),y)
|
|
|
|
BLOCKDEV_MODULES_LIST += bdev_daos
|
|
|
|
BLOCKDEV_MODULES_PRIVATE_LIBS += -ldaos -ldaos_common -ldfs -lgurt -luuid -ldl
|
|
|
|
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)
|
2022-05-20 19:08:38 +00:00
|
|
|
ACCEL_MODULES_LIST += accel_dsa accel_iaa idxd
|
2020-04-07 16:38:58 +00:00
|
|
|
endif
|
2022-10-04 19:18:18 +00:00
|
|
|
ifeq ($(CONFIG_CRYPTO),y)
|
|
|
|
ACCEL_MODULES_LIST += accel_dpdk_cryptodev
|
|
|
|
endif
|
2022-10-28 21:56:55 +00:00
|
|
|
ifeq ($(CONFIG_DPDK_COMPRESSDEV),y)
|
|
|
|
ACCEL_MODULES_LIST += accel_dpdk_compressdev
|
|
|
|
endif
|
2016-07-20 18:16:23 +00:00
|
|
|
|
2021-08-06 09:17:16 +00:00
|
|
|
SCHEDULER_MODULES_LIST = scheduler_dynamic
|
2022-06-02 07:42:58 +00:00
|
|
|
ifeq (y,$(DPDK_POWER))
|
2021-08-06 09:17:16 +00:00
|
|
|
SCHEDULER_MODULES_LIST += env_dpdk scheduler_dpdk_governor scheduler_gscheduler
|
|
|
|
endif
|
|
|
|
|
2022-05-07 05:44:36 +00:00
|
|
|
ifeq ($(CONFIG_VFIO_USER),y)
|
|
|
|
VFU_DEVICE_MODULES_LIST = vfu_device
|
|
|
|
endif
|
|
|
|
|
2022-11-04 14:19:47 +00:00
|
|
|
EVENT_BDEV_SUBSYSTEM = event_bdev event_accel event_vmd event_sock event_iobuf
|
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)
|
2022-05-07 05:44:36 +00:00
|
|
|
ALL_MODULES_LIST += $(VFU_DEVICE_MODULES_LIST)
|
2020-09-29 18:50:05 +00:00
|
|
|
SYS_LIBS += $(BLOCKDEV_MODULES_PRIVATE_LIBS)
|