xref: /openbmc/qemu/target/arm/meson.build (revision 01c85e60)
1abff1abfSPaolo Bonziniarm_ss = ss.source_set()
2abff1abfSPaolo Bonziniarm_ss.add(files(
3abff1abfSPaolo Bonzini  'cpu.c',
4abff1abfSPaolo Bonzini  'debug_helper.c',
5abff1abfSPaolo Bonzini  'gdbstub.c',
6abff1abfSPaolo Bonzini  'helper.c',
7abff1abfSPaolo Bonzini  'vfp_helper.c',
8abff1abfSPaolo Bonzini))
9abff1abfSPaolo Bonziniarm_ss.add(zlib)
10abff1abfSPaolo Bonzini
110ca52a5fSFrancesco Cagninarm_ss.add(when: 'CONFIG_KVM', if_true: files('hyp_gdbstub.c', 'kvm.c', 'kvm64.c'), if_false: files('kvm-stub.c'))
120ca52a5fSFrancesco Cagninarm_ss.add(when: 'CONFIG_HVF', if_true: files('hyp_gdbstub.c'))
13abff1abfSPaolo Bonzini
14abff1abfSPaolo Bonziniarm_ss.add(when: 'TARGET_AARCH64', if_true: files(
15abff1abfSPaolo Bonzini  'cpu64.c',
16abff1abfSPaolo Bonzini  'gdbstub64.c',
17abff1abfSPaolo Bonzini))
18abff1abfSPaolo Bonzini
19de6cd759SPhilippe Mathieu-Daudéarm_system_ss = ss.source_set()
20de6cd759SPhilippe Mathieu-Daudéarm_system_ss.add(files(
21abff1abfSPaolo Bonzini  'arch_dump.c',
22abff1abfSPaolo Bonzini  'arm-powerctl.c',
233362f04dSPhilippe Mathieu-Daudé  'arm-qmp-cmds.c',
2434bfe467SFabiano Rosas  'cortex-regs.c',
25abff1abfSPaolo Bonzini  'machine.c',
268ae08860SRichard Henderson  'ptw.c',
27abff1abfSPaolo Bonzini))
28abff1abfSPaolo Bonzini
29844a06bbSAlexander Grafsubdir('hvf')
30844a06bbSAlexander Graf
31f0984d40SFabiano Rosasif 'CONFIG_TCG' in config_all
32f0984d40SFabiano Rosas   subdir('tcg')
33a3ef070eSClaudio Fontanaelse
34a3ef070eSClaudio Fontana    arm_ss.add(files('tcg-stubs.c'))
35f0984d40SFabiano Rosasendif
36f0984d40SFabiano Rosas
37abff1abfSPaolo Bonzinitarget_arch += {'arm': arm_ss}
38*01c85e60SPhilippe Mathieu-Daudétarget_system_arch += {'arm': arm_system_ss}
39