14837c6493
This adds a --blockdev option to the storage daemon that works the same as the -blockdev option of the system emulator. In order to be able to link with blockdev.o, we also need to change stream.o from common-obj to block-obj, which is where all other block jobs already are. In contrast to the system emulator, qemu-storage-daemon options will be processed in the order they are given. The user needs to take care to refer to other objects only after defining them. Signed-off-by: Kevin Wolf <kwolf@redhat.com> Message-Id: <20200224143008.13362-7-kwolf@redhat.com> Acked-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
76 lines
2.7 KiB
Makefile
76 lines
2.7 KiB
Makefile
block-obj-y += raw-format.o vmdk.o vpc.o
|
|
block-obj-$(CONFIG_QCOW1) += qcow.o
|
|
block-obj-$(CONFIG_VDI) += vdi.o
|
|
block-obj-$(CONFIG_CLOOP) += cloop.o
|
|
block-obj-$(CONFIG_BOCHS) += bochs.o
|
|
block-obj-$(CONFIG_VVFAT) += vvfat.o
|
|
block-obj-$(CONFIG_DMG) += dmg.o
|
|
|
|
block-obj-y += qcow2.o qcow2-refcount.o qcow2-cluster.o qcow2-snapshot.o qcow2-cache.o qcow2-bitmap.o qcow2-threads.o
|
|
block-obj-$(CONFIG_QED) += qed.o qed-l2-cache.o qed-table.o qed-cluster.o
|
|
block-obj-$(CONFIG_QED) += qed-check.o
|
|
block-obj-y += vhdx.o vhdx-endian.o vhdx-log.o
|
|
block-obj-y += quorum.o
|
|
block-obj-y += blkdebug.o blkverify.o blkreplay.o
|
|
block-obj-$(CONFIG_PARALLELS) += parallels.o
|
|
block-obj-y += blklogwrites.o
|
|
block-obj-y += block-backend.o snapshot.o qapi.o
|
|
block-obj-$(CONFIG_WIN32) += file-win32.o win32-aio.o
|
|
block-obj-$(CONFIG_POSIX) += file-posix.o
|
|
block-obj-$(CONFIG_LINUX_AIO) += linux-aio.o
|
|
block-obj-$(CONFIG_LINUX_IO_URING) += io_uring.o
|
|
block-obj-y += null.o mirror.o commit.o io.o create.o
|
|
block-obj-y += throttle-groups.o
|
|
block-obj-$(CONFIG_LINUX) += nvme.o
|
|
|
|
block-obj-y += nbd.o
|
|
block-obj-$(CONFIG_SHEEPDOG) += sheepdog.o
|
|
block-obj-$(CONFIG_LIBISCSI) += iscsi.o
|
|
block-obj-$(if $(CONFIG_LIBISCSI),y,n) += iscsi-opts.o
|
|
block-obj-$(CONFIG_LIBNFS) += nfs.o
|
|
block-obj-$(CONFIG_CURL) += curl.o
|
|
block-obj-$(CONFIG_RBD) += rbd.o
|
|
block-obj-$(CONFIG_GLUSTERFS) += gluster.o
|
|
block-obj-$(CONFIG_VXHS) += vxhs.o
|
|
block-obj-$(CONFIG_LIBSSH) += ssh.o
|
|
block-obj-y += accounting.o dirty-bitmap.o
|
|
block-obj-y += write-threshold.o
|
|
block-obj-y += backup.o
|
|
block-obj-$(CONFIG_REPLICATION) += replication.o
|
|
block-obj-y += throttle.o copy-on-read.o
|
|
block-obj-y += block-copy.o
|
|
|
|
block-obj-y += crypto.o
|
|
|
|
block-obj-y += aio_task.o
|
|
block-obj-y += backup-top.o
|
|
block-obj-y += filter-compress.o
|
|
|
|
block-obj-y += stream.o
|
|
|
|
common-obj-y += qapi-sysemu.o
|
|
|
|
nfs.o-libs := $(LIBNFS_LIBS)
|
|
iscsi.o-cflags := $(LIBISCSI_CFLAGS)
|
|
iscsi.o-libs := $(LIBISCSI_LIBS)
|
|
curl.o-cflags := $(CURL_CFLAGS)
|
|
curl.o-libs := $(CURL_LIBS)
|
|
rbd.o-cflags := $(RBD_CFLAGS)
|
|
rbd.o-libs := $(RBD_LIBS)
|
|
gluster.o-cflags := $(GLUSTERFS_CFLAGS)
|
|
gluster.o-libs := $(GLUSTERFS_LIBS)
|
|
vxhs.o-libs := $(VXHS_LIBS)
|
|
ssh.o-cflags := $(LIBSSH_CFLAGS)
|
|
ssh.o-libs := $(LIBSSH_LIBS)
|
|
block-obj-dmg-bz2-$(CONFIG_BZIP2) += dmg-bz2.o
|
|
block-obj-$(if $(CONFIG_DMG),m,n) += $(block-obj-dmg-bz2-y)
|
|
dmg-bz2.o-libs := $(BZIP2_LIBS)
|
|
block-obj-$(if $(CONFIG_LZFSE),m,n) += dmg-lzfse.o
|
|
dmg-lzfse.o-libs := $(LZFSE_LIBS)
|
|
qcow.o-libs := -lz
|
|
linux-aio.o-libs := -laio
|
|
io_uring.o-cflags := $(LINUX_IO_URING_CFLAGS)
|
|
io_uring.o-libs := $(LINUX_IO_URING_LIBS)
|
|
parallels.o-cflags := $(LIBXML2_CFLAGS)
|
|
parallels.o-libs := $(LIBXML2_LIBS)
|