logging: Default to IMMEDIATE mode for native targets

Instead of having the boards override the default
in their Kconfig.defconfig
let's just default to IMMEDIATE logging mode in the main
definition if we are building for a ARCH POSIX board.

This avoid issues w dependencies being lost if not duplicated
correctly.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2024-04-24 13:49:50 +02:00 committed by Fabio Baltieri
parent 6ca6e516f6
commit b304c26c10
4 changed files with 1 additions and 30 deletions

View file

@ -27,16 +27,6 @@ choice BT_HCI_BUS_TYPE
depends on BT_HCI depends on BT_HCI
endchoice endchoice
if LOG
# For native_posix we can log synchronously without any problem
# Doing so will be nicer for debugging
choice LOG_MODE
default LOG_MODE_IMMEDIATE
endchoice
endif # LOG
if CONSOLE if CONSOLE
config POSIX_ARCH_CONSOLE config POSIX_ARCH_CONSOLE

View file

@ -27,16 +27,6 @@ choice BT_HCI_BUS_TYPE
depends on BT_HCI depends on BT_HCI
endchoice endchoice
if LOG
# For native_sim we can log synchronously without any problem
# Doing so will be nicer for debugging
choice LOG_MODE
default LOG_MODE_IMMEDIATE
endchoice
endif # LOG
if CONSOLE if CONSOLE
config POSIX_ARCH_CONSOLE config POSIX_ARCH_CONSOLE

View file

@ -70,16 +70,6 @@ endif # BOARD_NRF5340BSIM_NRF5340_CPUAPP
config NRF_802154_ENCRYPTION config NRF_802154_ENCRYPTION
default n default n
if LOG
# 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
if CONSOLE if CONSOLE
config POSIX_ARCH_CONSOLE config POSIX_ARCH_CONSOLE

View file

@ -4,6 +4,7 @@
choice LOG_MODE choice LOG_MODE
prompt "Mode" prompt "Mode"
depends on !LOG_FRONTEND_ONLY depends on !LOG_FRONTEND_ONLY
default LOG_MODE_IMMEDIATE if ARCH_POSIX
default LOG_MODE_MINIMAL if LOG_DEFAULT_MINIMAL default LOG_MODE_MINIMAL if LOG_DEFAULT_MINIMAL
default LOG_MODE_DEFERRED default LOG_MODE_DEFERRED