meson.build 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  1. softmmu_ss.add(when: 'CONFIG_APPLESMC', if_true: files('applesmc.c'))
  2. softmmu_ss.add(when: 'CONFIG_EDU', if_true: files('edu.c'))
  3. softmmu_ss.add(when: 'CONFIG_FW_CFG_DMA', if_true: files('vmcoreinfo.c'))
  4. softmmu_ss.add(when: 'CONFIG_ISA_DEBUG', if_true: files('debugexit.c'))
  5. softmmu_ss.add(when: 'CONFIG_ISA_TESTDEV', if_true: files('pc-testdev.c'))
  6. softmmu_ss.add(when: 'CONFIG_PCA9552', if_true: files('pca9552.c'))
  7. softmmu_ss.add(when: 'CONFIG_PCI_TESTDEV', if_true: files('pci-testdev.c'))
  8. softmmu_ss.add(when: 'CONFIG_UNIMP', if_true: files('unimp.c'))
  9. softmmu_ss.add(when: 'CONFIG_EMPTY_SLOT', if_true: files('empty_slot.c'))
  10. softmmu_ss.add(when: 'CONFIG_LED', if_true: files('led.c'))
  11. softmmu_ss.add(when: 'CONFIG_PVPANIC_COMMON', if_true: files('pvpanic.c'))
  12. # ARM devices
  13. softmmu_ss.add(when: 'CONFIG_PL310', if_true: files('arm_l2x0.c'))
  14. softmmu_ss.add(when: 'CONFIG_INTEGRATOR_DEBUG', if_true: files('arm_integrator_debug.c'))
  15. softmmu_ss.add(when: 'CONFIG_A9SCU', if_true: files('a9scu.c'))
  16. softmmu_ss.add(when: 'CONFIG_ARM11SCU', if_true: files('arm11scu.c'))
  17. softmmu_ss.add(when: 'CONFIG_ARM_V7M', if_true: files('armv7m_ras.c'))
  18. # Mac devices
  19. softmmu_ss.add(when: 'CONFIG_MOS6522', if_true: files('mos6522.c'))
  20. # virt devices
  21. softmmu_ss.add(when: 'CONFIG_VIRT_CTRL', if_true: files('virt_ctrl.c'))
  22. # RISC-V devices
  23. softmmu_ss.add(when: 'CONFIG_MCHP_PFSOC_DMC', if_true: files('mchp_pfsoc_dmc.c'))
  24. softmmu_ss.add(when: 'CONFIG_MCHP_PFSOC_IOSCB', if_true: files('mchp_pfsoc_ioscb.c'))
  25. softmmu_ss.add(when: 'CONFIG_MCHP_PFSOC_SYSREG', if_true: files('mchp_pfsoc_sysreg.c'))
  26. softmmu_ss.add(when: 'CONFIG_SIFIVE_TEST', if_true: files('sifive_test.c'))
  27. softmmu_ss.add(when: 'CONFIG_SIFIVE_E_PRCI', if_true: files('sifive_e_prci.c'))
  28. softmmu_ss.add(when: 'CONFIG_SIFIVE_U_OTP', if_true: files('sifive_u_otp.c'))
  29. softmmu_ss.add(when: 'CONFIG_SIFIVE_U_PRCI', if_true: files('sifive_u_prci.c'))
  30. subdir('macio')
  31. softmmu_ss.add(when: 'CONFIG_IVSHMEM_DEVICE', if_true: files('ivshmem.c'))
  32. softmmu_ss.add(when: 'CONFIG_ALLWINNER_A10_CCM', if_true: files('allwinner-a10-ccm.c'))
  33. softmmu_ss.add(when: 'CONFIG_ALLWINNER_A10_DRAMC', if_true: files('allwinner-a10-dramc.c'))
  34. softmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-ccu.c'))
  35. specific_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-cpucfg.c'))
  36. softmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-dramc.c'))
  37. softmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-h3-sysctrl.c'))
  38. softmmu_ss.add(when: 'CONFIG_ALLWINNER_H3', if_true: files('allwinner-sid.c'))
  39. softmmu_ss.add(when: 'CONFIG_AXP209_PMU', if_true: files('axp209.c'))
  40. softmmu_ss.add(when: 'CONFIG_REALVIEW', if_true: files('arm_sysctl.c'))
  41. softmmu_ss.add(when: 'CONFIG_NSERIES', if_true: files('cbus.c'))
  42. softmmu_ss.add(when: 'CONFIG_ECCMEMCTL', if_true: files('eccmemctl.c'))
  43. softmmu_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_pmu.c', 'exynos4210_clk.c', 'exynos4210_rng.c'))
  44. softmmu_ss.add(when: 'CONFIG_IMX', if_true: files(
  45. 'imx25_ccm.c',
  46. 'imx31_ccm.c',
  47. 'imx6_ccm.c',
  48. 'imx6_src.c',
  49. 'imx6ul_ccm.c',
  50. 'imx7_ccm.c',
  51. 'imx7_gpr.c',
  52. 'imx7_snvs.c',
  53. 'imx_ccm.c',
  54. 'imx_rngc.c',
  55. ))
  56. softmmu_ss.add(when: 'CONFIG_MAINSTONE', if_true: files('mst_fpga.c'))
  57. softmmu_ss.add(when: 'CONFIG_NPCM7XX', if_true: files(
  58. 'npcm7xx_clk.c',
  59. 'npcm7xx_gcr.c',
  60. 'npcm7xx_mft.c',
  61. 'npcm7xx_pwm.c',
  62. 'npcm7xx_rng.c',
  63. ))
  64. softmmu_ss.add(when: 'CONFIG_OMAP', if_true: files(
  65. 'omap_clk.c',
  66. 'omap_gpmc.c',
  67. 'omap_l4.c',
  68. 'omap_sdrc.c',
  69. 'omap_tap.c',
  70. ))
  71. softmmu_ss.add(when: 'CONFIG_RASPI', if_true: files(
  72. 'bcm2835_mbox.c',
  73. 'bcm2835_mphi.c',
  74. 'bcm2835_property.c',
  75. 'bcm2835_rng.c',
  76. 'bcm2835_thermal.c',
  77. 'bcm2835_cprman.c',
  78. 'bcm2835_powermgt.c',
  79. ))
  80. softmmu_ss.add(when: 'CONFIG_SLAVIO', if_true: files('slavio_misc.c'))
  81. softmmu_ss.add(when: 'CONFIG_ZYNQ', if_true: files('zynq_slcr.c'))
  82. softmmu_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx-zynqmp-crf.c'))
  83. softmmu_ss.add(when: 'CONFIG_XLNX_ZYNQMP_ARM', if_true: files('xlnx-zynqmp-apu-ctrl.c'))
  84. specific_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files('xlnx-versal-crl.c'))
  85. softmmu_ss.add(when: 'CONFIG_XLNX_VERSAL', if_true: files(
  86. 'xlnx-versal-xramc.c',
  87. 'xlnx-versal-pmc-iou-slcr.c',
  88. ))
  89. softmmu_ss.add(when: 'CONFIG_STM32F2XX_SYSCFG', if_true: files('stm32f2xx_syscfg.c'))
  90. softmmu_ss.add(when: 'CONFIG_STM32F4XX_SYSCFG', if_true: files('stm32f4xx_syscfg.c'))
  91. softmmu_ss.add(when: 'CONFIG_STM32F4XX_EXTI', if_true: files('stm32f4xx_exti.c'))
  92. softmmu_ss.add(when: 'CONFIG_MPS2_FPGAIO', if_true: files('mps2-fpgaio.c'))
  93. softmmu_ss.add(when: 'CONFIG_MPS2_SCC', if_true: files('mps2-scc.c'))
  94. softmmu_ss.add(when: 'CONFIG_TZ_MPC', if_true: files('tz-mpc.c'))
  95. softmmu_ss.add(when: 'CONFIG_TZ_MSC', if_true: files('tz-msc.c'))
  96. softmmu_ss.add(when: 'CONFIG_TZ_PPC', if_true: files('tz-ppc.c'))
  97. softmmu_ss.add(when: 'CONFIG_IOTKIT_SECCTL', if_true: files('iotkit-secctl.c'))
  98. softmmu_ss.add(when: 'CONFIG_IOTKIT_SYSCTL', if_true: files('iotkit-sysctl.c'))
  99. softmmu_ss.add(when: 'CONFIG_IOTKIT_SYSINFO', if_true: files('iotkit-sysinfo.c'))
  100. softmmu_ss.add(when: 'CONFIG_ARMSSE_CPU_PWRCTRL', if_true: files('armsse-cpu-pwrctrl.c'))
  101. softmmu_ss.add(when: 'CONFIG_ARMSSE_CPUID', if_true: files('armsse-cpuid.c'))
  102. softmmu_ss.add(when: 'CONFIG_ARMSSE_MHU', if_true: files('armsse-mhu.c'))
  103. softmmu_ss.add(when: 'CONFIG_PVPANIC_ISA', if_true: files('pvpanic-isa.c'))
  104. softmmu_ss.add(when: 'CONFIG_PVPANIC_PCI', if_true: files('pvpanic-pci.c'))
  105. softmmu_ss.add(when: 'CONFIG_AUX', if_true: files('auxbus.c'))
  106. softmmu_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files(
  107. 'aspeed_hace.c',
  108. 'aspeed_i3c.c',
  109. 'aspeed_lpc.c',
  110. 'aspeed_scu.c',
  111. 'aspeed_sbc.c',
  112. 'aspeed_sdmc.c',
  113. 'aspeed_xdma.c',
  114. 'aspeed_peci.c'))
  115. softmmu_ss.add(when: 'CONFIG_MSF2', if_true: files('msf2-sysreg.c'))
  116. softmmu_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('nrf51_rng.c'))
  117. softmmu_ss.add(when: 'CONFIG_GRLIB', if_true: files('grlib_ahb_apb_pnp.c'))
  118. softmmu_ss.add(when: 'CONFIG_I2C', if_true: files('i2c-echo.c'))
  119. specific_ss.add(when: 'CONFIG_AVR_POWER', if_true: files('avr_power.c'))
  120. specific_ss.add(when: 'CONFIG_MAC_VIA', if_true: files('mac_via.c'))
  121. specific_ss.add(when: 'CONFIG_MIPS_CPS', if_true: files('mips_cmgcr.c', 'mips_cpc.c'))
  122. specific_ss.add(when: 'CONFIG_MIPS_ITU', if_true: files('mips_itu.c'))
  123. softmmu_ss.add(when: 'CONFIG_SBSA_REF', if_true: files('sbsa_ec.c'))
  124. # HPPA devices
  125. softmmu_ss.add(when: 'CONFIG_LASI', if_true: files('lasi.c'))