2016-11-22 07:58:30 -07: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.
|
|
|
|
#
|
|
|
|
|
2018-11-12 06:45:06 -07:00
|
|
|
BLOCKDEV_MODULES_LIST = bdev_lvol blobfs blob blob_bdev lvol
|
2019-05-07 15:43:11 -07:00
|
|
|
BLOCKDEV_MODULES_LIST += bdev_malloc bdev_null bdev_nvme nvme bdev_passthru bdev_error bdev_gpt bdev_split bdev_delay vmd
|
2018-10-12 15:45:57 -07:00
|
|
|
BLOCKDEV_MODULES_LIST += bdev_raid
|
2016-07-20 11:16:23 -07:00
|
|
|
|
2018-03-07 16:44:06 -07:00
|
|
|
ifeq ($(CONFIG_CRYPTO),y)
|
2018-10-12 15:45:57 -07:00
|
|
|
BLOCKDEV_MODULES_LIST += bdev_crypto
|
2018-03-07 16:44:06 -07: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 08:09:46 -07:00
|
|
|
ifeq ($(CONFIG_REDUCE),y)
|
2018-12-01 15:04:21 -07:00
|
|
|
BLOCKDEV_MODULES_LIST += bdev_compress reduce
|
|
|
|
SYS_LIBS += -lpmem
|
2018-12-01 08:09:46 -07:00
|
|
|
endif
|
|
|
|
|
2016-11-18 09:57:53 -07:00
|
|
|
ifeq ($(CONFIG_RDMA),y)
|
2018-11-20 13:38:24 -07:00
|
|
|
SYS_LIBS += -libverbs -lrdmacm
|
2016-11-18 09:57:53 -07:00
|
|
|
endif
|
2016-07-20 11:16:23 -07:00
|
|
|
|
2016-08-03 10:36:14 -07:00
|
|
|
ifeq ($(OS),Linux)
|
2019-04-30 15:57:29 -07:00
|
|
|
BLOCKDEV_MODULES_LIST += ftl
|
2018-07-19 14:36:11 -07:00
|
|
|
BLOCKDEV_MODULES_LIST += bdev_aio
|
2018-11-20 13:38:24 -07:00
|
|
|
SYS_LIBS += -laio
|
2018-07-19 14:36:11 -07:00
|
|
|
ifeq ($(CONFIG_VIRTIO),y)
|
|
|
|
BLOCKDEV_MODULES_LIST += bdev_virtio virtio
|
|
|
|
endif
|
2017-12-04 10:07:04 -07:00
|
|
|
ifeq ($(CONFIG_ISCSI_INITIATOR),y)
|
|
|
|
BLOCKDEV_MODULES_LIST += bdev_iscsi
|
|
|
|
# Fedora installs libiscsi to /usr/lib64/iscsi for some reason.
|
2018-11-20 13:38:24 -07:00
|
|
|
SYS_LIBS += -L/usr/lib64/iscsi -liscsi
|
2017-12-04 10:07:04 -07:00
|
|
|
endif
|
2016-08-03 10:36:14 -07:00
|
|
|
endif
|
|
|
|
|
2019-02-19 10:06:19 -07: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 12:12:45 +08:00
|
|
|
ifeq ($(CONFIG_RBD),y)
|
2016-11-18 09:57:53 -07:00
|
|
|
BLOCKDEV_MODULES_LIST += bdev_rbd
|
2018-11-20 13:38:24 -07:00
|
|
|
SYS_LIBS += -lrados -lrbd
|
2016-09-20 12:12:45 +08:00
|
|
|
endif
|
|
|
|
|
2018-04-03 16:07:39 -07:00
|
|
|
ifeq ($(CONFIG_PMDK),y)
|
2017-09-29 10:49:51 +02:00
|
|
|
BLOCKDEV_MODULES_LIST += bdev_pmem
|
2018-11-20 13:38:24 -07:00
|
|
|
SYS_LIBS += -lpmemblk
|
2017-09-29 10:49:51 +02:00
|
|
|
endif
|
|
|
|
|
2018-11-20 09:10:20 -07:00
|
|
|
SOCK_MODULES_LIST = sock_posix
|
2018-03-14 08:54:30 -04:00
|
|
|
|
2018-03-13 10:42:45 -04:00
|
|
|
ifeq ($(CONFIG_VPP),y)
|
2018-11-20 13:38:24 -07:00
|
|
|
SYS_LIBS += -Wl,--whole-archive
|
2018-03-13 10:42:45 -04:00
|
|
|
ifneq ($(CONFIG_VPP_DIR),)
|
2018-09-26 03:57:32 -04:00
|
|
|
SYS_LIBS += -L$(CONFIG_VPP_DIR)/lib
|
2018-03-13 10:42:45 -04:00
|
|
|
endif
|
2018-09-26 03:57:32 -04:00
|
|
|
SYS_LIBS += -lvppinfra -lsvm -lvlibmemoryclient
|
2018-11-20 13:38:24 -07:00
|
|
|
SYS_LIBS += -Wl,--no-whole-archive
|
2018-06-21 16:30:52 -07:00
|
|
|
SOCK_MODULES_LIST += sock_vpp
|
2018-03-13 10:42:45 -04:00
|
|
|
endif
|
|
|
|
|
2016-11-18 09:57:53 -07:00
|
|
|
COPY_MODULES_LIST = copy_ioat ioat
|
2016-07-20 11:16:23 -07:00
|
|
|
|
2018-11-20 14:08:45 -07:00
|
|
|
ALL_MODULES_LIST = $(BLOCKDEV_MODULES_LIST) $(COPY_MODULES_LIST) $(SOCK_MODULES_LIST)
|