xref: /openbmc/qemu/hw/ppc/meson.build (revision c700d068)
1ppc_ss = ss.source_set()
2ppc_ss.add(files(
3  'ppc.c',
4  'ppc_booke.c',
5))
6ppc_ss.add(when: 'CONFIG_FDT_PPC', if_true: files('fdt.c'))
7ppc_ss.add(when: 'CONFIG_FW_CFG_PPC', if_true: files('fw_cfg.c'))
8
9# IBM pSeries (sPAPR)
10ppc_ss.add(when: 'CONFIG_PSERIES', if_true: files(
11  'spapr.c',
12  'spapr_caps.c',
13  'spapr_vio.c',
14  'spapr_events.c',
15  'spapr_hcall.c',
16  'spapr_nested.c',
17  'spapr_iommu.c',
18  'spapr_rtas.c',
19  'spapr_pci.c',
20  'spapr_rtc.c',
21  'spapr_drc.c',
22  'spapr_cpu_core.c',
23  'spapr_ovec.c',
24  'spapr_irq.c',
25  'spapr_tpm_proxy.c',
26  'spapr_nvdimm.c',
27  'spapr_rtas_ddw.c',
28  'spapr_numa.c',
29  'pef.c',
30))
31ppc_ss.add(when: ['CONFIG_PSERIES', 'CONFIG_TCG'], if_true: files(
32  'spapr_vhyp_mmu.c',
33))
34ppc_ss.add(when: 'CONFIG_SPAPR_RNG', if_true: files('spapr_rng.c'))
35if host_os == 'linux'
36  ppc_ss.add(when: 'CONFIG_PSERIES', if_true: files(
37    'spapr_pci_vfio.c',
38  ))
39endif
40
41# IBM PowerNV
42ppc_ss.add(when: 'CONFIG_POWERNV', if_true: files(
43  'pnv.c',
44  'pnv_xscom.c',
45  'pnv_adu.c',
46  'pnv_core.c',
47  'pnv_i2c.c',
48  'pnv_lpc.c',
49  'pnv_psi.c',
50  'pnv_chiptod.c',
51  'pnv_occ.c',
52  'pnv_sbe.c',
53  'pnv_bmc.c',
54  'pnv_homer.c',
55  'pnv_pnor.c',
56  'pnv_nest_pervasive.c',
57  'pnv_n1_chiplet.c',
58))
59# PowerPC 4xx boards
60ppc_ss.add(when: 'CONFIG_PPC405', if_true: files(
61  'ppc405_boards.c',
62  'ppc405_uc.c'))
63ppc_ss.add(when: 'CONFIG_PPC440', if_true: files(
64  'ppc440_bamboo.c',
65  'ppc440_uc.c'))
66ppc_ss.add(when: 'CONFIG_PPC4XX', if_true: files(
67  'ppc4xx_devs.c',
68  'ppc4xx_sdram.c'))
69ppc_ss.add(when: 'CONFIG_SAM460EX', if_true: files('sam460ex.c'))
70# PReP
71ppc_ss.add(when: 'CONFIG_PREP', if_true: files('prep.c'))
72ppc_ss.add(when: 'CONFIG_PREP', if_true: files('prep_systemio.c'))
73ppc_ss.add(when: 'CONFIG_RS6000_MC', if_true: files('rs6000_mc.c'))
74# OldWorld PowerMac
75ppc_ss.add(when: 'CONFIG_MAC_OLDWORLD', if_true: files('mac_oldworld.c'))
76# NewWorld PowerMac
77ppc_ss.add(when: 'CONFIG_MAC_NEWWORLD', if_true: files('mac_newworld.c'))
78# e500
79ppc_ss.add(when: 'CONFIG_E500PLAT', if_true: files('e500plat.c'))
80ppc_ss.add(when: 'CONFIG_MPC8544DS', if_true: files('mpc8544ds.c'))
81ppc_ss.add(when: 'CONFIG_E500', if_true: files(
82  'e500.c',
83  'mpc8544_guts.c',
84  'ppce500_spin.c'
85))
86# PowerPC 440 Xilinx ML507 reference board.
87ppc_ss.add(when: 'CONFIG_VIRTEX', if_true: files('virtex_ml507.c'))
88# AmigaOne
89ppc_ss.add(when: 'CONFIG_AMIGAONE', if_true: files('amigaone.c'))
90# Pegasos2
91ppc_ss.add(when: 'CONFIG_PEGASOS2', if_true: files('pegasos2.c'))
92
93ppc_ss.add(when: 'CONFIG_VOF', if_true: files('vof.c'))
94ppc_ss.add(when: ['CONFIG_VOF', 'CONFIG_PSERIES'], if_true: files('spapr_vof.c'))
95
96hw_arch += {'ppc': ppc_ss}
97