summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/grub
diff options
context:
space:
mode:
authorBill Randle <william.c.randle@intel.com>2016-03-18 11:16:27 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-03-20 23:12:31 +0000
commitecf33963946bb3f1fd63d2d225cd6a92cd0a3678 (patch)
tree8e39bd20e9306824a932bf99f3e2afcecafde543 /meta/recipes-bsp/grub
parent07515b0b697108c6c2d177497dd771ef458e13c0 (diff)
downloadpoky-ecf33963946bb3f1fd63d2d225cd6a92cd0a3678.tar.gz
grub: add -Wno-error=trampolines to native CFLAGS
(Resend as mailer munged previous submission. Also updated comments to indicate problem is not limited to gcc 5.3.0.) Adds -Wno-error=trampolines to native CFLAGS prevent multiple compile errors when using gentoo builf of gcc. [YOCTO #9201] (From OE-Core rev: c2450e4fd01487aaf5bb37a4c70a5397650ba5f8) Signed-off-by: Bill Randle <william.c.randle@intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/grub')
-rw-r--r--meta/recipes-bsp/grub/grub-efi_2.00.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/meta/recipes-bsp/grub/grub-efi_2.00.bb b/meta/recipes-bsp/grub/grub-efi_2.00.bb
index 4e80e1815e..dbc034ce54 100644
--- a/meta/recipes-bsp/grub/grub-efi_2.00.bb
+++ b/meta/recipes-bsp/grub/grub-efi_2.00.bb
@@ -35,6 +35,10 @@ EXTRA_OECONF = "--with-platform=efi --disable-grub-mkfont \
35 35
36EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '--enable-largefile ac_cv_sizeof_off_t=8', '--disable-largefile', d)}" 36EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '--enable-largefile ac_cv_sizeof_off_t=8', '--disable-largefile', d)}"
37 37
38# ldm.c:114:7: error: trampoline generated for nested function 'hook' [-Werror=trampolines]
39# and many other places in the grub code when compiled with some native gcc compilers (specifically, gentoo)
40CFLAGS_append_class-native = " -Wno-error=trampolines"
41
38do_install_class-native() { 42do_install_class-native() {
39 install -d ${D}${bindir} 43 install -d ${D}${bindir}
40 install -m 755 grub-mkimage ${D}${bindir} 44 install -m 755 grub-mkimage ${D}${bindir}