diff options
author | Bill Richardson <wfrichar@chromium.org> | 2016-09-30 00:21:20 -0700 |
---|---|---|
committer | Bill Richardson <wfrichar@google.com> | 2016-10-03 23:45:34 +0000 |
commit | 240d03b780d1b4c91eb5a0e439e0c50af2d66888 (patch) | |
tree | 27721cecaf147df4ea06cf6385fd713dc910a75a | |
parent | b5b06e4ac9f5ee5ccc19ec2d917c593be5bf4963 (diff) | |
download | chrome-ec-240d03b780d1b4c91eb5a0e439e0c50af2d66888.tar.gz |
Cr50: lock down the console a bit more
This removes some console commands that shouldn't be present in
production builds, even when the console is unlocked.
BUG=chrome-os-partner:57408
BRANCH=none
CQ-DEPEND=CL:391045
CQ-DEPEND=CL:391188
CQ-DEPEND=CL:391244
CQ-DEPEND=CL:391314
CQ-DEPEND=CL:391611
CQ-DEPEND=CL:391612
CQ-DEPEND=CL:391613
CQ-DEPEND=CL:391614
CQ-DEPEND=CL:391127
TEST=make buildall; try on Gru with and without CR50_DEV=1
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Change-Id: Ic5034a87ba032b14a7e613e6debdbb635a7c1c9a
Reviewed-on: https://chromium-review.googlesource.com/391046
Tested-by: Vadim Bendebury <vbendeb@chromium.org>
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r-- | board/cr50/board.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/cr50/board.h b/board/cr50/board.h index 7d11abd60d..00185d30a2 100644 --- a/board/cr50/board.h +++ b/board/cr50/board.h @@ -14,6 +14,16 @@ #undef CONFIG_HIBERNATE #undef CONFIG_LID_SWITCH +#ifndef CR50_DEV +/* Disable stuff that should only be in debug builds */ +#undef CONFIG_CMD_MD +#undef CONFIG_CMD_RW +#undef CONFIG_CMD_SLEEPMASK +#undef CONFIG_CMD_SYSJUMP +#undef CONFIG_CMD_WAITMS +#undef CONFIG_FLASH +#endif + /* Flash configuration */ #undef CONFIG_FLASH_PSTATE /* TODO(crosbug.com/p/44745): Bringup only! Do the right thing for real! */ |