From: Kai Kang Date: Sat, 8 May 2021 07:41:14 +0000 (+0800) Subject: grub2.inc: remove '-O2' from CFLAGS X-Git-Tag: yocto-3.1.28~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3575290c4cc937ae2f2c5604a5619ac6de9aa071;p=thirdparty%2Fopenembedded%2Fopenembedded-core.git grub2.inc: remove '-O2' from CFLAGS 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 Signed-off-by: Kai Kang Signed-off-by: Richard Purdie (cherry picked from commit 69805629b8f47fd46a37b7c5cc435982e2ac3d1d) Signed-off-by: Steve Sakoman --- diff --git a/meta/recipes-bsp/grub/grub2.inc b/meta/recipes-bsp/grub/grub2.inc index 5a6e213936c..bfcda76c249 100644 --- a/meta/recipes-bsp/grub/grub2.inc +++ b/meta/recipes-bsp/grub/grub2.inc @@ -128,6 +128,8 @@ GRUBPLATFORM ??= "pc" inherit autotools gettext texinfo pkgconfig +CFLAGS_remove = "-O2" + EXTRA_OECONF = "--with-platform=${GRUBPLATFORM} \ --disable-grub-mkfont \ --program-prefix="" \