master
build 24 lines 650 Bytes
Raw
1 pci_ss = ss.source_set()
2 pci_ss.add(files(
3 'msi.c',
4 'msix.c',
5 'pci.c',
6 'pci_bridge.c',
7 'pci_host.c',
8 'pci-qmp-cmds.c',
9 'pcie_sriov.c',
10 'shpc.c',
11 'slotid_cap.c'
12 ))
13 if have_hmp
14 pci_ss.add(files('pci-hmp-cmds.c'))
15 endif
16 # The functions in these modules can be used by devices too. Since we
17 # allow plugging PCIe devices into PCI buses, include them even if
18 # CONFIG_PCI_EXPRESS=n.
19 pci_ss.add(files('pcie.c', 'pcie_aer.c'))
20 pci_ss.add(files('pcie_doe.c'))
21 system_ss.add(when: 'CONFIG_PCI_EXPRESS', if_true: files('pcie_port.c', 'pcie_host.c'))
22 system_ss.add_all(when: 'CONFIG_PCI', if_true: pci_ss)
23
24 stub_ss.add(files('pci-stub.c'))