From b47e37c7921f897a2e4836ba9db20be2d0e1546f Mon Sep 17 00:00:00 2001 From: Andrei Emeltchenko Date: Fri, 14 Sep 2018 11:31:55 +0300 Subject: [PATCH] native_posix: Add logger configuration backend Enable native logger backend for native_posix board in defconfig. Set also logger configuration options suitable for native_posix backend. Signed-off-by: Alberto Escolar Piedras Signed-off-by: Andrei Emeltchenko --- boards/posix/native_posix/Kconfig.defconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/boards/posix/native_posix/Kconfig.defconfig b/boards/posix/native_posix/Kconfig.defconfig index 3e1fab23626..0d4d4583555 100644 --- a/boards/posix/native_posix/Kconfig.defconfig +++ b/boards/posix/native_posix/Kconfig.defconfig @@ -38,4 +38,21 @@ endchoice endif # BT_HCI +if LOG + +config LOG_BACKEND_NATIVE_POSIX + def_bool y + +# For native_posix we can log immediately without any problem +# Doing so will be nicer for debugging +config LOG_INPLACE_PROCESS + def_bool y + +# If we set LOG_INPLACE_PROCESS, there is no need to have the logging thread +# running +config LOG_PROCESS_THREAD + def_bool n + +endif # LOG + endif # BOARD_NATIVE_POSIX