diff options
author | Marc-André Lureau <marcandre.lureau@redhat.com> | 2019-08-16 17:32:24 +0400 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-08-21 06:30:28 -0400 |
commit | 4a328444333dd917ae17241f433085a64ee17d8e (patch) | |
tree | f1ec8394a3298543ed7c8953e339b4a4baf4e0fe /hw/pci/meson.build | |
parent | ea7e9b5730dbcce6fa1bc150342caf43920f2db9 (diff) | |
download | qemu-4a328444333dd917ae17241f433085a64ee17d8e.zip qemu-4a328444333dd917ae17241f433085a64ee17d8e.tar.gz qemu-4a328444333dd917ae17241f433085a64ee17d8e.tar.bz2 |
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>
Diffstat (limited to 'hw/pci/meson.build')
-rw-r--r-- | hw/pci/meson.build | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/hw/pci/meson.build b/hw/pci/meson.build new file mode 100644 index 0000000..5c4bbac --- /dev/null +++ b/hw/pci/meson.build @@ -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')) |