d5dbde4645
Before this change, memory-backend-file object is valid for Linux hosts only because hostmem-file.c is compiled only on Linux hosts. However, other POSIX-based hosts (such as macOS) can support memory-backend-file object in the same way as on Linux hosts. This patch makes hostmem-file.c and related functions to be compiled on all POSIX-based hosts to make available memory-backend-file on them. Signed-off-by: Hikaru Nishida <hikarupsp@gmail.com> Message-Id: <20180924123205.29651-1-hikarupsp@gmail.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
19 lines
468 B
Makefile
19 lines
468 B
Makefile
common-obj-y += rng.o rng-egd.o
|
|
common-obj-$(CONFIG_POSIX) += rng-random.o
|
|
|
|
common-obj-$(CONFIG_TPM) += tpm.o
|
|
|
|
common-obj-y += hostmem.o hostmem-ram.o
|
|
common-obj-$(CONFIG_POSIX) += hostmem-file.o
|
|
|
|
common-obj-y += cryptodev.o
|
|
common-obj-y += cryptodev-builtin.o
|
|
|
|
ifeq ($(CONFIG_VIRTIO),y)
|
|
common-obj-y += cryptodev-vhost.o
|
|
common-obj-$(call land,$(CONFIG_VHOST_USER),$(CONFIG_LINUX)) += \
|
|
cryptodev-vhost-user.o
|
|
endif
|
|
|
|
common-obj-$(CONFIG_LINUX) += hostmem-memfd.o
|