]>
Commit | Line | Data |
---|---|---|
be786d2f MAL |
1 | softmmu_virtio_ss = ss.source_set() |
2 | softmmu_virtio_ss.add(files('virtio-bus.c')) | |
3 | softmmu_virtio_ss.add(when: 'CONFIG_VIRTIO_PCI', if_true: files('virtio-pci.c')) | |
4 | softmmu_virtio_ss.add(when: 'CONFIG_VIRTIO_MMIO', if_true: files('virtio-mmio.c')) | |
be786d2f | 5 | |
74a45163 PMD |
6 | specific_virtio_ss = ss.source_set() |
7 | specific_virtio_ss.add(files('virtio.c')) | |
28b629ab | 8 | specific_virtio_ss.add(files('virtio-config-io.c', 'virtio-qmp.c')) |
43b6d7ee PB |
9 | |
10 | if have_vhost | |
74a45163 | 11 | specific_virtio_ss.add(files('vhost.c', 'vhost-backend.c', 'vhost-iova-tree.c')) |
43b6d7ee | 12 | if have_vhost_user |
74a45163 | 13 | specific_virtio_ss.add(files('vhost-user.c')) |
43b6d7ee PB |
14 | endif |
15 | if have_vhost_vdpa | |
74a45163 | 16 | specific_virtio_ss.add(files('vhost-vdpa.c', 'vhost-shadow-virtqueue.c')) |
43b6d7ee PB |
17 | endif |
18 | else | |
19 | softmmu_virtio_ss.add(files('vhost-stub.c')) | |
20 | endif | |
21 | ||
74a45163 PMD |
22 | specific_virtio_ss.add(when: 'CONFIG_VIRTIO_BALLOON', if_true: files('virtio-balloon.c')) |
23 | specific_virtio_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('virtio-crypto.c')) | |
24 | specific_virtio_ss.add(when: 'CONFIG_VHOST_USER_FS', if_true: files('vhost-user-fs.c')) | |
25 | specific_virtio_ss.add(when: 'CONFIG_VIRTIO_PMEM', if_true: files('virtio-pmem.c')) | |
26 | specific_virtio_ss.add(when: 'CONFIG_VHOST_VSOCK', if_true: files('vhost-vsock.c', 'vhost-vsock-common.c')) | |
27 | specific_virtio_ss.add(when: 'CONFIG_VHOST_USER_VSOCK', if_true: files('vhost-user-vsock.c', 'vhost-vsock-common.c')) | |
28 | specific_virtio_ss.add(when: 'CONFIG_VIRTIO_RNG', if_true: files('virtio-rng.c')) | |
29 | specific_virtio_ss.add(when: 'CONFIG_VIRTIO_IOMMU', if_true: files('virtio-iommu.c')) | |
30 | specific_virtio_ss.add(when: 'CONFIG_VIRTIO_MEM', if_true: files('virtio-mem.c')) | |
31 | specific_virtio_ss.add(when: 'CONFIG_VHOST_USER_I2C', if_true: files('vhost-user-i2c.c')) | |
32 | specific_virtio_ss.add(when: 'CONFIG_VHOST_USER_RNG', if_true: files('vhost-user-rng.c')) | |
33 | specific_virtio_ss.add(when: 'CONFIG_VHOST_USER_GPIO', if_true: files('vhost-user-gpio.c')) | |
34 | specific_virtio_ss.add(when: ['CONFIG_VIRTIO_PCI', 'CONFIG_VHOST_USER_GPIO'], if_true: files('vhost-user-gpio-pci.c')) | |
35 | specific_virtio_ss.add(when: 'CONFIG_VHOST_VDPA_DEV', if_true: files('vdpa-dev.c')) | |
be786d2f MAL |
36 | |
37 | virtio_pci_ss = ss.source_set() | |
38 | virtio_pci_ss.add(when: 'CONFIG_VHOST_VSOCK', if_true: files('vhost-vsock-pci.c')) | |
39 | virtio_pci_ss.add(when: 'CONFIG_VHOST_USER_VSOCK', if_true: files('vhost-user-vsock-pci.c')) | |
40 | virtio_pci_ss.add(when: 'CONFIG_VHOST_USER_BLK', if_true: files('vhost-user-blk-pci.c')) | |
10925d06 | 41 | virtio_pci_ss.add(when: 'CONFIG_VHOST_USER_I2C', if_true: files('vhost-user-i2c-pci.c')) |
be786d2f | 42 | virtio_pci_ss.add(when: 'CONFIG_VHOST_USER_INPUT', if_true: files('vhost-user-input-pci.c')) |
10925d06 | 43 | virtio_pci_ss.add(when: 'CONFIG_VHOST_USER_RNG', if_true: files('vhost-user-rng-pci.c')) |
be786d2f MAL |
44 | virtio_pci_ss.add(when: 'CONFIG_VHOST_USER_SCSI', if_true: files('vhost-user-scsi-pci.c')) |
45 | virtio_pci_ss.add(when: 'CONFIG_VHOST_SCSI', if_true: files('vhost-scsi-pci.c')) | |
10925d06 PB |
46 | virtio_pci_ss.add(when: 'CONFIG_VHOST_USER_FS', if_true: files('vhost-user-fs-pci.c')) |
47 | ||
48 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_CRYPTO', if_true: files('virtio-crypto-pci.c')) | |
be786d2f MAL |
49 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_INPUT_HOST', if_true: files('virtio-input-host-pci.c')) |
50 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_INPUT', if_true: files('virtio-input-pci.c')) | |
51 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_RNG', if_true: files('virtio-rng-pci.c')) | |
52 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_BALLOON', if_true: files('virtio-balloon-pci.c')) | |
53 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_9P', if_true: files('virtio-9p-pci.c')) | |
54 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_SCSI', if_true: files('virtio-scsi-pci.c')) | |
55 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_BLK', if_true: files('virtio-blk-pci.c')) | |
56 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_NET', if_true: files('virtio-net-pci.c')) | |
57 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_SERIAL', if_true: files('virtio-serial-pci.c')) | |
58 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_PMEM', if_true: files('virtio-pmem-pci.c')) | |
59 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_IOMMU', if_true: files('virtio-iommu-pci.c')) | |
60 | virtio_pci_ss.add(when: 'CONFIG_VIRTIO_MEM', if_true: files('virtio-mem-pci.c')) | |
fedda617 | 61 | virtio_pci_ss.add(when: 'CONFIG_VHOST_VDPA_DEV', if_true: files('vdpa-dev-pci.c')) |
be786d2f | 62 | |
74a45163 | 63 | specific_virtio_ss.add_all(when: 'CONFIG_VIRTIO_PCI', if_true: virtio_pci_ss) |
be786d2f | 64 | |
43b6d7ee PB |
65 | softmmu_ss.add_all(when: 'CONFIG_VIRTIO', if_true: softmmu_virtio_ss) |
66 | softmmu_ss.add(when: 'CONFIG_VIRTIO', if_false: files('vhost-stub.c')) | |
a5ebce38 | 67 | softmmu_ss.add(when: 'CONFIG_VIRTIO', if_false: files('virtio-stub.c')) |
43b6d7ee | 68 | softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('vhost-stub.c')) |
a5ebce38 | 69 | softmmu_ss.add(when: 'CONFIG_ALL', if_true: files('virtio-stub.c')) |
fa1cea9d | 70 | softmmu_ss.add(files('virtio-hmp-cmds.c')) |
74a45163 PMD |
71 | |
72 | specific_ss.add_all(when: 'CONFIG_VIRTIO', if_true: specific_virtio_ss) |