@samitouri / QOSamiQemu / commits / ace1984f7e

build-sys: introduce CONFIG_HMP

Introduce a config define to mark regions that should be compiled out or disabeld when CONFIG_HMP is off. The actual meson configuration option is introduced later, as for now, only "true" is supported. Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-ID: <20260828-qemu-no-hmp-v5-1-9227de146347@redhat.com>

Marc-André Lureau committed Aug 28, 2026 at 16:03 UTC ace1984f7eec6b6d4313173511d032e97bfc344c
1 file changed +2
meson.build
+2
@@ -243,6 +243,7 @@ have_vhost_net = have_vhost_net_kernel or have_vhost_net_user or have_vhost_net_
243
244 have_tcg = get_option('tcg').allowed() and (have_system or have_user)
245
246 +have_hmp = true
247 have_tools = get_option('tools') \
248 .disable_auto_if(not have_system) \
249 .allowed()
@@ -2266,6 +2267,7 @@ endif
2267
2268 config_host_data = configuration_data()
2269
2270 +config_host_data.set('CONFIG_HMP', have_hmp)
2271 config_host_data.set('CONFIG_HAVE_RUST', have_rust)
2272 audio_drivers_selected = []
2273 if have_system