diff options
author | Keith Short <keithshort@chromium.org> | 2020-08-26 13:23:08 -0600 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2020-08-27 01:12:30 +0000 |
commit | c2ecdc3e62b88aeca159337705ad231dbb9f7e0e (patch) | |
tree | 19a06505745023b9d93adb75b289dafbe3146ff9 /baseboard/kukui | |
parent | 9de8df970c9b04947c2a65cc8c45a4b4a894085d (diff) | |
download | chrome-ec-c2ecdc3e62b88aeca159337705ad231dbb9f7e0e.tar.gz |
kukui: disable CONFIG_SYSTEM_UNLOCKED and CONFIG_CMD_IDLE_STATS
This saves 448 bytes of RO flash space. idlestats is unused by the FAFT
tests so it is safe to disable.
BUG=chromium:1122081
BRANCH=none
TEST=make buildall
Signed-off-by: Keith Short <keithshort@chromium.org>
Change-Id: I9f3a8bc73b10ade226e1812c5c39859770270f97
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2378551
Reviewed-by: Prashant Malani <pmalani@chromium.org>
Reviewed-by: Alexandru M Stan <amstan@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
Commit-Queue: Prashant Malani <pmalani@chromium.org>
Diffstat (limited to 'baseboard/kukui')
-rw-r--r-- | baseboard/kukui/baseboard.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/baseboard/kukui/baseboard.h b/baseboard/kukui/baseboard.h index 6d4086907d..ecb56dbbac 100644 --- a/baseboard/kukui/baseboard.h +++ b/baseboard/kukui/baseboard.h @@ -137,7 +137,11 @@ #define CONFIG_SWITCH #define CONFIG_WATCHDOG_HELP +#ifdef SECTION_IS_RO +#undef CONFIG_SYSTEM_UNLOCKED /* Disabled in RO to save space */ +#else #define CONFIG_SYSTEM_UNLOCKED /* Allow dangerous commands for testing */ +#endif #undef CONFIG_UART_CONSOLE #define CONFIG_UART_CONSOLE 1 @@ -261,6 +265,7 @@ #undef CONFIG_CMD_APTHROTTLE #undef CONFIG_CMD_CRASH #undef CONFIG_CMD_HCDEBUG +#undef CONFIG_CMD_IDLE_STATS #undef CONFIG_CMD_MMAPINFO #undef CONFIG_CMD_PWR_AVG #undef CONFIG_CMD_REGULATOR |