diff options
author | Jack Rosenthal <jrosenth@chromium.org> | 2021-12-03 09:35:35 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-12-03 18:16:29 +0000 |
commit | 9b319bfc4ebd9c0f19d47aaaf47fb100052292e5 (patch) | |
tree | 6ee7f9760c1052d0fe6ee42e9ca5dbae6091bb09 | |
parent | f3866449092567aa4e7d7c5a6982faacfa874418 (diff) | |
download | chrome-ec-9b319bfc4ebd9c0f19d47aaaf47fb100052292e5.tar.gz |
scarlet: Enable LTO
Scarlet is tight on flash space and enabling LTO buys us a a bunch
space (~10 KB).
BUG=b:208889220
BRANCH=none
TEST=RO: 9996 bytes in flash and 10772 bytes in RAM still available
RW: 21916 bytes in flash and 10764 bytes in RAM still available
Signed-off-by: Jack Rosenthal <jrosenth@chromium.org>
Change-Id: Ifec28beadc94971f951c86b9ae3504e6f0aada0a
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3313650
Reviewed-by: Evan Green <evgreen@chromium.org>
-rw-r--r-- | board/scarlet/board.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/board/scarlet/board.h b/board/scarlet/board.h index 5f5e1ef4bb..8d810d3217 100644 --- a/board/scarlet/board.h +++ b/board/scarlet/board.h @@ -10,6 +10,7 @@ /* Free up flash space */ #define CONFIG_DEBUG_ASSERT_BRIEF +#define CONFIG_LTO #define CONFIG_USB_PD_DEBUG_LEVEL 0 /* Optional modules */ @@ -61,7 +62,6 @@ #undef CONFIG_HOSTCMD_DEBUG_MODE #define CONFIG_HOSTCMD_DEBUG_MODE HCDEBUG_OFF #undef CONFIG_LID_SWITCH -#undef CONFIG_LTO #define CONFIG_POWER_BUTTON #define CONFIG_POWER_BUTTON_IGNORE_LID #define CONFIG_POWER_TRACK_HOST_SLEEP_STATE |