qapi: Remove QMP events and commands from user-mode builds
PATCH 1/1 qapi: Remove QMP events and commands from user-mode builds
We removed the QMP loop in user-mode builds in commit 1935e0e4e09 ("qapi/meson: Remove QMP from user-mode emulation"), now commands and events code is unreachable.
Signed-off-by Philippe Mathieu-Daudé <[email protected]>
--- qapi/meson.build | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
qapi/meson.build +8 -4
@@ -102,11 +102,15 @@ 'qapi-types-@[email protected]'.format(module), 'qapi-visit-@[email protected]'.format(module), 'qapi-visit-@[email protected]'.format(module), - 'qapi-events-@[email protected]'.format(module), - 'qapi-events-@[email protected]'.format(module), - 'qapi-commands-@[email protected]'.format(module), - 'qapi-commands-@[email protected]'.format(module), ] + if have_system or have_tools + qapi_module_outputs += [ + 'qapi-events-@[email protected]'.format(module), + 'qapi-events-@[email protected]'.format(module), + 'qapi-commands-@[email protected]'.format(module), + 'qapi-commands-@[email protected]'.format(module), + ] + endif if module.endswith('-target') qapi_specific_outputs += qapi_module_outputs else
Signature · 1 line
2.26.2
Quoted 24 lines · Philippe Mathieu-Daudé
We removed the QMP loop in user-mode builds in commit
1935e0e4e09("qapi/meson: Remove QMP from user-mode emulation"), now commands and events code is unreachable.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- qapi/meson.build | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)qapi/meson.build +1
-4@@ -102,11 +102,15 @@ 'qapi-types-@[email protected]'.format(module), 'qapi-visit-@[email protected]'.format(module), 'qapi-visit-@[email protected]'.format(module), - 'qapi-events-@[email protected]'.format(module), - 'qapi-events-@[email protected]'.format(module), - 'qapi-commands-@[email protected]'.format(module), - 'qapi-commands-@[email protected]'.format(module), ] + if have_system or have_tools
qapi/meson.build line 116
Quoted 10 lines
qapi/meson.build +7
-0+ qapi_module_outputs += [ + 'qapi-events-@[email protected]'.format(module), + 'qapi-events-@[email protected]'.format(module), + 'qapi-commands-@[email protected]'.format(module), + 'qapi-commands-@[email protected]'.format(module), + ] + endif if module.endswith('-target') qapi_specific_outputs += qapi_module_outputs else
Acked-by Paolo Bonzini <[email protected]>
Markus Armbruster
AppliedQuoted 27 lines · Paolo Bonzini
Quoted 26 lines · Philippe Mathieu-Daudé
We removed the QMP loop in user-mode builds in commit
1935e0e4e09("qapi/meson: Remove QMP from user-mode emulation"), now commands and events code is unreachable.Signed-off-by Philippe Mathieu-Daudé <[email protected]>--- qapi/meson.build | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)qapi/meson.build +6
-4@@ -102,11 +102,15 @@ 'qapi-types-@[email protected]'.format(module), 'qapi-visit-@[email protected]'.format(module), 'qapi-visit-@[email protected]'.format(module), - 'qapi-events-@[email protected]'.format(module), - 'qapi-events-@[email protected]'.format(module), - 'qapi-commands-@[email protected]'.format(module), - 'qapi-commands-@[email protected]'.format(module), ] + if have_system or have_tools + qapi_module_outputs += [ + 'qapi-events-@[email protected]'.format(module), + 'qapi-events-@[email protected]'.format(module), + 'qapi-commands-@[email protected]'.format(module), + 'qapi-commands-@[email protected]'.format(module),
Quoted 8 lines
qapi/meson.build line 116
Quoted 6 lines
qapi/meson.build +2
-0+ ] + endif if module.endswith('-target') qapi_specific_outputs += qapi_module_outputs elseAcked-by Paolo Bonzini <[email protected]>
I'm taking this as "Markus, care to take this through your tree?"
Queued, thanks!