xref: /openbmc/qemu/hw/scsi/meson.build (revision 4921d0a7)
1scsi_ss = ss.source_set()
2specific_scsi_ss = ss.source_set()
3virtio_scsi_ss = ss.source_set()
4specific_virtio_scsi_ss = ss.source_set()
5
6scsi_ss.add(files(
7  'emulation.c',
8  'scsi-bus.c',
9  'scsi-disk.c',
10  'scsi-generic.c',
11))
12scsi_ss.add(when: 'CONFIG_ESP', if_true: files('esp.c'))
13scsi_ss.add(when: 'CONFIG_ESP_PCI', if_true: files('esp-pci.c'))
14scsi_ss.add(when: 'CONFIG_LSI_SCSI_PCI', if_true: files('lsi53c895a.c'))
15scsi_ss.add(when: 'CONFIG_MEGASAS_SCSI_PCI', if_true: files('megasas.c'))
16scsi_ss.add(when: 'CONFIG_MPTSAS_SCSI_PCI', if_true: files('mptsas.c', 'mptconfig.c', 'mptendian.c'))
17scsi_ss.add(when: 'CONFIG_VMW_PVSCSI_SCSI_PCI', if_true: files('vmw_pvscsi.c'))
18
19virtio_scsi_ss.add(files('virtio-scsi-dataplane.c'))
20virtio_scsi_ss.add(when: 'CONFIG_VHOST_SCSI', if_true: files('vhost-scsi.c'))
21virtio_scsi_ss.add(when: 'CONFIG_VHOST_USER_SCSI', if_true: files('vhost-user-scsi.c'))
22
23specific_virtio_scsi_ss.add(files('virtio-scsi.c'))
24specific_virtio_scsi_ss.add(when: 'CONFIG_VHOST_SCSI_COMMON', if_true: files('vhost-scsi-common.c'))
25
26specific_scsi_ss.add_all(when: 'CONFIG_VIRTIO_SCSI', if_true: specific_virtio_scsi_ss)
27scsi_ss.add_all(when: 'CONFIG_VIRTIO_SCSI', if_true: virtio_scsi_ss)
28
29specific_scsi_ss.add(when: 'CONFIG_SPAPR_VSCSI', if_true: files('spapr_vscsi.c'))
30
31system_ss.add_all(when: 'CONFIG_SCSI', if_true: scsi_ss)
32specific_ss.add_all(when: 'CONFIG_SCSI', if_true: specific_scsi_ss)
33