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