summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Boichat <drinkcat@chromium.org>2018-05-23 13:28:27 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-05-24 04:10:05 -0700
commit0bf44c2d56b3d2b29ce6d0d1b36a2bb5b36fa943 (patch)
tree59edc9c56da14fe83c39b847c2f0f1e9f94d790d
parentdb24bed78d6274def74f0a764a29a9ea1e2feb71 (diff)
downloadchrome-ec-0bf44c2d56b3d2b29ce6d0d1b36a2bb5b36fa943.tar.gz
hammer: Remove unnecessary console commands
Saving space in RW, even if we are not critical in terms of size, always helps to reduce verification time. BRANCH=poppy BUG=b:35647963 TEST=make newsize => Hammer shrinks by ~3k, verification time down by ~12 ms. Change-Id: I63741106fdc56c410871fb367c29605bf37f1b77 Signed-off-by: Nicolas Boichat <drinkcat@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1070951 Reviewed-by: Randall Spangler <rspangler@chromium.org>
-rw-r--r--board/hammer/board.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/board/hammer/board.h b/board/hammer/board.h
index 910e951d11..013dd4bc68 100644
--- a/board/hammer/board.h
+++ b/board/hammer/board.h
@@ -139,6 +139,17 @@
#define CONFIG_BOARD_PRE_INIT
#define CONFIG_WATCHDOG_HELP
+/* No need to hibernate, remove console commands that are not very useful. */
+#undef CONFIG_HIBERNATE
+#undef CONFIG_CONSOLE_CHANNEL
+#undef CONFIG_CONSOLE_HISTORY
+#undef CONFIG_CMD_GETTIME
+#undef CONFIG_CMD_MD
+#undef CONFIG_CMD_RW
+#undef CONFIG_CMD_SHMEM
+#undef CONFIG_CMD_TIMERINFO
+#undef CONFIG_CMD_WAITMS
+
/*
* Enlarge the allowed write / read count for trackpad debug
* In the extended I2C reading over I2C ( >= 128 bytes ), the header size