From d1fd3693411d83214f0f88b2f9d7aef12ecd6e02 Mon Sep 17 00:00:00 2001 From: Tony Battersby Date: Tue, 27 Jul 2021 09:35:25 -0400 Subject: [PATCH] lto.inc: disable LTO for grub With gcc 11.1, compiling grub with LTO causes an internal compiler error (ICE), and with gcc 10.2, files under /usr/lib/grub/i386-pc/*.mod are not binary reproducible. [YOCTO #14490] (gcc 11.1 ICE) [YOCTO #14481] (LTO and binary reproducibility) Signed-off-by: Tony Battersby Signed-off-by: Richard Purdie --- meta/conf/distro/include/lto.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/conf/distro/include/lto.inc b/meta/conf/distro/include/lto.inc index 79818ac09f..b8193725a1 100644 --- a/meta/conf/distro/include/lto.inc +++ b/meta/conf/distro/include/lto.inc @@ -22,6 +22,8 @@ LTO:pn-perf = "" # webkit is not linking properly with LTO, disable until next time LTO:pn-webkitgtk = "" LTO:pn-xserver-xorg = "" +LTO:pn-grub = "" +LTO:pn-grub-efi = "" # Custom LTO flags # disable partitioning/streaming algorithm since its uses ASM -- 2.40.1