1# SPDX-License-Identifier: GPL-2.0-or-later 2 3vfio_ss = ss.source_set() 4vfio_ss.add(files( 5 'listener.c', 6 'container-base.c', 7 'container.c', 8 'helpers.c', 9)) 10vfio_ss.add(when: 'CONFIG_PSERIES', if_true: files('spapr.c')) 11vfio_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files( 12 'pci-quirks.c', 13 'pci.c', 14)) 15vfio_ss.add(when: 'CONFIG_VFIO_CCW', if_true: files('ccw.c')) 16vfio_ss.add(when: 'CONFIG_VFIO_PLATFORM', if_true: files('platform.c')) 17vfio_ss.add(when: 'CONFIG_VFIO_AP', if_true: files('ap.c')) 18vfio_ss.add(when: 'CONFIG_VFIO_IGD', if_true: files('igd.c')) 19 20specific_ss.add_all(when: 'CONFIG_VFIO', if_true: vfio_ss) 21 22system_ss.add(when: 'CONFIG_VFIO_XGMAC', if_true: files('calxeda-xgmac.c')) 23system_ss.add(when: 'CONFIG_VFIO_AMD_XGBE', if_true: files('amd-xgbe.c')) 24system_ss.add(when: 'CONFIG_VFIO', if_true: files( 25 'cpr.c', 26 'cpr-legacy.c', 27 'device.c', 28 'migration.c', 29 'migration-multifd.c', 30 'region.c', 31)) 32system_ss.add(when: ['CONFIG_VFIO', 'CONFIG_IOMMUFD'], if_true: files( 33 'iommufd.c', 34 'cpr-iommufd.c', 35)) 36system_ss.add(when: 'CONFIG_IOMMUFD', if_false: files('iommufd-stubs.c')) 37system_ss.add(when: 'CONFIG_VFIO_PCI', if_true: files( 38 'display.c', 39)) 40