diff options
| author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2026-08-28 16:04:42 +0400 |
|---|---|---|
| committer | Marc-André Lureau <marcandre.lureau@redhat.com> | 2026-08-29 12:07:45 +0400 |
| commit | 34c5de5c6d6049b7cd0d475a32da8760f35c0ab5 (patch) | |
| tree | ceef6b37f0e49870cf328dfb9c05d610e519916e /backends | |
| parent | be86cd220ad1bbe4fad11010580ae871c954df76 (diff) | |
| download | qemu-34c5de5c6d6049b7cd0d475a32da8760f35c0ab5.tar.gz qemu-34c5de5c6d6049b7cd0d475a32da8760f35c0ab5.zip | |
build-sys: make HMP source files conditional on have_hmp
Exclude all *-hmp-cmds.c files and HMP-only source files from the
build when HMP is disabled.
Also conditionalise the hmp-commands.hx header generation and the
test-hmp qtest.
Acked-by: Dr. David Alan Gilbert <dave@treblig.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Message-ID: <20260828-qemu-no-hmp-v5-45-9227de146347@redhat.com>
Diffstat (limited to 'backends')
| -rw-r--r-- | backends/meson.build | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/backends/meson.build b/backends/meson.build index 8792c58c36..224e967535 100644 --- a/backends/meson.build +++ b/backends/meson.build @@ -1,6 +1,5 @@ system_ss.add([files( 'cryptodev-builtin.c', - 'cryptodev-hmp-cmds.c', 'cryptodev.c', 'hostmem-ram.c', 'hostmem.c', @@ -10,6 +9,10 @@ system_ss.add([files( 'confidential-guest-support.c', ), numa]) +if have_hmp + system_ss.add(files('cryptodev-hmp-cmds.c')) +endif + if host_os != 'windows' system_ss.add(files('rng-random.c')) if host_os != 'emscripten' |
