Skip to contentSkip to conversation

qapi: Remove QMP events and commands from user-mode builds

PATCH Applied Philippe Mathieu-Daudé 3 participants 3 messages Feb 24, 2021 – Feb 25, 2021 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

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.

---
 qapi/meson.build | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)
qapi/meson.build +8 -4
index 0652569bc43..fcb15a78f15 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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.

---
  qapi/meson.build | 12 ++++++++----
  1 file changed, 8 insertions(+), 4 deletions(-)
qapi/meson.build +1 -4
index 0652569bc43..fcb15a78f15 100644
@@ -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
#2 lore raw
Quoted 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.

---
  qapi/meson.build | 12 ++++++++----
  1 file changed, 8 insertions(+), 4 deletions(-)
qapi/meson.build +6 -4
index 0652569bc43..fcb15a78f15 100644
@@ -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
    else

I'm taking this as "Markus, care to take this through your tree?"

Queued, thanks!