summaryrefslogtreecommitdiff
path: root/zephyr/app/ec/Kconfig
diff options
context:
space:
mode:
authorJack Rosenthal <jrosenth@chromium.org>2021-03-01 12:56:27 -0700
committerCommit Bot <commit-bot@chromium.org>2021-03-01 21:20:08 +0000
commit6026b793f8abdf22907f9f9b143c4be307cdc832 (patch)
tree4da697237b63a12ad271d973789b03a6842bc1c2 /zephyr/app/ec/Kconfig
parent520d35947127e916321cbd346ffdfd2e5e761221 (diff)
downloadchrome-ec-6026b793f8abdf22907f9f9b143c4be307cdc832.tar.gz
zephyr: enable flash-space optimized defaults
Enable two options by default, CONFIG_SHELL_MINIMAL and CONFIG_CBPRINTF_NANO. Together, these cut back on flash space by a bunch: Before (volteer): Memory region Used Size Region Size %age Used FLASH: 258804 B 512 KB 49.36% SRAM: 63328 B 62 KB 99.75% IDT_LIST: 0 GB 2 KB 0.00% After (volteer): FLASH: 244996 B 512 KB 46.73% SRAM: 61432 B 62 KB 96.76% IDT_LIST: 0 GB 2 KB 0.00% BUG=b:169158406 BRANCH=none TEST=above flash space reduction TEST=boot volteer to OS TEST="help" in uart console now lists all commands Signed-off-by: Jack Rosenthal <jrosenth@chromium.org> Change-Id: I05d3eab717f1880755f7589c186c7f53c4ff1c74 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/2727840 Commit-Queue: Keith Short <keithshort@chromium.org> Reviewed-by: Keith Short <keithshort@chromium.org>
Diffstat (limited to 'zephyr/app/ec/Kconfig')
-rw-r--r--zephyr/app/ec/Kconfig6
1 files changed, 6 insertions, 0 deletions
diff --git a/zephyr/app/ec/Kconfig b/zephyr/app/ec/Kconfig
index eed08f5b8d..b0dab67c1b 100644
--- a/zephyr/app/ec/Kconfig
+++ b/zephyr/app/ec/Kconfig
@@ -5,6 +5,7 @@
menuconfig CROS_EC
bool "Chromium OS EC app"
imply SHELL
+ imply SHELL_MINIMAL
imply PRINTK
help
Enable the common Chromium OS EC application. This prints a message,
@@ -17,6 +18,11 @@ if CROS_EC
rsource "soc/Kconfig"
+choice CBPRINTF_IMPLEMENTATION
+ default CBPRINTF_NANO
+
+endchoice
+
choice
prompt "Chromium OS EC firmware section"