From 6d79da6480fd4cd139cbe104b14384345e84aba8 Mon Sep 17 00:00:00 2001 From: Wai-Hong Tam Date: Tue, 30 Apr 2019 16:29:52 -0700 Subject: servo_v4: Disable unused features to reduce space The servo_v4 is almost out-of-space. Disable some unused features and console commands to reclaim some space. Before: 176 bytes in flash and 4392 bytes in RAM available on RO After: 1264 bytes in flash and 4400 bytes in RAM available on RO BUG=b:131840808 BRANCH=servo TEST=Built and flashed the servo v4 firmware. Started servod and verified some functions. Change-Id: Ic0e76794d0603fccc2f733cad388f54650d2cd45 Signed-off-by: Wai-Hong Tam Reviewed-on: https://chromium-review.googlesource.com/1597959 Legacy-Commit-Queue: Commit Bot Reviewed-by: Ruben Rodriguez Buchillon (cherry picked from commit a6bfa5e7a8c013ffb9b48d437d5758f46c38ebb8) Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1642351 --- board/servo_v4/board.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/board/servo_v4/board.h b/board/servo_v4/board.h index e131384e8f..0f8de58243 100644 --- a/board/servo_v4/board.h +++ b/board/servo_v4/board.h @@ -67,6 +67,7 @@ /* This is not actually an EC so disable some features. */ #undef CONFIG_WATCHDOG_HELP #undef CONFIG_LID_SWITCH +#undef CONFIG_HIBERNATE /* Remove console commands / features for flash / RAM savings */ #undef CONFIG_CONSOLE_CMDHELP @@ -75,6 +76,8 @@ #undef CONFIG_CMD_FASTCHARGE #undef CONFIG_CMD_GETTIME #undef CONFIG_CMD_MEM +#undef CONFIG_CMD_SHMEM +#undef CONFIG_CMD_WAITMS /* Enable control of I2C over USB */ #define CONFIG_USB_I2C -- cgit v1.2.1