diff options
author | Douglas Anderson <dianders@chromium.org> | 2019-10-07 13:01:31 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-10-08 00:15:27 +0000 |
commit | e41cab2fb308d0ab4d57bc27aa0aba51f50907a6 (patch) | |
tree | e033ee4e777c7e5e2adaa54e1cc72ae0b87ca10e | |
parent | aa668c1508c263091d26300c8f3372dbc3a808f3 (diff) | |
download | chrome-ec-e41cab2fb308d0ab4d57bc27aa0aba51f50907a6.tar.gz |
jerry: Enable LTO to save space
We're outta space on jerry. Builders are failing. It seems like we
can magically save space like CL:1663540 by turning on LTO. Let's do
it!
Before on my local build:
*** 28 bytes in flash and 5380 bytes in RAM still available on jerry RO ****
*** 4476 bytes in flash and 5380 bytes in RAM still available on jerry RW ****
After on my local build:
*** 3168 bytes in flash and 5448 bytes in RAM still available on jerry RO ****
*** 7616 bytes in flash and 5448 bytes in RAM still available on jerry RW ****
BRANCH=None
BUG=chromium:1011621
TEST=See above
Change-Id: I2de0e6474a6d561fa4c44cc12d904a7c6339712f
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1846231
Reviewed-by: Jack Rosenthal <jrosenth@chromium.org>
Reviewed-by: Bernie Thompson <bhthompson@chromium.org>
-rw-r--r-- | board/jerry/board.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/board/jerry/board.h b/board/jerry/board.h index 89a141728c..7682268533 100644 --- a/board/jerry/board.h +++ b/board/jerry/board.h @@ -48,6 +48,8 @@ #define CONFIG_HOSTCMD_ALIGNED +#define CONFIG_LTO + #undef CONFIG_CONSOLE_CMDHELP #undef CONFIG_CONSOLE_HISTORY #undef CONFIG_SOFTWARE_PANIC |