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