xref: /openbmc/qemu/target/arm/meson.build (revision d2dfe0b5)
1arm_ss = ss.source_set()
2arm_ss.add(files(
3  'cpu.c',
4  'debug_helper.c',
5  'gdbstub.c',
6  'helper.c',
7  'vfp_helper.c',
8))
9arm_ss.add(zlib)
10
11arm_ss.add(when: 'CONFIG_KVM', if_true: files('kvm.c', 'kvm64.c'), if_false: files('kvm-stub.c'))
12
13arm_ss.add(when: 'TARGET_AARCH64', if_true: files(
14  'cpu64.c',
15  'gdbstub64.c',
16))
17
18arm_softmmu_ss = ss.source_set()
19arm_softmmu_ss.add(files(
20  'arch_dump.c',
21  'arm-powerctl.c',
22  'arm-qmp-cmds.c',
23  'cortex-regs.c',
24  'machine.c',
25  'ptw.c',
26))
27
28subdir('hvf')
29
30if 'CONFIG_TCG' in config_all
31   subdir('tcg')
32else
33    arm_ss.add(files('tcg-stubs.c'))
34endif
35
36target_arch += {'arm': arm_ss}
37target_softmmu_arch += {'arm': arm_softmmu_ss}
38