zephyr/subsys/logging/backends/Kconfig.semihost
Krzysztof Chruściński 8652e8e413 logging: Fix LOG_OUTPUT dependency
When CONFIG_LOG_OUTPUT is set, it indicates that logging strings
are formatted by the application (using log_output module). It is
not needed when backend works in the dictionary mode. So far
LOG_OUTPUT was set also when dictionary mode was used and that
prevented removing of the logging strings from binary which is
an important feature of the dictionary logging.

Signed-off-by: Krzysztof Chruściński <krzysztof.chruscinski@nordicsemi.no>
2024-10-09 18:37:49 +01:00

29 lines
752 B
Text

# Copyright (c) 2024 Contributors to the logging subsystem.
# SPDX-License-Identifier: Apache-2.0
config LOG_BACKEND_SEMIHOST
bool "Semihost as backend"
depends on SEMIHOST
select LOG_BACKEND_SUPPORTS_FORMAT_TIMESTAMP
help
Enable backend in semihost (using host stdout)
if LOG_BACKEND_SEMIHOST
config LOG_BACKEND_SEMIHOST_BUFFER_SIZE
int "Size of reserved up-buffer for logger output."
default 256
help
Specify reserved size of up-buffer used for logger output.
config LOG_BACKEND_SEMIHOST_AUTOSTART
bool "Autostart semihost backend"
default y
help
Enable semihost backend to start automatically.
backend = SEMIHOST
backend-str = semihost
source "subsys/logging/Kconfig.template.log_format_config"
endif # LOG_BACKEND_SEMIHOST