From 0fdf13c85c82c0458ba1f3f438a549336144b2b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Chru=C5=9Bci=C5=84ski?= Date: Thu, 25 Apr 2024 08:11:59 +0200 Subject: [PATCH] logging: Move frontends to the dedicated directory MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit As there are more frontends coming in the future move existing frontend to the dedicated directory (like backends). Signed-off-by: Krzysztof Chruściński --- subsys/logging/CMakeLists.txt | 6 +----- subsys/logging/Kconfig | 2 +- subsys/logging/frontends/CMakeLists.txt | 6 ++++++ subsys/logging/{Kconfig.frontends => frontends/Kconfig} | 0 subsys/logging/{ => frontends}/log_frontend_dict_uart.c | 0 5 files changed, 8 insertions(+), 6 deletions(-) create mode 100644 subsys/logging/frontends/CMakeLists.txt rename subsys/logging/{Kconfig.frontends => frontends/Kconfig} (100%) rename subsys/logging/{ => frontends}/log_frontend_dict_uart.c (100%) diff --git a/subsys/logging/CMakeLists.txt b/subsys/logging/CMakeLists.txt index e1cd8e7d5f5..2d5bf6638d5 100644 --- a/subsys/logging/CMakeLists.txt +++ b/subsys/logging/CMakeLists.txt @@ -43,17 +43,13 @@ if(NOT CONFIG_LOG_MODE_MINIMAL) log_cmds.c ) - zephyr_sources_ifdef( - CONFIG_LOG_FRONTEND_DICT_UART - log_frontend_dict_uart.c - ) - zephyr_sources_ifdef( CONFIG_LOG_DICTIONARY_SUPPORT log_output_dict.c ) add_subdirectory(backends) + add_subdirectory(frontends) # For some reason, running sys-t with catalog message on # Cortex-M0 would result in hard fault in mipi_catalog_formatter() diff --git a/subsys/logging/Kconfig b/subsys/logging/Kconfig index 57e447f85a0..f7a7b32b804 100644 --- a/subsys/logging/Kconfig +++ b/subsys/logging/Kconfig @@ -37,7 +37,7 @@ endif # !LOG_MODE_MINIMAL if LOG_FRONTEND -rsource "Kconfig.frontends" +rsource "frontends/Kconfig" endif #LOG_FRONTEND diff --git a/subsys/logging/frontends/CMakeLists.txt b/subsys/logging/frontends/CMakeLists.txt new file mode 100644 index 00000000000..4e2d82bc6dd --- /dev/null +++ b/subsys/logging/frontends/CMakeLists.txt @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: Apache-2.0 + +zephyr_sources_ifdef( + CONFIG_LOG_FRONTEND_DICT_UART + log_frontend_dict_uart.c +) diff --git a/subsys/logging/Kconfig.frontends b/subsys/logging/frontends/Kconfig similarity index 100% rename from subsys/logging/Kconfig.frontends rename to subsys/logging/frontends/Kconfig diff --git a/subsys/logging/log_frontend_dict_uart.c b/subsys/logging/frontends/log_frontend_dict_uart.c similarity index 100% rename from subsys/logging/log_frontend_dict_uart.c rename to subsys/logging/frontends/log_frontend_dict_uart.c