hw/dma: Add SiFive platform DMA controller emulation
[qemu/ar7.git] / hw / core / meson.build
blobfc91f9807589e8670efb93eec3215fdf7e89e7f3
1 # core qdev-related obj files, also used by *-user and unit tests
2 hwcore_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',
17 libhwcore = static_library('hwcore', sources: hwcore_files + genh,
18                            name_suffix: 'fa',
19                            build_by_default: false)
20 hwcore = declare_dependency(link_whole: libhwcore)
21 common_ss.add(hwcore)
23 common_ss.add(files('cpu.c'))
24 common_ss.add(when: 'CONFIG_FITLOADER', if_true: files('loader-fit.c'))
25 common_ss.add(when: 'CONFIG_GENERIC_LOADER', if_true: files('generic-loader.c'))
26 common_ss.add(when: 'CONFIG_OR_IRQ', if_true: files('or-irq.c'))
27 common_ss.add(when: 'CONFIG_PLATFORM_BUS', if_true: files('platform-bus.c'))
28 common_ss.add(when: 'CONFIG_PTIMER', if_true: files('ptimer.c'))
29 common_ss.add(when: 'CONFIG_REGISTER', if_true: files('register.c'))
30 common_ss.add(when: 'CONFIG_SPLIT_IRQ', if_true: files('split-irq.c'))
31 common_ss.add(when: 'CONFIG_XILINX_AXI', if_true: files('stream.c'))
33 softmmu_ss.add(files(
34   'loader.c',
35   'machine-hmp-cmds.c',
36   'machine.c',
37   'nmi.c',
38   'null-machine.c',
39   'qdev-fw.c',
40   'qdev-properties-system.c',
41   'sysbus.c',
42   'vm-change-state-handler.c',
43   'clock-vmstate.c',
46 specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: files(
47   'machine-qmp-cmds.c',
48   'numa.c',