summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKai Kang <kai.kang@windriver.com>2021-05-08 15:41:14 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-05-15 17:18:21 +0100
commit7ef7ee52476dc3c35c6f02cc7bc2a05df008b14d (patch)
tree9eecf1b4f96d3e4b1beb8dcbbf9766d22324c0db /meta
parentd39350cf1f91cdbe7e4035aec5cad8ba993c20f6 (diff)
downloadpoky-7ef7ee52476dc3c35c6f02cc7bc2a05df008b14d.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: 7520bd4f72d550052774042c542a3d3ee874b363) 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> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-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 590deb8d92..6de683ee1c 100644
--- a/meta/recipes-bsp/grub/grub2.inc
+++ b/meta/recipes-bsp/grub/grub2.inc
@@ -49,6 +49,8 @@ GRUBPLATFORM ??= "pc"
49 49
50inherit autotools gettext texinfo pkgconfig 50inherit autotools gettext texinfo pkgconfig
51 51
52CFLAGS_remove = "-O2"
53
52EXTRA_OECONF = "--with-platform=${GRUBPLATFORM} \ 54EXTRA_OECONF = "--with-platform=${GRUBPLATFORM} \
53 --disable-grub-mkfont \ 55 --disable-grub-mkfont \
54 --program-prefix="" \ 56 --program-prefix="" \