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