From eb48a025b9551a814b0f1ee27ec38c4cafe5cfbc Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Wed, 23 May 2018 13:28:27 +0800 Subject: 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 Reviewed-on: https://chromium-review.googlesource.com/1070951 Reviewed-by: Randall Spangler Reviewed-on: https://chromium-review.googlesource.com/1080580 --- board/hammer/board.h | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/board/hammer/board.h b/board/hammer/board.h index d6b35db695..7ef3cc1a71 100644 --- a/board/hammer/board.h +++ b/board/hammer/board.h @@ -145,6 +145,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 -- cgit v1.2.1