xref: /openbmc/qemu/hw/core/meson.build (revision 5ade579b)
1# core qdev-related obj files, also used by *-user and unit tests
2hwcore_files = files(
3  'bus.c',
4  'fw-path-provider.c',
5  'hotplug.c',
6  'qdev-properties.c',
7  'qdev.c',
8  'reset.c',
9  'resettable.c',
10  'vmstate-if.c',
11  # irq.c needed for qdev GPIO handling:
12  'irq.c',
13  'clock.c',
14  'qdev-clock.c',
15)
16
17common_ss.add(files('cpu.c'))
18common_ss.add(when: 'CONFIG_FITLOADER', if_true: files('loader-fit.c'))
19common_ss.add(when: 'CONFIG_GENERIC_LOADER', if_true: files('generic-loader.c'))
20common_ss.add(when: 'CONFIG_OR_IRQ', if_true: files('or-irq.c'))
21common_ss.add(when: 'CONFIG_PLATFORM_BUS', if_true: files('platform-bus.c'))
22common_ss.add(when: 'CONFIG_PTIMER', if_true: files('ptimer.c'))
23common_ss.add(when: 'CONFIG_REGISTER', if_true: files('register.c'))
24common_ss.add(when: 'CONFIG_SPLIT_IRQ', if_true: files('split-irq.c'))
25common_ss.add(when: 'CONFIG_XILINX_AXI', if_true: files('stream.c'))
26
27softmmu_ss.add(files(
28  'loader.c',
29  'machine-hmp-cmds.c',
30  'machine.c',
31  'nmi.c',
32  'null-machine.c',
33  'qdev-fw.c',
34  'qdev-properties-system.c',
35  'sysbus.c',
36  'vm-change-state-handler.c',
37  'clock-vmstate.c',
38))
39
40specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: files(
41  'machine-qmp-cmds.c',
42  'numa.c',
43))
44