]> code.ossystems Code Review - openembedded-core.git/commitdiff
lto.inc: disable LTO for grub
authorTony Battersby <tonyb@cybernetics.com>
Tue, 27 Jul 2021 13:35:25 +0000 (09:35 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 5 Aug 2021 16:48:12 +0000 (17:48 +0100)
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 <tonyb@cybernetics.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/conf/distro/include/lto.inc

index 79818ac09fd501a7965df692cdf7bfa1b4a12286..b8193725a15a06a0ecfd1fff37c9a7d6238b72a8 100644 (file)
@@ -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