summaryrefslogtreecommitdiff
path: root/common/console_output.c
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2015-07-17 12:37:09 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-07-25 04:20:28 +0000
commit605b0f50d0fa429dd572a763a7fd884757474b53 (patch)
tree18d7820bed48febebcc29245b72a3d6b5fc5a3f6 /common/console_output.c
parent6f13628e7f29816abfe5108cdde55c00c36e990b (diff)
downloadchrome-ec-605b0f50d0fa429dd572a763a7fd884757474b53.tar.gz
console: compile some channels in conditionally
As new features come along the console channel space limited at 32 becomes very tight. But not all features are present all the time. Let's make some of the channels compile time configurable. This makes for uglier code but allows to support more channels. BRANCH=none BUG=none TEST=make buildall -j Change-Id: Id21560d4aa05c0e5245872c50ae19340cda8fd3e Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/286610 Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'common/console_output.c')
-rw-r--r--common/console_output.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/common/console_output.c b/common/console_output.c
index ddb2ad298b..cecbd9fc41 100644
--- a/common/console_output.c
+++ b/common/console_output.c
@@ -46,15 +46,21 @@ static const char * const channel_names[] = {
"keyboard",
"keyscan",
"lidangle",
+#ifdef HAS_TASK_LIGHTBAR
"lightbar",
+#endif
"lpc",
"motionlid",
"motionsense",
+#ifdef HAS_TASK_PDCMD
"pdhostcmd",
+#endif
"port80",
"pwm",
"spi",
+#ifdef CONFIG_SPS
"sps",
+#endif
"switch",
"system",
"task",