mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 17:53:56 -06:00
meson: convert hw/pci
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
ea7e9b5730
commit
4a32844433
4 changed files with 20 additions and 15 deletions
|
@ -1,14 +0,0 @@
|
|||
common-obj-$(CONFIG_PCI) += pci.o pci_bridge.o
|
||||
common-obj-$(CONFIG_PCI) += msix.o msi.o
|
||||
common-obj-$(CONFIG_PCI) += shpc.o
|
||||
common-obj-$(CONFIG_PCI) += slotid_cap.o
|
||||
common-obj-$(CONFIG_PCI) += pci_host.o
|
||||
|
||||
# The functions in these modules can be used by devices too. Since we
|
||||
# allow plugging PCIe devices into PCI buses, include them even if
|
||||
# CONFIG_PCI_EXPRESS=n.
|
||||
common-obj-$(CONFIG_PCI) += pcie.o pcie_aer.o
|
||||
common-obj-$(CONFIG_PCI_EXPRESS) += pcie_port.o pcie_host.o
|
||||
|
||||
common-obj-$(call lnot,$(CONFIG_PCI)) += pci-stub.o
|
||||
common-obj-$(CONFIG_ALL) += pci-stub.o
|
19
hw/pci/meson.build
Normal file
19
hw/pci/meson.build
Normal file
|
@ -0,0 +1,19 @@
|
|||
pci_ss = ss.source_set()
|
||||
pci_ss.add(files(
|
||||
'msi.c',
|
||||
'msix.c',
|
||||
'pci.c',
|
||||
'pci_bridge.c',
|
||||
'pci_host.c',
|
||||
'shpc.c',
|
||||
'slotid_cap.c'
|
||||
))
|
||||
# The functions in these modules can be used by devices too. Since we
|
||||
# allow plugging PCIe devices into PCI buses, include them even if
|
||||
# CONFIG_PCI_EXPRESS=n.
|
||||
pci_ss.add(files('pcie.c', 'pcie_aer.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_PCI_EXPRESS', if_true: files('pcie_port.c', 'pcie_host.c'))
|
||||
softmmu_ss.add_all(when: 'CONFIG_PCI', if_true: pci_ss)
|
||||
|
||||
softmmu_ss.add(when: 'CONFIG_PCI', if_false: files('pci-stub.c'))
|
||||
softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('pci-stub.c'))
|
Loading…
Add table
Add a link
Reference in a new issue