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.
Signed-off-by: Marc-André Lureau <[email protected]> --- meson.build | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meson.build b/meson.build index 6dcfdceb507d..aca56813ab8c 100644 --- a/meson.build +++ b/meson.build @@ -243,6 +243,7 @@ have_vhost_net = have_vhost_net_kernel or have_vhost_net_user or have_vhost_net_ have_tcg = get_option('tcg').allowed() and (have_system or have_user) +have_hmp = true have_tools = get_option('tools') \ .disable_auto_if(not have_system) \ .allowed() @@ -2266,6 +2267,7 @@ endif config_host_data = configuration_data() +config_host_data.set('CONFIG_HMP', have_hmp) config_host_data.set('CONFIG_HAVE_RUST', have_rust) audio_drivers_selected = [] if have_system -- 2.55.0.543.g5ebe2ebe4ea8
