Commit 5726783d authored by Martí Bolívar's avatar Martí Bolívar Committed by Christopher Friedt
Browse files

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: default avatarMartí Bolívar <marti.bolivar@nordicsemi.no>
parent 91b58e4b
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -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