]>
Commit | Line | Data |
---|---|---|
f05356f8 PMD |
1 | system_virtio_ss = ss.source_set() |
2 | system_virtio_ss.add(files('virtio-bus.c')) | |
3 | system_virtio_ss.add(when: 'CONFIG_VIRTIO_PCI', if_true: files('virtio-pci.c')) | |
4 | system_virtio_ss.add(when: 'CONFIG_VIRTIO_MMIO', if_true: files('virtio-mmio.c')) | |
5 | system_virtio_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('virtio-crypto.c')) | |
6 | system_virtio_ss.add(when: 'CONFIG_VHOST_VSOCK_COMMON', if_true: files('vhost-vsock-common.c')) | |
7 | system_virtio_ss.add(when: 'CONFIG_VIRTIO_IOMMU', if_true: files('virtio-iommu.c')) | |
8 | system_virtio_ss.add(when: 'CONFIG_VHOST_VDPA_DEV', if_true: files('vdpa-dev.c')) | |
be786d2f | 9 | |
74a45163 PMD |
10 | specific_virtio_ss = ss.source_set() |
11 | specific_virtio_ss.add(files('virtio.c')) | |
28b629ab | 12 | specific_virtio_ss.add(files('virtio-config-io.c', 'virtio-qmp.c')) |
43b6d7ee PB |
13 | |
14 | if have_vhost | |
f05356f8 | 15 | system_virtio_ss.add(files('vhost.c')) |
7a0903f7 | 16 | specific_virtio_ss.add(files('vhost-backend.c', 'vhost-iova-tree.c')) |
43b6d7ee | 17 | if have_vhost_user |
eee77809 | 18 | # fixme - this really should be generic |
74a45163 | 19 | specific_virtio_ss.add(files('vhost-user.c')) |
62759896 | 20 | system_virtio_ss.add(files('vhost-user-base.c')) |
233412bf AB |
21 | |
22 | # MMIO Stubs | |
eee77809 | 23 | system_virtio_ss.add(files('vhost-user-device.c')) |
5ba58758 | 24 | system_virtio_ss.add(when: 'CONFIG_VHOST_USER_GPIO', if_true: files('vhost-user-gpio.c')) |
a50616b5 | 25 | system_virtio_ss.add(when: 'CONFIG_VHOST_USER_I2C', if_true: files('vhost-user-i2c.c')) |
233412bf | 26 | system_virtio_ss.add(when: 'CONFIG_VHOST_USER_RNG', if_true: files('vhost-user-rng.c')) |
4ae0fc18 | 27 | system_virtio_ss.add(when: 'CONFIG_VHOST_USER_SND', if_true: files('vhost-user-snd.c')) |
87c7fb78 | 28 | system_virtio_ss.add(when: 'CONFIG_VHOST_USER_INPUT', if_true: files('vhost-user-input.c')) |
233412bf AB |
29 | |
30 | # PCI Stubs | |
eee77809 | 31 | system_virtio_ss.add(when: 'CONFIG_VIRTIO_PCI', if_true: files('vhost-user-device-pci.c')) |
5ba58758 AB |
32 | system_virtio_ss.add(when: ['CONFIG_VIRTIO_PCI', 'CONFIG_VHOST_USER_GPIO'], |
33 | if_true: files('vhost-user-gpio-pci.c')) | |
a50616b5 AB |
34 | system_virtio_ss.add(when: ['CONFIG_VIRTIO_PCI', 'CONFIG_VHOST_USER_I2C'], |
35 | if_true: files('vhost-user-i2c-pci.c')) | |
233412bf AB |
36 | system_virtio_ss.add(when: ['CONFIG_VIRTIO_PCI', 'CONFIG_VHOST_USER_RNG'], |
37 | if_true: files('vhost-user-rng-pci.c')) | |
4ae0fc18 MP |
38 | system_virtio_ss.add(when: ['CONFIG_VIRTIO_PCI', 'CONFIG_VHOST_USER_SND'], |
39 | if_true: files('vhost-user-snd-pci.c')) | |
87c7fb78 LY |
40 | system_virtio_ss.add(when: ['CONFIG_VIRTIO_PCI', 'CONFIG_VHOST_USER_INPUT'], |
41 | if_true: files('vhost-user-input-pci.c')) | |
43b6d7ee PB |
42 | endif |
43 | if have_vhost_vdpa | |
f05356f8 | 44 | system_virtio_ss.add(files('vhost-vdpa.c')) |
05632635 | 45 | specific_virtio_ss.add(files('vhost-shadow-virtqueue.c')) |
43b6d7ee PB |
46 | endif |
47 | else | |
f05356f8 | 48 | system_virtio_ss.add(files('vhost-stub.c')) |
43b6d7ee PB |
49 | endif |
50 | ||
74a45163 | 51 | specific_virtio_ss.add(when: 'CONFIG_VIRTIO_BALLOON', if_true: files('virtio-balloon.c')) |
74a45163 PMD |
52 | specific_virtio_ss.add(when: 'CONFIG_VHOST_USER_FS', if_true: files('vhost-user-fs.c')) |
53 | specific_virtio_ss.add(when: 'CONFIG_VIRTIO_PMEM', if_true: files('virtio-pmem.c')) | |
6df95629 PMD |
54 | specific_virtio_ss.add(when: 'CONFIG_VHOST_VSOCK', if_true: files('vhost-vsock.c')) |
55 | specific_virtio_ss.add(when: 'CONFIG_VHOST_USER_VSOCK', if_true: files('vhost-user-vsock.c')) | |
74a45163 | 56 | specific_virtio_ss.add(when: 'CONFIG_VIRTIO_RNG', if_true: files('virtio-rng.c')) |
74a45163 | 57 | specific_virtio_ss.add(when: 'CONFIG_VIRTIO_MEM', if_true: files('virtio-mem.c')) |
a5dab090 | 58 | specific_virtio_ss.add(when: 'CONFIG_VHOST_USER_SCMI', if_true: files('vhost-user-scmi.c')) |
c46b20cf | 59 | specific_virtio_ss.add(when: ['CONFIG_VIRTIO_PCI', 'CONFIG_VHOST_USER_SCMI'], if_true: files('vhost-user-scmi-pci.c')) |
be786d2f MAL |
60 | |
61 | virtio_pci_ss = ss.source_set() | |
62 | virtio_pci_ss.add(when: 'CONFIG_VHOST_VSOCK', if_true: files('vhost-vsock-pci.c')) | |
63 | virtio_pci_ss.add(when: 'CONFIG_VHOST_USER_VSOCK', if_true: files('vhost-user-vsock-pci.c')) | |
64 | virtio_pci_ss.add(when: 'CONFIG_VHOST_USER_BLK', if_true: files('vhost-user-blk-pci.c')) | |
be786d2f MAL |
65 | virtio_pci_ss.add(when: 'CONFIG_VHOST_USER_SCSI', if_true: files('vhost-user-scsi-pci.c')) |
66 | virtio_pci_ss.add(when: 'CONFIG_VHOST_SCSI', if_true: files('vhost-scsi-pci.c')) | |
10925d06 PB |
67 | virtio_pci_ss.add(when: 'CONFIG_VHOST_USER_FS', if_true: files('vhost-user-fs-pci.c')) |
68 | ||
69 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('virtio-crypto-pci.c')) | |
be786d2f MAL |
70 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_INPUT_HOST', if_true: files('virtio-input-host-pci.c')) |
71 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_INPUT', if_true: files('virtio-input-pci.c')) | |
72 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_RNG', if_true: files('virtio-rng-pci.c')) | |
73 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_BALLOON', if_true: files('virtio-balloon-pci.c')) | |
74 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_9P', if_true: files('virtio-9p-pci.c')) | |
75 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_SCSI', if_true: files('virtio-scsi-pci.c')) | |
76 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_BLK', if_true: files('virtio-blk-pci.c')) | |
77 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('virtio-net-pci.c')) | |
78 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_SERIAL', if_true: files('virtio-serial-pci.c')) | |
79 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_PMEM', if_true: files('virtio-pmem-pci.c')) | |
80 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_IOMMU', if_true: files('virtio-iommu-pci.c')) | |
81 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_MEM', if_true: files('virtio-mem-pci.c')) | |
fedda617 | 82 | virtio_pci_ss.add(when: 'CONFIG_VHOST_VDPA_DEV', if_true: files('vdpa-dev-pci.c')) |
18129c15 | 83 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_MD', if_true: files('virtio-md-pci.c')) |
be786d2f | 84 | |
74a45163 | 85 | specific_virtio_ss.add_all(when: 'CONFIG_VIRTIO_PCI', if_true: virtio_pci_ss) |
be786d2f | 86 | |
f05356f8 | 87 | system_ss.add_all(when: 'CONFIG_VIRTIO', if_true: system_virtio_ss) |
de6cd759 PMD |
88 | system_ss.add(when: 'CONFIG_VIRTIO', if_false: files('vhost-stub.c')) |
89 | system_ss.add(when: 'CONFIG_VIRTIO', if_false: files('virtio-stub.c')) | |
f2604d85 PB |
90 | system_ss.add(when: 'CONFIG_VIRTIO_MD', if_false: files('virtio-md-stubs.c')) |
91 | ||
de6cd759 | 92 | system_ss.add(files('virtio-hmp-cmds.c')) |
74a45163 PMD |
93 | |
94 | specific_ss.add_all(when: 'CONFIG_VIRTIO', if_true: specific_virtio_ss) | |
57ba8436 | 95 | system_ss.add(when: 'CONFIG_ACPI', if_true: files('virtio-acpi.c')) |