Paul Menzel has uploaded this change for review.

View Change

libpayload: Enable LTO by default

Link Time Optimization (LTO) decreases the size of the binaries, which
is important for firmware with small flash ROM chip sizes. Using LTO
might result in longer build times, which is not an issue for a small
project like libpayload.

Therefore, enable LTO by default.

Change-Id: I4bc58034ea8a9510ddc08d61d19e75a7c6f9cbc7
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
---
M payloads/libpayload/Kconfig
1 file changed, 1 insertion(+), 1 deletion(-)

git pull ssh://review.coreboot.org:29418/coreboot refs/changes/77/51177/1
diff --git a/payloads/libpayload/Kconfig b/payloads/libpayload/Kconfig
index 7a502b5..ae4d1d8 100644
--- a/payloads/libpayload/Kconfig
+++ b/payloads/libpayload/Kconfig
@@ -81,7 +81,7 @@

config LTO
bool "Use link time optimization (LTO)"
- default n
+ default y
depends on COMPILER_GCC
help
Compile with link time optimization. This can often decrease the

To view, visit change 51177. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: coreboot
Gerrit-Branch: master
Gerrit-Change-Id: I4bc58034ea8a9510ddc08d61d19e75a7c6f9cbc7
Gerrit-Change-Number: 51177
Gerrit-PatchSet: 1
Gerrit-Owner: Paul Menzel <paulepanter@users.sourceforge.net>
Gerrit-MessageType: newchange