meson: convert hw/pci-host
[qemu/ar7.git] / hw / pci-host / meson.build
blobcd52f6ff1cb6c78abe6ca9ef1eb57fa6d7b9f73a
1 pci_ss = ss.source_set()
2 pci_ss.add(when: 'CONFIG_PAM', if_true: files('pam.c'))
3 pci_ss.add(when: 'CONFIG_PCI_BONITO', if_true: files('bonito.c'))
4 pci_ss.add(when: 'CONFIG_PCI_EXPRESS_DESIGNWARE', if_true: files('designware.c'))
5 pci_ss.add(when: 'CONFIG_PCI_EXPRESS_GENERIC_BRIDGE', if_true: files('gpex.c'))
6 pci_ss.add(when: 'CONFIG_PCI_EXPRESS_Q35', if_true: files('q35.c'))
7 pci_ss.add(when: 'CONFIG_PCI_EXPRESS_XILINX', if_true: files('xilinx-pcie.c'))
8 pci_ss.add(when: 'CONFIG_PCI_I440FX', if_true: files('i440fx.c'))
9 pci_ss.add(when: 'CONFIG_PCI_SABRE', if_true: files('sabre.c'))
10 pci_ss.add(when: 'CONFIG_XEN_IGD_PASSTHROUGH', if_true: files('xen_igd_pt.c'))
12 # PPC devices
13 pci_ss.add(when: 'CONFIG_PREP_PCI', if_true: files('prep.c'))
14 pci_ss.add(when: 'CONFIG_GRACKLE_PCI', if_true: files('grackle.c'))
15 # NewWorld PowerMac
16 pci_ss.add(when: 'CONFIG_UNIN_PCI', if_true: files('uninorth.c'))
17 # PowerPC E500 boards
18 pci_ss.add(when: 'CONFIG_PPCE500_PCI', if_true: files('ppce500.c'))
20 # ARM devices
21 pci_ss.add(when: 'CONFIG_VERSATILE_PCI', if_true: files('versatile.c'))
23 softmmu_ss.add_all(when: 'CONFIG_PCI', if_true: pci_ss)
25 specific_ss.add(when: 'CONFIG_POWERNV', if_true: files(
26   'pnv_phb3.c',
27   'pnv_phb3_msi.c',
28   'pnv_phb3_pbcq.c',
29   'pnv_phb4.c',
30   'pnv_phb4_pec.c'