summaryrefslogtreecommitdiff
path: root/zephyr/Kconfig.console
diff options
context:
space:
mode:
authorKeith Short <keithshort@chromium.org>2021-06-04 15:16:37 -0600
committerCommit Bot <commit-bot@chromium.org>2021-06-09 17:49:18 +0000
commitf22f1ea5cf373357ae4f3de525cd2cb6c09ea44c (patch)
tree9a2dd48eafc6b679fd730b2687ae940dcc712036 /zephyr/Kconfig.console
parent7837e2011cf7c4d8690a17f9b7d89768a5a01d4c (diff)
downloadchrome-ec-f22f1ea5cf373357ae4f3de525cd2cb6c09ea44c.tar.gz
zephyr: Add CONFIG_PLATFORM_EC_CONSOLE_CHANNEL
Add a KConfig option to enable/disable the CONFIG_CONSOLE_CHANNEL option. Enabled by default, but can be turned off to save code space. BUG=b:180421120 BRANCH=none TEST=zmake testall TEST=Boot lazor, verify 'chan' command is present or not based on this config. Signed-off-by: Keith Short <keithshort@chromium.org> Change-Id: I9f5f10582ef6161a38bb2f5f7f48bae631ba9cf6 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2946964 Commit-Queue: Wai-Hong Tam <waihong@google.com> Reviewed-by: Wai-Hong Tam <waihong@google.com>
Diffstat (limited to 'zephyr/Kconfig.console')
-rw-r--r--zephyr/Kconfig.console19
1 files changed, 19 insertions, 0 deletions
diff --git a/zephyr/Kconfig.console b/zephyr/Kconfig.console
index 03b01cb45b..4e8807b9a4 100644
--- a/zephyr/Kconfig.console
+++ b/zephyr/Kconfig.console
@@ -2,6 +2,25 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+config PLATFORM_EC_CONSOLE_CHANNEL
+ bool "Console channels"
+ depends on CONSOLE
+ default y
+ help
+ Make it possible for console to be output to different channels that
+ can be turned on and off. Channels are organized by functional area
+ such as "charger", "motionsense", "usbpd" and others.
+
+ This is useful as a developer convenience when the console is crowded
+ with messages, to make it easier to use the interactive console.
+
+ The `chan` console command with no arguments shows all available
+ channels.
+
+ FAFT and servod also use this feature.
+
+ Boards may #undef this to reduce image size.
+
menuconfig PLATFORM_EC_HOSTCMD_CONSOLE
bool "Console Host Command"
depends on PLATFORM_EC_HOSTCMD