zephyr: Switch back to enabling I2C in board-specific configs.

I2C can't be enabled in prj_base.conf because it's a board-specific
feature.  For example, if a board doesn't have I2C but CONFIG_I2C=y then
the build will fail (on Zephyr build system side).  The patch here gets the
qemu_cortex_m3 build working again.
This commit is contained in:
Paul Sokolovsky 2019-03-28 16:15:42 +02:00 committed by Damien George
parent b88bf42793
commit c4a6d9c631
3 changed files with 6 additions and 3 deletions

View File

@ -14,9 +14,6 @@ CONFIG_NEWLIB_LIBC=y
CONFIG_FLOAT=y CONFIG_FLOAT=y
CONFIG_MAIN_STACK_SIZE=4736 CONFIG_MAIN_STACK_SIZE=4736
# Drivers
CONFIG_I2C=y
# Enable sensor subsystem (doesn't add code if not used). # Enable sensor subsystem (doesn't add code if not used).
# Specific sensors should be enabled per-board. # Specific sensors should be enabled per-board.
CONFIG_SENSOR=y CONFIG_SENSOR=y

View File

@ -1,6 +1,9 @@
# Networking drivers # Networking drivers
CONFIG_NET_L2_ETHERNET=y CONFIG_NET_L2_ETHERNET=y
# Hardware features
CONFIG_I2C=y
# Sensor drivers # Sensor drivers
CONFIG_FXOS8700=y CONFIG_FXOS8700=y
CONFIG_FXOS8700_MODE_HYBRID=y CONFIG_FXOS8700_MODE_HYBRID=y

View File

@ -1,3 +1,6 @@
# Hardware features
CONFIG_I2C=y
# Sensor drivers # Sensor drivers
CONFIG_FXOS8700=y CONFIG_FXOS8700=y
CONFIG_FXOS8700_MODE_HYBRID=y CONFIG_FXOS8700_MODE_HYBRID=y