zephyr/subsys/shell/CMakeLists.txt
Krzysztof Chruściński 05dd68a377 shell: Allow custom shell log backend implementation
Shell is capable of acting as the logging backend and multiplex
logging messages with shell content. It expects that logging
messages goes through the logging backend. However, there is an
option that logs go only to the custom logging frontend. In
that case this default approach does not work and logging
frontend cannot be easily integrated with the shell (due to
its custom nature). Add Kconfig option SHELL_LOG_BACKEND_OOB
which prevent compilation of the default shell log backend.
When enabled, application can provide frontend specific
implementation to integrate shell with the logging.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-10-17 10:48:25 -04:00

39 lines
584 B
CMake

# SPDX-License-Identifier: Apache-2.0
add_subdirectory(modules)
add_subdirectory(backends)
zephyr_sources_ifdef(
CONFIG_SHELL
shell.c
shell_fprintf.c
shell_utils.c
shell_ops.c
)
if(NOT CONFIG_SHELL_LOG_BACKEND_CUSTOM)
zephyr_sources_ifdef(
CONFIG_SHELL_LOG_BACKEND
shell_log_backend.c
)
endif()
zephyr_sources_ifdef(
CONFIG_SHELL_HELP
shell_help.c
)
zephyr_sources_ifdef(
CONFIG_SHELL_CMDS
shell_cmds.c
)
zephyr_sources_ifdef(
CONFIG_SHELL_HISTORY
shell_history.c
)
zephyr_sources_ifdef(
CONFIG_SHELL_WILDCARD
shell_wildcard.c
)