diff options
author | Bill Richardson <wfrichar@chromium.org> | 2016-09-30 12:23:53 -0700 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2016-10-01 00:02:01 -0700 |
commit | 0a4bb34bcdde39f1cd21dd555d7284a8b1ce9cca (patch) | |
tree | d5810ab7598d0df4d5f372eb87d09be352b12c94 /common/memory_commands.c | |
parent | f715b8b86531b8984fe0fd48265ff85f3a5e9cf2 (diff) | |
download | chrome-ec-0a4bb34bcdde39f1cd21dd555d7284a8b1ce9cca.tar.gz |
Add more CONFIG_CMD_* options for console commands
We have a large number of config.h options to enable/disable
specific console commands. This adds a few more that we will want
to control.
BUG=chrome-os-partner:57408
BRANCH=none
TEST=make buildall; try on Gru with and without CR50_DEV=1
Change-Id: Id41f0e9f44fc77feaf56853f357a6b33bb685b0c
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/391614
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'common/memory_commands.c')
-rw-r--r-- | common/memory_commands.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/common/memory_commands.c b/common/memory_commands.c index 3cf7974e5e..f44640d5e3 100644 --- a/common/memory_commands.c +++ b/common/memory_commands.c @@ -111,6 +111,7 @@ DECLARE_CONSOLE_COMMAND(md, command_mem_dump, "dump memory values, optionally specifying the format"); #endif /* CONFIG_CMD_MD */ +#ifdef CONFIG_CMD_RW static int command_read_word(int argc, char **argv) { volatile uint32_t *address; @@ -191,3 +192,4 @@ DECLARE_CONSOLE_COMMAND (rw, command_read_word, "[.b|.h] addr [value]", "Read or write a word in memory optionally specifying the size"); +#endif /* CONFIG_CMD_RW */ |