boards: native_posix: provide i2c device if CONFIG_I2C=y

This is necessary to get some samples to link properly when moving
from device_get_binding() to DEVICE_DT_GET and friends. In particular
I ran into issues building i2c_fujitsu_fram without a real I2C device.

Signed-off-by: Martí Bolívar <marti.bolivar@nordicsemi.no>
This commit is contained in:
Martí Bolívar 2021-08-10 16:13:18 -07:00 committed by Christopher Friedt
commit 5726783d85

View file

@ -81,4 +81,14 @@ config EEPROM_SIMULATOR
default y
depends on EEPROM
if I2C
config EMUL
default y
config I2C_EMUL
default y
endif # I2C
endif # BOARD_NATIVE_POSIX