blob: bba776f75cc718956b37f68cb542b378a509d77f [file] [log] [blame]
Marc-André Lureau4f780d52019-08-15 17:31:07 +04001vfio_ss = ss.source_set()
2vfio_ss.add(files(
Yi Liu1e09f522023-10-09 11:09:05 +02003 'helpers.c',
Marc-André Lureau4f780d52019-08-15 17:31:07 +04004 'common.c',
Eric Augerb08501a2023-11-02 15:12:29 +08005 'container-base.c',
Yi Liu7e63b312023-10-09 11:09:17 +02006 'container.c',
Kirti Wankhedea9e271e2020-10-26 15:06:14 +05307 'migration.c',
Steve Sistared9fa4222024-02-22 09:28:37 -08008 'cpr.c',
Marc-André Lureau4f780d52019-08-15 17:31:07 +04009))
Cédric Le Goater10164df2023-12-19 07:58:24 +010010vfio_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr.c'))
Yi Liu5ee3dc72023-11-21 16:44:03 +080011vfio_ss.add(when: 'CONFIG_IOMMUFD', if_true: files(
12 'iommufd.c',
13))
Marc-André Lureau4f780d52019-08-15 17:31:07 +040014vfio_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files(
15 'display.c',
16 'pci-quirks.c',
17 'pci.c',
18))
19vfio_ss.add(when: 'CONFIG_VFIO_CCW', if_true: files('ccw.c'))
20vfio_ss.add(when: 'CONFIG_VFIO_PLATFORM', if_true: files('platform.c'))
21vfio_ss.add(when: 'CONFIG_VFIO_XGMAC', if_true: files('calxeda-xgmac.c'))
22vfio_ss.add(when: 'CONFIG_VFIO_AMD_XGBE', if_true: files('amd-xgbe.c'))
23vfio_ss.add(when: 'CONFIG_VFIO_AP', if_true: files('ap.c'))
24vfio_ss.add(when: 'CONFIG_VFIO_IGD', if_true: files('igd.c'))
25
26specific_ss.add_all(when: 'CONFIG_VFIO', if_true: vfio_ss)