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:
parent
91b58e4b9e
commit
5726783d85
1 changed files with 10 additions and 0 deletions
|
@ -81,4 +81,14 @@ config EEPROM_SIMULATOR
|
||||||
default y
|
default y
|
||||||
depends on EEPROM
|
depends on EEPROM
|
||||||
|
|
||||||
|
if I2C
|
||||||
|
|
||||||
|
config EMUL
|
||||||
|
default y
|
||||||
|
|
||||||
|
config I2C_EMUL
|
||||||
|
default y
|
||||||
|
|
||||||
|
endif # I2C
|
||||||
|
|
||||||
endif # BOARD_NATIVE_POSIX
|
endif # BOARD_NATIVE_POSIX
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue