2016-11-15 00:45:04 +00:00
|
|
|
BLOCKDEV_MODULES += $(SPDK_ROOT_DIR)/build/lib/libspdk_bdev_malloc.a
|
2016-07-20 18:16:23 +00:00
|
|
|
|
2016-11-15 00:45:04 +00:00
|
|
|
BLOCKDEV_MODULES += $(SPDK_ROOT_DIR)/build/lib/libspdk_bdev_nvme.a \
|
|
|
|
$(SPDK_ROOT_DIR)/build/lib/libspdk_nvme.a
|
2016-07-20 18:16:23 +00:00
|
|
|
|
2016-08-03 17:36:14 +00:00
|
|
|
ifeq ($(OS),Linux)
|
2016-11-15 00:45:04 +00:00
|
|
|
BLOCKDEV_MODULES += $(SPDK_ROOT_DIR)/build/lib/libspdk_bdev_aio.a
|
2016-08-03 17:36:14 +00:00
|
|
|
BLOCKDEV_MODULES_DEPS += -laio
|
|
|
|
endif
|
|
|
|
|
2016-09-20 04:12:45 +00:00
|
|
|
ifeq ($(CONFIG_RBD),y)
|
2016-11-15 00:45:04 +00:00
|
|
|
BLOCKDEV_MODULES += $(SPDK_ROOT_DIR)/build/lib/libspdk_bdev_rbd.a
|
2016-09-20 04:12:45 +00:00
|
|
|
BLOCKDEV_MODULES_DEPS += -lrados -lrbd
|
|
|
|
endif
|
|
|
|
|
2016-11-15 00:45:04 +00:00
|
|
|
COPY_MODULES += $(SPDK_ROOT_DIR)/build/lib/libspdk_copy_ioat.a \
|
|
|
|
$(SPDK_ROOT_DIR)/build/lib/libspdk_ioat.a
|
2016-07-20 18:16:23 +00:00
|
|
|
|
|
|
|
BLOCKDEV_MODULES_LINKER_ARGS = -Wl,--whole-archive \
|
|
|
|
$(BLOCKDEV_MODULES) \
|
|
|
|
-Wl,--no-whole-archive \
|
|
|
|
$(BLOCKDEV_MODULES_DEPS)
|
|
|
|
|
|
|
|
COPY_MODULES_LINKER_ARGS = -Wl,--whole-archive \
|
|
|
|
$(COPY_MODULES) \
|
|
|
|
-Wl,--no-whole-archive \
|
|
|
|
$(COPY_MODULES_DEPS)
|