Make it easier to use SPDK libraries by putting them all in a single directory that can be added with -L rather than scattered around the source tree. Change-Id: I5c0f5dd6e7058b5f92fa9bc41548190ffc064761 Signed-off-by: Daniel Verkamp <daniel.verkamp@intel.com>
28 lines
843 B
Makefile
28 lines
843 B
Makefile
BLOCKDEV_MODULES += $(SPDK_ROOT_DIR)/build/lib/libspdk_bdev_malloc.a
|
|
|
|
BLOCKDEV_MODULES += $(SPDK_ROOT_DIR)/build/lib/libspdk_bdev_nvme.a \
|
|
$(SPDK_ROOT_DIR)/build/lib/libspdk_nvme.a
|
|
|
|
ifeq ($(OS),Linux)
|
|
BLOCKDEV_MODULES += $(SPDK_ROOT_DIR)/build/lib/libspdk_bdev_aio.a
|
|
BLOCKDEV_MODULES_DEPS += -laio
|
|
endif
|
|
|
|
ifeq ($(CONFIG_RBD),y)
|
|
BLOCKDEV_MODULES += $(SPDK_ROOT_DIR)/build/lib/libspdk_bdev_rbd.a
|
|
BLOCKDEV_MODULES_DEPS += -lrados -lrbd
|
|
endif
|
|
|
|
COPY_MODULES += $(SPDK_ROOT_DIR)/build/lib/libspdk_copy_ioat.a \
|
|
$(SPDK_ROOT_DIR)/build/lib/libspdk_ioat.a
|
|
|
|
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)
|