Nico Huber has submitted this change. ( https://review.coreboot.org/c/coreboot/+/84015?usp=email )
(
2 is the latest approved patch-set. No files were changed between the latest approved patch-set and the submitted one. )Change subject: libpayload/Makefile.payload: Add lto flags ......................................................................
libpayload/Makefile.payload: Add lto flags
Change-Id: If4496e300dd239b8652285bab05c2f68a51b4437 Signed-off-by: Arthur Heymans arthur@aheymans.xyz Reviewed-on: https://review.coreboot.org/c/coreboot/+/84015 Reviewed-by: Nico Huber nico.h@gmx.de Tested-by: build bot (Jenkins) no-reply@coreboot.org --- M payloads/libpayload/Makefile.payload 1 file changed, 3 insertions(+), 0 deletions(-)
Approvals: Nico Huber: Looks good to me, approved build bot (Jenkins): Verified
diff --git a/payloads/libpayload/Makefile.payload b/payloads/libpayload/Makefile.payload index d2860bf..2eafd4b 100644 --- a/payloads/libpayload/Makefile.payload +++ b/payloads/libpayload/Makefile.payload @@ -85,6 +85,9 @@ CFLAGS = $(CFLAGS_$(ARCH)) CFLAGS += -Os -ffreestanding CFLAGS += -Wall -Wextra -Wmissing-prototypes -Wvla -Werror +ifeq ($(CONFIG_LP_LTO),y) +CFLAGS += -flto +endif
# `lpgcc` in in-tree mode: LPGCC = CC="$(CCACHE) $(CC_$(ARCH))"