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