1i2c_ss = ss.source_set() 2i2c_ss.add(when: 'CONFIG_I2C', if_true: files('core.c')) 3i2c_ss.add(when: 'CONFIG_SMBUS', if_true: files('smbus_slave.c', 'smbus_master.c')) 4i2c_ss.add(when: 'CONFIG_ACPI_SMBUS', if_true: files('pm_smbus.c')) 5i2c_ss.add(when: 'CONFIG_ACPI_X86_ICH', if_true: files('smbus_ich9.c')) 6i2c_ss.add(when: 'CONFIG_ASPEED_SOC', if_true: files('aspeed_i2c.c')) 7i2c_ss.add(when: 'CONFIG_BITBANG_I2C', if_true: files('bitbang_i2c.c')) 8i2c_ss.add(when: 'CONFIG_EXYNOS4', if_true: files('exynos4210_i2c.c')) 9i2c_ss.add(when: 'CONFIG_IMX_I2C', if_true: files('imx_i2c.c')) 10i2c_ss.add(when: 'CONFIG_MPC_I2C', if_true: files('mpc_i2c.c')) 11i2c_ss.add(when: 'CONFIG_NRF51_SOC', if_true: files('microbit_i2c.c')) 12i2c_ss.add(when: 'CONFIG_NPCM7XX', if_true: files('npcm7xx_smbus.c')) 13i2c_ss.add(when: 'CONFIG_SMBUS_EEPROM', if_true: files('smbus_eeprom.c')) 14i2c_ss.add(when: 'CONFIG_VERSATILE_I2C', if_true: files('versatile_i2c.c')) 15i2c_ss.add(when: 'CONFIG_OMAP', if_true: files('omap_i2c.c')) 16i2c_ss.add(when: 'CONFIG_PPC4XX', if_true: files('ppc4xx_i2c.c')) 17i2c_ss.add(when: 'CONFIG_PCA954X', if_true: files('i2c_mux_pca954x.c')) 18i2c_ss.add(when: 'CONFIG_PMBUS', if_true: files('pmbus_device.c')) 19softmmu_ss.add_all(when: 'CONFIG_I2C', if_true: i2c_ss) 20