modules-test: ui-spice-app is not built as module
PATCH 1/1 modules-test: ui-spice-app is not built as module
$(call land, $(CONFIG_SPICE), $(CONFIG_GIO)) will never return "m" so ui-spice-app is always linked into QEMU.
--- tests/modules-test.c | 3 --- 1 file changed, 3 deletions(-)
tests/modules-test.c +0 -3
@@ -53,9 +53,6 @@ int main(int argc, char *argv[])#ifdef CONFIG_SDL "ui-", "sdl",#endif -#if defined(CONFIG_SPICE ) && defined(CONFIG_GIO ) - "ui-", "spice-app", -#endif };int i;
Signature · 1 line
1.8.3.1
Quoted 5 lines · Paolo Bonzini
$(call land, $(CONFIG_SPICE), $(CONFIG_GIO)) will never return "m" so ui-spice-app is always linked into QEMU.
Signed-off-by Paolo Bonzini <[email protected]>
I would rather build the module:
-common-obj-$(call land,$(CONFIG_SPICE),$(CONFIG_GIO)) += spice-app.mo +ifeq ($(CONFIG_GIO)$(CONFIG_SPICE),yy)
+common-obj-$(if $(CONFIG_MODULES),m,y) += spice-app.mo +endif
Quoted 22 lines
--- tests/modules-test.c | 3 --- 1 file changed, 3 deletions(-)tests/modules-test.c +0
-4@@ -53,9 +53,6 @@ int main(int argc, char *argv[])#ifdef CONFIG_SDL "ui-", "sdl",#endif -#if defined(CONFIG_SPICE ) && defined(CONFIG_GIO ) - "ui-", "spice-app", -#endif };int i; --1.8.3.1
Signature · 1 line
Marc-André Lureau
Review
Quoted 12 lines · Marc-André Lureau
Quoted 5 lines · Paolo Bonzini
$(call land, $(CONFIG_SPICE), $(CONFIG_GIO)) will never return "m" so ui-spice-app is always linked into QEMU.
Signed-off-by Paolo Bonzini <[email protected]>I would rather build the module:
(quoted diff) +3
-1-common-obj-$(call land,$(CONFIG_SPICE),$(CONFIG_GIO)) += spice-app.mo +ifeq ($(CONFIG_GIO)$(CONFIG_SPICE),yy) +common-obj-$(if $(CONFIG_MODULES),m,y) += spice-app.mo +endif
That would not be a quick patch that Peter can apply to fix the build...
Paolo
Quoted 26 lines · Paolo Bonzini
$(call land, $(CONFIG_SPICE), $(CONFIG_GIO)) will never return "m" so ui-spice-app is always linked into QEMU.
Signed-off-by Paolo Bonzini <[email protected]>--- tests/modules-test.c | 3 --- 1 file changed, 3 deletions(-)tests/modules-test.c +0
-3@@ -53,9 +53,6 @@ int main(int argc, char *argv[])#ifdef CONFIG_SDL "ui-", "sdl",#endif -#if defined(CONFIG_SPICE ) && defined(CONFIG_GIO ) - "ui-", "spice-app", -#endif };int i;Signature · 1 line
1.8.3.1
Making make check pass again for me.
Quoted 14 lines · Paolo Bonzini
$(call land, $(CONFIG_SPICE), $(CONFIG_GIO)) will never return "m" so ui-spice-app is always linked into QEMU.
Signed-off-by Paolo Bonzini <[email protected]>--- tests/modules-test.c | 3 --- 1 file changed, 3 deletions(-)tests/modules-test.c +0
-0
tests/modules-test.c int main(int argc, char *argv[]) · line 57
Quoted 8 lines
tests/modules-test.c +0
-3@@ -53,9 +53,6 @@ int main(int argc, char *argv[])#ifdef CONFIG_SDL "ui-", "sdl",#endif -#if defined(CONFIG_SPICE ) && defined(CONFIG_GIO ) - "ui-", "spice-app", -#endif };int i;
I've applied this to master as a build fix for the moment, thanks. We can properly build the module and revert this bit as the longer-term fix.
thanks
-- PMM