[oe-commits] [openembedded-core] 72/82: grub: add -Wno-error=trampolines to native CFLAGS

git at git.openembedded.org git at git.openembedded.org
Sun Mar 20 07:53:22 UTC 2016


rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit ac7b90022b94da23f7b14fe3dbfe64c8176cd889
Author: Bill Randle <william.c.randle at intel.com>
AuthorDate: Fri Mar 18 11:16:27 2016 -0700

    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]
    
    Signed-off-by: Bill Randle <william.c.randle at intel.com>
    Signed-off-by: Ross Burton <ross.burton at intel.com>
---
 meta/recipes-bsp/grub/grub-efi_2.00.bb | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/meta/recipes-bsp/grub/grub-efi_2.00.bb b/meta/recipes-bsp/grub/grub-efi_2.00.bb
index 4e80e18..dbc034c 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 \
 
 EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '--enable-largefile ac_cv_sizeof_off_t=8', '--disable-largefile', d)}"
 
+# ldm.c:114:7: error: trampoline generated for nested function 'hook' [-Werror=trampolines]
+# and many other places in the grub code when compiled with some native gcc compilers (specifically, gentoo)
+CFLAGS_append_class-native = " -Wno-error=trampolines"
+
 do_install_class-native() {
 	install -d ${D}${bindir}
 	install -m 755 grub-mkimage ${D}${bindir}

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list