* [PATCH 0/1] Fix grub fails to boot failure @ 2021-05-08 7:41 kai 2021-05-08 7:41 ` [PATCH 1/1] grub2.inc: remove '-O2' from CFLAGS kai 0 siblings, 1 reply; 2+ messages in thread From: kai @ 2021-05-08 7:41 UTC (permalink / raw) To: tonyb; +Cc: openembedded-core From: Kai Kang <kai.kang@windriver.com> Hi Tony, I met the same failure with you. I tried with removing '-O2' and it works for me. So I send it out. Kai Kang (1): grub2.inc: remove '-O2' from CFLAGS meta/recipes-bsp/grub/grub2.inc | 2 ++ 1 file changed, 2 insertions(+) -- 2.17.1 ^ permalink raw reply [flat|nested] 2+ messages in thread
* [PATCH 1/1] grub2.inc: remove '-O2' from CFLAGS 2021-05-08 7:41 [PATCH 0/1] Fix grub fails to boot failure kai @ 2021-05-08 7:41 ` kai 0 siblings, 0 replies; 2+ messages in thread From: kai @ 2021-05-08 7:41 UTC (permalink / raw) To: tonyb; +Cc: openembedded-core From: Kai Kang <kai.kang@windriver.com> 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> --- meta/recipes-bsp/grub/grub2.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/meta/recipes-bsp/grub/grub2.inc b/meta/recipes-bsp/grub/grub2.inc index 590deb8d92..6de683ee1c 100644 --- a/meta/recipes-bsp/grub/grub2.inc +++ b/meta/recipes-bsp/grub/grub2.inc @@ -49,6 +49,8 @@ GRUBPLATFORM ??= "pc" inherit autotools gettext texinfo pkgconfig +CFLAGS_remove = "-O2" + EXTRA_OECONF = "--with-platform=${GRUBPLATFORM} \ --disable-grub-mkfont \ --program-prefix="" \ -- 2.17.1 ^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-05-08 7:41 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2021-05-08 7:41 [PATCH 0/1] Fix grub fails to boot failure kai 2021-05-08 7:41 ` [PATCH 1/1] grub2.inc: remove '-O2' from CFLAGS kai
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox