[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 4/7] spice: Make spice a module configuration
From: |
Christophe de Dinechin |
Subject: |
[PATCH 4/7] spice: Make spice a module configuration |
Date: |
Thu, 23 Jul 2020 19:46:12 +0200 |
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>
---
chardev/Makefile.objs | 3 ++-
configure | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/chardev/Makefile.objs b/chardev/Makefile.objs
index 3783dadc4c..7cf05c9541 100644
--- a/chardev/Makefile.objs
+++ b/chardev/Makefile.objs
@@ -26,4 +26,5 @@ baum.o-cflags := $(SDL_CFLAGS)
baum.o-libs := $(BRLAPI_LIBS)
endif
-common-obj-$(CONFIG_SPICE) += spice.o
+common-obj-$(CONFIG_SPICE) += spice.mo
+spice.mo-objs := spice.o
diff --git a/configure b/configure
index 4bd80ed507..054aab31be 100755
--- a/configure
+++ b/configure
@@ -7534,7 +7534,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
--
2.26.2
- [PATCH 0/7] Make SPICE a load module, Christophe de Dinechin, 2020/07/23
- [PATCH 1/7] spice: simplify chardev setup, Christophe de Dinechin, 2020/07/23
- [PATCH 2/7] build: fix device module builds, Christophe de Dinechin, 2020/07/23
- [PATCH 3/7] minikconf: Pass variables for modules, Christophe de Dinechin, 2020/07/23
- [PATCH 4/7] spice: Make spice a module configuration,
Christophe de Dinechin <=
- [PATCH 5/7] spice: Move all the spice-related code in spice-app.so, Christophe de Dinechin, 2020/07/23
- [PATCH 7/7] spice: Call qemu spice functions indirectly, Christophe de Dinechin, 2020/07/23
- [PATCH 6/7] build: Add SPICE_CFLAGS and SPICE_LIBS to relevant files, Christophe de Dinechin, 2020/07/23