xref: /openbmc/qemu/hw/pci/meson.build (revision 05470c3979d5485003e129ff4b0c2ef98af91d86)
14a328444SMarc-André Lureaupci_ss = ss.source_set()
24a328444SMarc-André Lureaupci_ss.add(files(
34a328444SMarc-André Lureau  'msi.c',
44a328444SMarc-André Lureau  'msix.c',
54a328444SMarc-André Lureau  'pci.c',
64a328444SMarc-André Lureau  'pci_bridge.c',
74a328444SMarc-André Lureau  'pci_host.c',
8c2c13974SMarkus Armbruster  'pci-hmp-cmds.c',
9987b73b3SMarkus Armbruster  'pci-qmp-cmds.c',
107c0fa8dfSKnut Omang  'pcie_sriov.c',
114a328444SMarc-André Lureau  'shpc.c',
124a328444SMarc-André Lureau  'slotid_cap.c'
134a328444SMarc-André Lureau))
144a328444SMarc-André Lureau# The functions in these modules can be used by devices too.  Since we
154a328444SMarc-André Lureau# allow plugging PCIe devices into PCI buses, include them even if
164a328444SMarc-André Lureau# CONFIG_PCI_EXPRESS=n.
174a328444SMarc-André Lureaupci_ss.add(files('pcie.c', 'pcie_aer.c'))
185fb52f6cSHuai-Cheng Kuopci_ss.add(files('pcie_doe.c'))
19*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_PCI_EXPRESS', if_true: files('pcie_port.c', 'pcie_host.c'))
20*de6cd759SPhilippe Mathieu-Daudésystem_ss.add_all(when: 'CONFIG_PCI', if_true: pci_ss)
214a328444SMarc-André Lureau
22*de6cd759SPhilippe Mathieu-Daudésystem_ss.add(when: 'CONFIG_PCI', if_false: files('pci-stub.c'))
23