meson.build (9f0369efb0f2a200f18b1aacd2ef493e22da5351) meson.build (5fb52f6cc8f621f2e51d181d81401d14e4d45102)
1pci_ss = ss.source_set()
2pci_ss.add(files(
3 'msi.c',
4 'msix.c',
5 'pci.c',
6 'pci_bridge.c',
7 'pci_host.c',
8 'pcie_sriov.c',
9 'shpc.c',
10 'slotid_cap.c'
11))
12# The functions in these modules can be used by devices too. Since we
13# allow plugging PCIe devices into PCI buses, include them even if
14# CONFIG_PCI_EXPRESS=n.
15pci_ss.add(files('pcie.c', 'pcie_aer.c'))
1pci_ss = ss.source_set()
2pci_ss.add(files(
3 'msi.c',
4 'msix.c',
5 'pci.c',
6 'pci_bridge.c',
7 'pci_host.c',
8 'pcie_sriov.c',
9 'shpc.c',
10 'slotid_cap.c'
11))
12# The functions in these modules can be used by devices too. Since we
13# allow plugging PCIe devices into PCI buses, include them even if
14# CONFIG_PCI_EXPRESS=n.
15pci_ss.add(files('pcie.c', 'pcie_aer.c'))
16pci_ss.add(files('pcie_doe.c'))
16softmmu_ss.add(when: 'CONFIG_PCI_EXPRESS', if_true: files('pcie_port.c', 'pcie_host.c'))
17softmmu_ss.add_all(when: 'CONFIG_PCI', if_true: pci_ss)
18
19softmmu_ss.add(when: 'CONFIG_PCI', if_false: files('pci-stub.c'))
20softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('pci-stub.c'))
17softmmu_ss.add(when: 'CONFIG_PCI_EXPRESS', if_true: files('pcie_port.c', 'pcie_host.c'))
18softmmu_ss.add_all(when: 'CONFIG_PCI', if_true: pci_ss)
19
20softmmu_ss.add(when: 'CONFIG_PCI', if_false: files('pci-stub.c'))
21softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('pci-stub.c'))