]> code.ossystems Code Review - openembedded-core.git/commitdiff
grub2.inc: remove '-O2' from CFLAGS
authorKai Kang <kai.kang@windriver.com>
Sat, 8 May 2021 07:41:14 +0000 (15:41 +0800)
committerAnuj Mittal <anuj.mittal@intel.com>
Tue, 11 May 2021 05:17:13 +0000 (13:17 +0800)
It fails to boot grub after upgrade grub to 2.06. According to
description in

https://bugzilla.yoctoproject.org/show_bug.cgi?id=14367

it is introduced by a commit to fix CVE. So remove option '-O2' from
CFLAGS rather than revert the commit to avoid the failure.

[YOCTO #14367]

CC: Tony Battersby <tonyb@cybernetics.com>
Signed-off-by: Kai Kang <kai.kang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 69805629b8f47fd46a37b7c5cc435982e2ac3d1d)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
meta/recipes-bsp/grub/grub2.inc

index 590deb8d9262a6bd6ba982d8cac1182cc6db8acf..6de683ee1c5821198c2e410aa7c7887ae2ecab95 100644 (file)
@@ -49,6 +49,8 @@ GRUBPLATFORM ??= "pc"
 
 inherit autotools gettext texinfo pkgconfig
 
+CFLAGS_remove = "-O2"
+
 EXTRA_OECONF = "--with-platform=${GRUBPLATFORM} \
                 --disable-grub-mkfont \
                 --program-prefix="" \