From 240d03b780d1b4c91eb5a0e439e0c50af2d66888 Mon Sep 17 00:00:00 2001 From: Bill Richardson Date: Fri, 30 Sep 2016 00:21:20 -0700 Subject: 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 Change-Id: Ic5034a87ba032b14a7e613e6debdbb635a7c1c9a Reviewed-on: https://chromium-review.googlesource.com/391046 Tested-by: Vadim Bendebury Reviewed-by: Randall Spangler Reviewed-by: Vadim Bendebury --- board/cr50/board.h | 10 ++++++++++ 1 file changed, 10 insertions(+) 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! */ -- cgit v1.2.1