2019-08-15 16:31:07 +03:00
|
|
|
vfio_ss = ss.source_set()
|
|
|
|
vfio_ss.add(files(
|
2023-10-09 12:09:05 +03:00
|
|
|
'helpers.c',
|
2019-08-15 16:31:07 +03:00
|
|
|
'common.c',
|
2023-11-02 10:12:29 +03:00
|
|
|
'container-base.c',
|
2023-10-09 12:09:17 +03:00
|
|
|
'container.c',
|
2020-10-26 12:36:14 +03:00
|
|
|
'migration.c',
|
2024-02-22 20:28:37 +03:00
|
|
|
'cpr.c',
|
2019-08-15 16:31:07 +03:00
|
|
|
))
|
2023-12-19 09:58:24 +03:00
|
|
|
vfio_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr.c'))
|
2023-11-21 11:44:03 +03:00
|
|
|
vfio_ss.add(when: 'CONFIG_IOMMUFD', if_true: files(
|
|
|
|
'iommufd.c',
|
|
|
|
))
|
2019-08-15 16:31:07 +03:00
|
|
|
vfio_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files(
|
|
|
|
'display.c',
|
|
|
|
'pci-quirks.c',
|
|
|
|
'pci.c',
|
|
|
|
))
|
|
|
|
vfio_ss.add(when: 'CONFIG_VFIO_CCW', if_true: files('ccw.c'))
|
|
|
|
vfio_ss.add(when: 'CONFIG_VFIO_PLATFORM', if_true: files('platform.c'))
|
|
|
|
vfio_ss.add(when: 'CONFIG_VFIO_XGMAC', if_true: files('calxeda-xgmac.c'))
|
|
|
|
vfio_ss.add(when: 'CONFIG_VFIO_AMD_XGBE', if_true: files('amd-xgbe.c'))
|
|
|
|
vfio_ss.add(when: 'CONFIG_VFIO_AP', if_true: files('ap.c'))
|
|
|
|
vfio_ss.add(when: 'CONFIG_VFIO_IGD', if_true: files('igd.c'))
|
|
|
|
|
|
|
|
specific_ss.add_all(when: 'CONFIG_VFIO', if_true: vfio_ss)
|