diff options
author | Shawn Nematbakhsh <shawnn@chromium.org> | 2016-04-01 12:25:52 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-04-03 10:27:36 -0700 |
commit | 257dab7491ba39da5316f53cd34819c8ad937e77 (patch) | |
tree | 679c45e5396f0d4f86aa026160e769b927e42743 /common/host_command.c | |
parent | 93be0c3b0ac3ed49d7d1d99c5ace8cd0487de7f5 (diff) | |
download | chrome-ec-257dab7491ba39da5316f53cd34819c8ad937e77.tar.gz |
console: Put additional console commands behind CONFIGs
Allow boards to save flash space by undef'ing CONFIGs which gate
'hcdebug' and 'md' console commands.
BUG=chrome-os-partner:34489
BRANCH=None
TEST=`make buildall -j`
Change-Id: I583b98ff1e4d9d6a26958c6895fb0c0305dddceb
Signed-off-by: Shawn Nematbakhsh <shawnn@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/336813
Commit-Ready: Shawn N <shawnn@chromium.org>
Tested-by: Shawn N <shawnn@chromium.org>
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Diffstat (limited to 'common/host_command.c')
-rw-r--r-- | common/host_command.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/host_command.c b/common/host_command.c index 97b8cc59cc..5256861ed6 100644 --- a/common/host_command.c +++ b/common/host_command.c @@ -868,6 +868,7 @@ DECLARE_CONSOLE_COMMAND(hostcmd, command_host_command, NULL); #endif /* CONFIG_CMD_HOSTCMD */ +#ifdef CONFIG_CMD_HCDEBUG static int command_hcdebug(int argc, char **argv) { if (argc > 1) { @@ -892,3 +893,4 @@ DECLARE_CONSOLE_COMMAND(hcdebug, command_hcdebug, "hcdebug [off | normal | every | params]", "Set host command debug output mode", NULL); +#endif /* CONFIG_CMD_HCDEBUG */ |