diff options
author | Brian J. Nemec <bnemec@chromium.org> | 2019-12-10 16:48:22 -0800 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2019-12-17 14:46:08 +0000 |
commit | 2e5c1919194be8dfa8bfddc532ce6fa3fa10022b (patch) | |
tree | d3e9e1dcaa0a248f892e7beebb422b94a15d9f33 | |
parent | d0057c5466b67610386ca18cf0eb401b938c60c5 (diff) | |
download | chrome-ec-2e5c1919194be8dfa8bfddc532ce6fa3fa10022b.tar.gz |
Servo: Enable LTO to improve flash space
Enables LTO (Link Time Optimization) in order to improve
flash space on ServoV4. Current builds have 48B remaining,
the link time optimization frees up 6kB of space in the flash.
Feature was enabled on ServoMicro and sweetberry.
BRANCH=servo
BUG=b:145512023
TEST=Manually tested flashing process to ensure they updated
both regions, basic communication, and functionality on the
following platforms: ServoV4, ServoMicro, and Sweetberry.
Change-Id: I8f7a0d23478581c54a7379241a0290b897a635ea
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/1961149
Tested-by: Brian Nemec <bnemec@chromium.org>
Commit-Queue: Jett Rink <jettrink@chromium.org>
Reviewed-by: Jett Rink <jettrink@chromium.org>
-rw-r--r-- | board/servo_micro/board.h | 2 | ||||
-rw-r--r-- | board/servo_v4/board.h | 2 | ||||
-rw-r--r-- | board/sweetberry/board.h | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/board/servo_micro/board.h b/board/servo_micro/board.h index 2806a70d25..99fa722fb4 100644 --- a/board/servo_micro/board.h +++ b/board/servo_micro/board.h @@ -8,6 +8,8 @@ #ifndef __CROS_EC_BOARD_H #define __CROS_EC_BOARD_H +#define CONFIG_LTO + /* 48 MHz SYSCLK clock frequency */ #define CPU_CLOCK 48000000 diff --git a/board/servo_v4/board.h b/board/servo_v4/board.h index 2b302517f6..1ae13e8d25 100644 --- a/board/servo_v4/board.h +++ b/board/servo_v4/board.h @@ -8,6 +8,8 @@ #ifndef __CROS_EC_BOARD_H #define __CROS_EC_BOARD_H +#define CONFIG_LTO + /* * Board Versions: * Versions are designated by the PCB color and consist of red, blue, and diff --git a/board/sweetberry/board.h b/board/sweetberry/board.h index 43503e096e..1edea99b9a 100644 --- a/board/sweetberry/board.h +++ b/board/sweetberry/board.h @@ -8,6 +8,8 @@ #ifndef __CROS_EC_BOARD_H #define __CROS_EC_BOARD_H +#define CONFIG_LTO + /* Use external clock */ #define CONFIG_STM32_CLOCK_HSE_HZ 24000000 |