diff options
Diffstat (limited to 'zephyr/Kconfig.console')
-rw-r--r-- | zephyr/Kconfig.console | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/zephyr/Kconfig.console b/zephyr/Kconfig.console index 75a4ca7879..74de199067 100644 --- a/zephyr/Kconfig.console +++ b/zephyr/Kconfig.console @@ -66,3 +66,25 @@ menuconfig PLATFORM_EC_CONSOLE_DEBUG Write all zephyr_print() messages to printk() also. Not recommended outside of tests. + +config PLATFORM_EC_LOG_BACKEND_CONSOLE_BUFFER + bool "Logging backend for the console buffer" + depends on PLATFORM_EC_HOSTCMD_CONSOLE + select LOG_OUTPUT + help + Enable the logging backend for the console buffer. + + This will copy messages sent to the zephyr logging subsystem + to the EC console buffer. This allows the AP to access the + log messages with the console host command. + +config PLATFORM_EC_LOG_BACKEND_CONSOLE_BUFFER_TMP_BUF_SIZE + int "Size of temporary buffer used by console buffer logging backend" + default 128 if LOG_MODE_DEFERRED + default 1 + depends on PLATFORM_EC_LOG_BACKEND_CONSOLE_BUFFER + help + The size of the temporary buffer used by the console buffer backend. + The logging subsystem will buffer up to this many bytes before calling + the backend in deferred logging mode. Ideally this will be large + enough to fit an entire log line. |