1# Copyright (c) 2022 Intel Corporation. 2# SPDX-License-Identifier: Apache-2.0 3 4choice "LOG_BACKEND_$(backend)_OUTPUT" 5 prompt "Backend Output Mode" 6 default LOG_BACKEND_$(backend)_OUTPUT_TEXT 7 8config LOG_BACKEND_$(backend)_OUTPUT_TEXT 9 bool "Text" 10 help 11 Output in text. 12 13config LOG_BACKEND_$(backend)_OUTPUT_SYST 14 bool "MIPI SyS-T" 15 depends on LOG_MIPI_SYST_ENABLE 16 help 17 When enabled backend is used to output syst format logs. 18 19config LOG_BACKEND_$(backend)_OUTPUT_DICTIONARY 20 bool "Dictionary" 21 select LOG_DICTIONARY_SUPPORT 22 imply LOG_FMT_SECTION 23 imply LOG_FMT_SECTION_STRIP if !LOG_ALWAYS_RUNTIME 24 help 25 Backend is in dictionary-based logging output mode. 26 27config LOG_BACKEND_$(backend)_OUTPUT_CUSTOM 28 bool "Extern" 29 help 30 Custom formatting function can be set externally. 31 32endchoice 33 34# The numbering of the format types should be consistent across 35# all the backends in the Kconfig and their values must match 36# LOG_OUTPUT_XXX type in C files. 37# Example : LOG_BACKEND_XXX_OUTPUT_TEXT should be numbered 0 across all backends 38# and should match the value of LOG_OUTPUT_TEXT defined in log_output.h 39config LOG_BACKEND_$(backend)_OUTPUT_DEFAULT 40 int 41 default 0 if LOG_BACKEND_$(backend)_OUTPUT_TEXT 42 default 1 if LOG_BACKEND_$(backend)_OUTPUT_SYST 43 default 2 if LOG_BACKEND_$(backend)_OUTPUT_DICTIONARY 44 default 3 if LOG_BACKEND_$(backend)_OUTPUT_CUSTOM 45