qemu/target/arm/meson.build
Philippe Mathieu-Daudé 3362f04dbc target/arm: Restrict 'qapi-commands-machine.h' to system emulation
Since commit a0e61807a3 ("qapi: Remove QMP events and commands from
user-mode builds") we don't generate the "qapi-commands-machine.h"
header in a user-emulation-only build.

Move the QMP functions from helper.c (which is always compiled)
to monitor.c (which is only compiled when system-emulation
is selected).  Rename monitor.c to arm-qmp-cmds.c.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20230223155540.30370-2-philmd@linaro.org>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
[Straightforward conflict with commit 9def656e7a resolved]
2023-03-02 07:51:06 +01:00

38 lines
676 B
Meson

arm_ss = ss.source_set()
arm_ss.add(files(
'cpu.c',
'debug_helper.c',
'gdbstub.c',
'helper.c',
'vfp_helper.c',
'cpu_tcg.c',
))
arm_ss.add(zlib)
arm_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c', 'kvm64.c'), if_false: files('kvm-stub.c'))
arm_ss.add(when: 'TARGET_AARCH64', if_true: files(
'cpu64.c',
'gdbstub64.c',
))
arm_softmmu_ss = ss.source_set()
arm_softmmu_ss.add(files(
'arch_dump.c',
'arm-powerctl.c',
'arm-qmp-cmds.c',
'machine.c',
'ptw.c',
))
subdir('hvf')
if 'CONFIG_TCG' in config_all
subdir('tcg')
else
arm_ss.add(files('tcg-stubs.c'))
endif
target_arch += {'arm': arm_ss}
target_softmmu_arch += {'arm': arm_softmmu_ss}