summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2023-03-03 08:16:44 -0800
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-03-03 17:00:02 +0000
commit84267aafea80423ed40024006e0a05a7acc03fc9 (patch)
tree69875a74305a038dc380b84b368148ed11bb155a
parentb96f63d8ee318032d63c3a4ee366f8136d9a3689 (diff)
downloadchrome-ec-84267aafea80423ed40024006e0a05a7acc03fc9.tar.gz
cr50:DBG: remove rarely used console commands
DBG images are running low on space. This change removes some of the more rarely used console commands. It saves 2352 bytes. This disables sleepmask, timerinfo, i2cxfer, history, and i2cscan in DBG images. If someone needs to reenable them for a build, they can comment out the undefs. BUG=none TEST=make buildall -j Change-Id: I40115d6e2769fae4e489eb926778c38c94b66cd3 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4307437 Reviewed-by: Vadim Bendebury <vbendeb@chromium.org>
-rw-r--r--board/cr50/board.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/board/cr50/board.h b/board/cr50/board.h
index 062ba4c48a..7729d79931 100644
--- a/board/cr50/board.h
+++ b/board/cr50/board.h
@@ -133,6 +133,12 @@
#define CONFIG_CCD_OPEN_PREPVT
#ifdef CR50_DEV
+/* Remove console commands to save space. */
+#undef CONFIG_CMD_SLEEPMASK
+#undef CONFIG_CMD_TIMERINFO
+#undef CONFIG_CONSOLE_HISTORY
+#undef CONFIG_CMD_I2C_SCAN
+#undef CONFIG_CMD_I2C_XFER
/* Enable unsafe dev features for CCD in dev builds */
#define CONFIG_CASE_CLOSED_DEBUG_V1_UNSAFE
#define CONFIG_CMD_FLASH_LOG