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