grub 2.0: several fixes
* Make grub, grub-efi grub_git use a grub2.inc to reduce the duplicated code. * Make grub and grub-efi use the same patches since they use the same source. (grub_git is different). * grub-efi: - Use autotools to replace autotools-brokensep - Remove the DEPENDS of freetype, it should be a RDEPENDS. - Remove grub-2.00-ignore-gnulib-gets-stupidity.patch since it is a duplication of remove-gets.patch. - Make grub-efi.rpm contain files rather than make an empty package. * grub_git: - Fix a SSE build failure. [YOCTO #6310] (From OE-Core rev: cf4aaed28a34cc652352f0817316187b72babc76) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
175d162b19
commit
ac867c3d4d
|
@ -1,28 +0,0 @@
|
|||
From f66d54b934710f54999debb72e8b7c620edece1d Mon Sep 17 00:00:00 2001
|
||||
From: Peter Jones <pjones@redhat.com>
|
||||
Date: Fri, 25 May 2012 15:28:19 -0400
|
||||
Subject: [PATCH] gnulib accused in build breaking shocker.
|
||||
|
||||
Upstream-Status: pending [Fedora will push this]
|
||||
|
||||
---
|
||||
grub-core/gnulib/stdio.in.h | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/grub-core/gnulib/stdio.in.h b/grub-core/gnulib/stdio.in.h
|
||||
index 80b9dbf..69932d9 100644
|
||||
--- a/grub-core/gnulib/stdio.in.h
|
||||
+++ b/grub-core/gnulib/stdio.in.h
|
||||
@@ -141,7 +141,9 @@ _GL_WARN_ON_USE (fflush, "fflush is not always POSIX compliant - "
|
||||
so any use of gets warrants an unconditional warning. Assume it is
|
||||
always declared, since it is required by C89. */
|
||||
#undef gets
|
||||
+#if 0
|
||||
_GL_WARN_ON_USE (gets, "gets is a security hole - use fgets instead");
|
||||
+#endif
|
||||
|
||||
#if @GNULIB_FOPEN@
|
||||
# if @REPLACE_FOPEN@
|
||||
--
|
||||
1.7.10.1
|
||||
|
|
@ -1,39 +1,12 @@
|
|||
SUMMARY = "GRUB2 is the next-generation GRand Unified Bootloader"
|
||||
require grub2.inc
|
||||
|
||||
DESCRIPTION = "GRUB2 is the next generaion of a GPLed bootloader \
|
||||
intended to unify bootloading across x86 operating systems. In \
|
||||
addition to loading the Linux kernel, it implements the Multiboot \
|
||||
standard, which allows for flexible loading of multiple boot images. \
|
||||
This recipe builds an EFI binary for the target. It does not install \
|
||||
or package anything, it only deploys a target-arch GRUB EFI image."
|
||||
|
||||
HOMEPAGE = "http://www.gnu.org/software/grub/"
|
||||
SECTION = "bootloaders"
|
||||
|
||||
LICENSE = "GPLv3"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
||||
|
||||
# FIXME: We should be able to optionally drop freetype as a dependency
|
||||
DEPENDS = "autogen-native flex-native bison-native"
|
||||
DEPENDS_class-target = "grub-efi-native"
|
||||
RDEPENDS_${PN}_class-target = "diffutils freetype"
|
||||
PR = "r2"
|
||||
|
||||
SRC_URI = "ftp://ftp.gnu.org/gnu/grub/grub-${PV}.tar.gz \
|
||||
SRC_URI += " \
|
||||
file://cfg \
|
||||
file://grub-2.00-fpmath-sse-387-fix.patch \
|
||||
file://grub-2.00-fix-enable_execute_stack-check.patch \
|
||||
file://check-if-liblzma-is-disabled.patch \
|
||||
file://grub-no-unused-result.patch \
|
||||
file://grub-2.00-ignore-gnulib-gets-stupidity.patch \
|
||||
file://fix-issue-with-flex-2.5.37.patch \
|
||||
file://grub-efi-allow-a-compilation-without-mcmodel-large.patch \
|
||||
file://grub-2.00-add-oe-kernel.patch \
|
||||
file://grub-efi-fix-with-glibc-2.20.patch \
|
||||
"
|
||||
SRC_URI[md5sum] = "e927540b6eda8b024fb0391eeaa4091c"
|
||||
SRC_URI[sha256sum] = "65b39a0558f8c802209c574f4d02ca263a804e8a564bc6caf1cd0fd3b3cc11e3"
|
||||
|
||||
COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)'
|
||||
|
||||
S = "${WORKDIR}/grub-${PV}"
|
||||
|
||||
|
@ -53,17 +26,13 @@ python __anonymous () {
|
|||
d.setVar("GRUB_IMAGE", grubimage)
|
||||
}
|
||||
|
||||
inherit autotools-brokensep gettext texinfo deploy
|
||||
inherit deploy
|
||||
|
||||
CACHED_CONFIGUREVARS += "ac_cv_path_HELP2MAN="
|
||||
EXTRA_OECONF = "--with-platform=efi --disable-grub-mkfont \
|
||||
--enable-efiemu=no --program-prefix='' \
|
||||
--enable-liblzma=no --enable-device-mapper=no --enable-libzfs=no"
|
||||
|
||||
do_install_class-target() {
|
||||
:
|
||||
}
|
||||
|
||||
do_install_class-native() {
|
||||
install -d ${D}${bindir}
|
||||
install -m 755 grub-mkimage ${D}${bindir}
|
||||
|
@ -86,7 +55,12 @@ do_deploy_class-native() {
|
|||
|
||||
addtask deploy after do_install before do_build
|
||||
|
||||
FILES_${PN}-dbg += "${libdir}/${BPN}/${GRUB_TARGET}-efi/.debug"
|
||||
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 \
|
||||
"
|
||||
|
||||
BBCLASSEXTEND = "native"
|
||||
ALLOW_EMPTY_${PN} = "1"
|
||||
|
||||
|
|
|
@ -0,0 +1,44 @@
|
|||
SUMMARY = "GRUB2 is the next-generation GRand Unified Bootloader"
|
||||
|
||||
DESCRIPTION = "GRUB2 is the next generaion of a GPLed bootloader \
|
||||
intended to unify bootloading across x86 operating systems. In \
|
||||
addition to loading the Linux kernel, it implements the Multiboot \
|
||||
standard, which allows for flexible loading of multiple boot images."
|
||||
|
||||
HOMEPAGE = "http://www.gnu.org/software/grub/"
|
||||
SECTION = "bootloaders"
|
||||
|
||||
LICENSE = "GPLv3"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
||||
|
||||
SRC_URI = "ftp://ftp.gnu.org/gnu/grub/grub-${PV}.tar.gz \
|
||||
file://grub-2.00-fpmath-sse-387-fix.patch \
|
||||
file://check-if-liblzma-is-disabled.patch \
|
||||
file://fix-issue-with-flex-2.5.37.patch \
|
||||
file://grub-2.00-add-oe-kernel.patch \
|
||||
file://grub-install.in.patch \
|
||||
file://remove-gets.patch \
|
||||
file://fix-endianness-problem.patch \
|
||||
file://grub2-remove-sparc64-setup-from-x86-builds.patch \
|
||||
file://grub-2.00-fix-enable_execute_stack-check.patch \
|
||||
file://grub-no-unused-result.patch \
|
||||
file://grub-efi-allow-a-compilation-without-mcmodel-large.patch \
|
||||
file://grub-efi-fix-with-glibc-2.20.patch \
|
||||
"
|
||||
|
||||
DEPENDS = "autogen-native flex-native bison-native xz"
|
||||
|
||||
SRC_URI[md5sum] = "e927540b6eda8b024fb0391eeaa4091c"
|
||||
SRC_URI[sha256sum] = "65b39a0558f8c802209c574f4d02ca263a804e8a564bc6caf1cd0fd3b3cc11e3"
|
||||
|
||||
COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)'
|
||||
|
||||
inherit autotools gettext texinfo
|
||||
|
||||
# grub and grub-efi's sysroot/${datadir}/grub/grub-mkconfig_lib are
|
||||
# conflicted, remove it since no one uses it.
|
||||
SYSROOT_PREPROCESS_FUNCS_class-target += "remove_sysroot_mkconfig_lib"
|
||||
remove_sysroot_mkconfig_lib() {
|
||||
rm -r "${SYSROOT_DESTDIR}${datadir}/grub/grub-mkconfig_lib"
|
||||
}
|
||||
|
|
@ -1,41 +1,11 @@
|
|||
SUMMARY = "GRUB2 is the next-generation GRand Unified Bootloader"
|
||||
require grub2.inc
|
||||
|
||||
DESCRIPTION = "GRUB2 is the next generaion of a GPLed bootloader \
|
||||
intended to unify bootloading across x86 operating systems. In \
|
||||
addition to loading the Linux kernel, it implements the Multiboot \
|
||||
standard, which allows for flexible loading of multiple boot images."
|
||||
|
||||
HOMEPAGE = "http://www.gnu.org/software/grub/"
|
||||
SECTION = "bootloaders"
|
||||
|
||||
LICENSE = "GPLv3"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
||||
|
||||
DEPENDS = "autogen-native flex-native bison-native xz"
|
||||
RDEPENDS_${PN} = "diffutils freetype"
|
||||
PR = "r1"
|
||||
|
||||
SRC_URI = "ftp://ftp.gnu.org/gnu/grub/grub-${PV}.tar.gz \
|
||||
file://grub-install.in.patch \
|
||||
file://grub-2.00-fpmath-sse-387-fix.patch \
|
||||
file://remove-gets.patch \
|
||||
file://check-if-liblzma-is-disabled.patch \
|
||||
file://fix-issue-with-flex-2.5.37.patch \
|
||||
file://grub-2.00-add-oe-kernel.patch \
|
||||
file://fix-endianness-problem.patch \
|
||||
file://grub2-remove-sparc64-setup-from-x86-builds.patch \
|
||||
"
|
||||
|
||||
SRC_URI[md5sum] = "e927540b6eda8b024fb0391eeaa4091c"
|
||||
SRC_URI[sha256sum] = "65b39a0558f8c802209c574f4d02ca263a804e8a564bc6caf1cd0fd3b3cc11e3"
|
||||
|
||||
COMPATIBLE_HOST = '(x86_64.*|i.86.*)-(linux|freebsd.*)'
|
||||
|
||||
FILES_${PN}-dbg += "${libdir}/${BPN}/i386-pc/.debug"
|
||||
|
||||
|
||||
inherit autotools gettext texinfo
|
||||
|
||||
PACKAGECONFIG ??= ""
|
||||
PACKAGECONFIG[grub-mount] = "--enable-grub-mount,--disable-grub-mount,fuse"
|
||||
PACKAGECONFIG[device-mapper] = "--enable-device-mapper,--disable-device-mapper,lvm2"
|
||||
|
|
|
@ -1,17 +1,4 @@
|
|||
SUMMARY = "GRUB2 is the next-generation GRand Unified Bootloader"
|
||||
|
||||
DESCRIPTION = "GRUB2 is the next generaion of a GPLed bootloader \
|
||||
intended to unify bootloading across x86 operating systems. In \
|
||||
addition to loading the Linux kernel, it implements the Multiboot \
|
||||
standard, which allows for flexible loading of multiple boot images."
|
||||
|
||||
HOMEPAGE = "http://www.gnu.org/software/grub/"
|
||||
SECTION = "bootloaders"
|
||||
|
||||
LICENSE = "GPLv3"
|
||||
LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504"
|
||||
|
||||
DEPENDS = "autogen-native flex-native bison-native xz freetype"
|
||||
require grub2.inc
|
||||
|
||||
DEFAULT_PREFERENCE = "-1"
|
||||
DEFAULT_PREFERENCE_arm = "1"
|
||||
|
@ -19,6 +6,7 @@ DEFAULT_PREFERENCE_arm = "1"
|
|||
PV = "2.00+${SRCPV}"
|
||||
SRCREV = "87de66d9d83446ecddb29cfbdf7369102c8e209e"
|
||||
SRC_URI = "git://git.savannah.gnu.org/grub.git \
|
||||
file://grub-2.00-fpmath-sse-387-fix.patch \
|
||||
file://autogen.sh-exclude-pc.patch \
|
||||
file://grub-2.00-add-oe-kernel.patch \
|
||||
file://0001-Fix-build-with-glibc-2.20.patch \
|
||||
|
|
Loading…
Reference in New Issue