meson.build 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # core qdev-related obj files, also used by *-user and unit tests
  2. hwcore_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. ))
  14. if have_system
  15. hwcore_ss.add(files(
  16. 'hotplug.c',
  17. 'qdev-hotplug.c',
  18. ))
  19. else
  20. hwcore_ss.add(files(
  21. 'hotplug-stubs.c',
  22. ))
  23. endif
  24. common_ss.add(files('cpu-common.c'))
  25. common_ss.add(files('machine-smp.c'))
  26. softmmu_ss.add(when: 'CONFIG_FITLOADER', if_true: files('loader-fit.c'))
  27. softmmu_ss.add(when: 'CONFIG_GENERIC_LOADER', if_true: files('generic-loader.c'))
  28. softmmu_ss.add(when: ['CONFIG_GUEST_LOADER', fdt], if_true: files('guest-loader.c'))
  29. softmmu_ss.add(when: 'CONFIG_OR_IRQ', if_true: files('or-irq.c'))
  30. softmmu_ss.add(when: 'CONFIG_PLATFORM_BUS', if_true: files('platform-bus.c'))
  31. softmmu_ss.add(when: 'CONFIG_PTIMER', if_true: files('ptimer.c'))
  32. softmmu_ss.add(when: 'CONFIG_REGISTER', if_true: files('register.c'))
  33. softmmu_ss.add(when: 'CONFIG_SPLIT_IRQ', if_true: files('split-irq.c'))
  34. softmmu_ss.add(when: 'CONFIG_XILINX_AXI', if_true: files('stream.c'))
  35. softmmu_ss.add(when: 'CONFIG_PLATFORM_BUS', if_true: files('sysbus-fdt.c'))
  36. softmmu_ss.add(files(
  37. 'cpu-sysemu.c',
  38. 'fw-path-provider.c',
  39. 'gpio.c',
  40. 'loader.c',
  41. 'machine-hmp-cmds.c',
  42. 'machine.c',
  43. 'nmi.c',
  44. 'null-machine.c',
  45. 'qdev-fw.c',
  46. 'qdev-properties-system.c',
  47. 'sysbus.c',
  48. 'vm-change-state-handler.c',
  49. 'clock-vmstate.c',
  50. ))
  51. specific_ss.add(when: 'CONFIG_SOFTMMU', if_true: files(
  52. 'machine-qmp-cmds.c',
  53. 'numa.c',
  54. ))