diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2015-07-17 12:37:09 -0700 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-07-25 04:20:28 +0000 |
commit | 605b0f50d0fa429dd572a763a7fd884757474b53 (patch) | |
tree | 18d7820bed48febebcc29245b72a3d6b5fc5a3f6 /include | |
parent | 6f13628e7f29816abfe5108cdde55c00c36e990b (diff) | |
download | chrome-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 'include')
-rw-r--r-- | include/console.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/console.h b/include/console.h index 91bd7783c8..df95963e2b 100644 --- a/include/console.h +++ b/include/console.h @@ -41,15 +41,21 @@ enum console_channel { CC_KEYBOARD, CC_KEYSCAN, CC_LIDANGLE, +#ifdef HAS_TASK_LIGHTBAR CC_LIGHTBAR, +#endif CC_LPC, CC_MOTION_LID, CC_MOTION_SENSE, +#ifdef HAS_TASK_PDCMD CC_PD_HOST_CMD, +#endif CC_PORT80, CC_PWM, CC_SPI, +#ifdef CONFIG_SPS CC_SPS, +#endif CC_SWITCH, CC_SYSTEM, CC_TASK, |