@@ -477,6 +477,7 @@ dummy := $(call unnest-vars,, \
common-obj-m \
trace-obj-y)
+
include $(SRC_PATH)/tests/Makefile.include
all: $(DOCS) $(if $(BUILD_DOCS),sphinxdocs) $(TOOLS) $(HELPERS-y) recurse-all modules $(vhost-user-json-y)
@@ -70,6 +70,7 @@ common-obj-$(CONFIG_TPM) += tpm.o
common-obj-y += backends/
common-obj-y += chardev/
+common-obj-m += chardev/
common-obj-$(CONFIG_SECCOMP) += qemu-seccomp.o
qemu-seccomp.o-cflags := $(SECCOMP_CFLAGS)
@@ -22,4 +22,5 @@ common-obj-$(CONFIG_BRLAPI) += baum.o
baum.o-cflags := $(SDL_CFLAGS)
baum.o-libs := $(BRLAPI_LIBS)
-common-obj-$(CONFIG_SPICE) += spice.o
+common-obj-$(CONFIG_SPICE) += spice.mo
+spice.mo-objs := spice.o
@@ -7471,7 +7471,7 @@ if test "$posix_memalign" = "yes" ; then
fi
if test "$spice" = "yes" ; then
- echo "CONFIG_SPICE=y" >> $config_host_mak
+ echo "CONFIG_SPICE=m" >> $config_host_mak
fi
if test "$smartcard" = "yes" ; then
This commit changes the spice configuration 'm' by default, and moves the spice components to obj-m variables. It is sufficient to build without modules enable, but does not link correctly yet, since no shims have been created for the missing functions yet. Signed-off-by: Christophe de Dinechin <dinechin@redhat.com> --- Makefile | 1 + Makefile.objs | 1 + chardev/Makefile.objs | 3 ++- configure | 2 +- 4 files changed, 5 insertions(+), 2 deletions(-)