summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2021-05-08 15:41:14 +0800
committerSteve Sakoman <steve@sakoman.com>2023-08-27 10:54:46 -1000
commitb1fdc92450ba1f3869116d88bd92a5a75b8e9f87 (patch)
tree4632946091a7c85c221549853a5d9a7fe443cdd9
parent02cfe361d64793e86f7cee7d157c53a012b5c3b1 (diff)
downloadpoky-b1fdc92450ba1f3869116d88bd92a5a75b8e9f87.tar.gz
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 <tonyb@cybernetics.com> (From OE-Core rev: 3575290c4cc937ae2f2c5604a5619ac6de9aa071) 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: Steve Sakoman <steve@sakoman.com>
-rw-r--r--meta/recipes-bsp/grub/grub2.inc2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/recipes-bsp/grub/grub2.inc b/meta/recipes-bsp/grub/grub2.inc
index 5a6e213936..bfcda76c24 100644
--- a/meta/recipes-bsp/grub/grub2.inc
+++ b/meta/recipes-bsp/grub/grub2.inc
@@ -128,6 +128,8 @@ GRUBPLATFORM ??= "pc"
128 128
129inherit autotools gettext texinfo pkgconfig 129inherit autotools gettext texinfo pkgconfig
130 130
131CFLAGS_remove = "-O2"
132
131EXTRA_OECONF = "--with-platform=${GRUBPLATFORM} \ 133EXTRA_OECONF = "--with-platform=${GRUBPLATFORM} \
132 --disable-grub-mkfont \ 134 --disable-grub-mkfont \
133 --program-prefix="" \ 135 --program-prefix="" \