diff options
author | Vic Yang <victoryang@chromium.org> | 2014-08-29 10:10:05 -0700 |
---|---|---|
committer | chrome-internal-fetch <chrome-internal-fetch@google.com> | 2014-09-01 11:06:57 +0000 |
commit | e523cf49b208593eefd76eec0b0d7f0d39bff00a (patch) | |
tree | 7d4e519d0d80bd7540ef930b5d013150971573c2 /common/host_command.c | |
parent | 390498a9ff7f85095a14c9ede8f3dedfaf677e64 (diff) | |
download | chrome-ec-e523cf49b208593eefd76eec0b0d7f0d39bff00a.tar.gz |
Put 'hostcmd' console command behind a config flag
This command was intended to be used for testing, but we have moved on
to the compiled unit tests. Let's put this command behind a config flag
to save precious flash space. This frees up about 640 bytes.
To make sure no one is using this, I searched for "hostcmd" in
platform/ec/test and third_party/autotest/files/server/site_tests.
BUG=None
TEST=make buildall
BRANCH=None
Change-Id: I3192214b71c033c2388f687ed891203d1d119bb9
Signed-off-by: Vic Yang <victoryang@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/214828
Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
Reviewed-by: Randall Spangler <rspangler@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 6bb6176afd..dd390150aa 100644 --- a/common/host_command.c +++ b/common/host_command.c @@ -626,6 +626,7 @@ DECLARE_HOST_COMMAND(EC_CMD_TEST_PROTOCOL, /*****************************************************************************/ /* Console commands */ +#ifdef CONFIG_CMD_HOSTCMD static int parse_byte(char *b, uint8_t *out) { int i; @@ -726,6 +727,7 @@ DECLARE_CONSOLE_COMMAND(hostcmd, command_host_command, "cmd ver param", "Fake host command", NULL); +#endif /* CONFIG_CMD_HOSTCMD */ static int command_hcdebug(int argc, char **argv) { |