2016-11-22 14:58:30 +00:00
|
|
|
#
|
|
|
|
# BSD LICENSE
|
|
|
|
#
|
|
|
|
# Copyright (c) Intel Corporation.
|
|
|
|
# All rights reserved.
|
|
|
|
#
|
|
|
|
# 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
|
|
|
|
BLOCKDEV_MODULES_LIST += blobfs blob_bdev blob lvol vmd nvme
|
2016-07-20 18:16:23 +00:00
|
|
|
|
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
|
|
|
|
SYS_LIBS += -lpmem
|
2018-12-01 15:09:46 +00:00
|
|
|
endif
|
|
|
|
|
2016-11-18 16:57:53 +00:00
|
|
|
ifeq ($(CONFIG_RDMA),y)
|
2018-11-20 20:38:24 +00:00
|
|
|
SYS_LIBS += -libverbs -lrdmacm
|
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)
|
2019-04-30 22:57:29 +00:00
|
|
|
BLOCKDEV_MODULES_LIST += ftl
|
2018-07-19 21:36:11 +00:00
|
|
|
BLOCKDEV_MODULES_LIST += bdev_aio
|
2018-11-20 20:38:24 +00:00
|
|
|
SYS_LIBS += -laio
|
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.
|
2018-11-20 20:38:24 +00:00
|
|
|
SYS_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
|
|
|
|
SYS_LIBS += -luring
|
|
|
|
ifneq ($(strip $(CONFIG_URING_PATH)),)
|
|
|
|
CFLAGS += -I$(CONFIG_URING_PATH)
|
|
|
|
LDFLAGS += -L$(CONFIG_URING_PATH)
|
|
|
|
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
|
2018-11-20 20:38:24 +00:00
|
|
|
SYS_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
|
2018-11-20 20:38:24 +00:00
|
|
|
SYS_LIBS += -lpmemblk
|
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
|
|
|
|
2018-03-13 14:42:45 +00:00
|
|
|
ifeq ($(CONFIG_VPP),y)
|
2018-11-20 20:38:24 +00:00
|
|
|
SYS_LIBS += -Wl,--whole-archive
|
2018-03-13 14:42:45 +00:00
|
|
|
ifneq ($(CONFIG_VPP_DIR),)
|
2018-09-26 07:57:32 +00:00
|
|
|
SYS_LIBS += -L$(CONFIG_VPP_DIR)/lib
|
2018-03-13 14:42:45 +00:00
|
|
|
endif
|
2018-09-26 07:57:32 +00:00
|
|
|
SYS_LIBS += -lvppinfra -lsvm -lvlibmemoryclient
|
2018-11-20 20:38:24 +00:00
|
|
|
SYS_LIBS += -Wl,--no-whole-archive
|
2018-06-21 23:30:52 +00:00
|
|
|
SOCK_MODULES_LIST += sock_vpp
|
2018-03-13 14:42:45 +00:00
|
|
|
endif
|
|
|
|
|
2016-11-18 16:57:53 +00:00
|
|
|
COPY_MODULES_LIST = copy_ioat ioat
|
2016-07-20 18:16:23 +00:00
|
|
|
|
2018-11-20 21:08:45 +00:00
|
|
|
ALL_MODULES_LIST = $(BLOCKDEV_MODULES_LIST) $(COPY_MODULES_LIST) $(SOCK_MODULES_LIST)
|