From 5cfa5b9e0bcafd19eb8109db95b23a2082d611b5 Mon Sep 17 00:00:00 2001 From: Jameson Thies Date: Thu, 7 Jul 2022 20:14:53 +0000 Subject: docs: Add note about removing history to reduce EC image size src/platform/ec/docs/reducing_ec_image_size.md includes a small section stating that the help command can be removed from the EC console free up flash space in the EC. Similarly, the history command can be removed. This CL updates the reducing_ec_image_size.md doc to note that both help and history can be removed to save EC space. BRANCH=None BUG=None TEST=None Signed-off-by: Jameson Thies Change-Id: Iee566ea574c85607eca8a481fec6d2ffdd332405 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3750112 Reviewed-by: Abe Levkoy --- docs/reducing_ec_image_size.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docs/reducing_ec_image_size.md b/docs/reducing_ec_image_size.md index 5e09c99e51..fc5d0c1500 100644 --- a/docs/reducing_ec_image_size.md +++ b/docs/reducing_ec_image_size.md @@ -347,13 +347,14 @@ Disable all debug from ASSERT() calls.
EC is reset using a software breakpoi It is not recommended to disable `CONFIG_PLATFORM_EC_DEBUG_ASSERT_REBOOTS` on shipping firmware. -### Disable console help +### Disable console help and history The help strings can be removed from the final build, saving about 5000 bytes of -flash space. +flash space. The history command can also be disabled to save another 200 bytes +of flash space. -For cros-ec builds, add `#undef CONFIG_CONSOLE_CMDHELP` to the -board.h/baseboard.h file. +For cros-ec builds, add `#undef CONFIG_CONSOLE_CMDHELP` and `#undef +CONFIG_CONSOLE_HISTORY` to the board.h/baseboard.h file. zephyr-ec builds use Zephyr's shell subsystem and by default enable the `CONFIG_SHELL_MINIMAL` option. This option already disables shell help along -- cgit v1.2.1