diff options
Diffstat (limited to 'yocto-poky/meta/recipes-bsp/grub/grub-efi_2.00.bb')
-rw-r--r-- | yocto-poky/meta/recipes-bsp/grub/grub-efi_2.00.bb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/yocto-poky/meta/recipes-bsp/grub/grub-efi_2.00.bb b/yocto-poky/meta/recipes-bsp/grub/grub-efi_2.00.bb index 7b44eab8d..5a0dc954a 100644 --- a/yocto-poky/meta/recipes-bsp/grub/grub-efi_2.00.bb +++ b/yocto-poky/meta/recipes-bsp/grub/grub-efi_2.00.bb @@ -33,6 +33,12 @@ EXTRA_OECONF = "--with-platform=efi --disable-grub-mkfont \ --enable-efiemu=no --program-prefix='' \ --enable-liblzma=no --enable-device-mapper=no --enable-libzfs=no" +EXTRA_OECONF += "${@bb.utils.contains('DISTRO_FEATURES', 'largefile', '--enable-largefile', '--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} @@ -55,9 +61,6 @@ do_deploy_class-native() { addtask deploy after do_install before do_build -FILES_${PN}-dbg += "${libdir}/grub/${GRUB_TARGET}-efi/.debug \ - /boot/efi/EFI/BOOT/${GRUB_TARGET}-efi/.debug \ - " FILES_${PN} += "${libdir}/grub/${GRUB_TARGET}-efi \ ${datadir}/grub \ " |