nrf52_bsim: Fix LOG_MODE_IMMEDIATE kconfig warning

The board _defconfig file was trying to set
LOG_MODE_IMMEDIATE unconditionally by default, which
caused a warning when LOG wasn't enabled.
Instead set it only when LOG is enabled.

Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
Alberto Escolar Piedras 2021-04-10 12:14:16 +02:00 committed by Alberto Escolar
commit 84cf9a2622
2 changed files with 6 additions and 3 deletions

View file

@ -24,6 +24,12 @@ if LOG
config LOG_BACKEND_NATIVE_POSIX
default y if !SERIAL
# For this board we can log synchronously without any problem
# Doing so will be nicer for debugging
choice LOG_MODE
default LOG_MODE_IMMEDIATE
endchoice
endif # LOG
endif # BOARD_NRF52_BSIM

View file

@ -5,6 +5,3 @@ CONFIG_BOARD_NRF52_BSIM=y
CONFIG_CONSOLE=y
CONFIG_NO_OPTIMIZATIONS=y
CONFIG_SYS_CLOCK_HW_CYCLES_PER_SEC=32768
# For this board we can log immediately without any problem
# Doing so will be nicer for debugging
CONFIG_LOG_MODE_IMMEDIATE=y