summaryrefslogtreecommitdiffstats
path: root/meta/recipes-bsp/grub
diff options
context:
space:
mode:
authorRoy Li <rongqing.li@windriver.com>2014-06-06 16:26:25 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-06-06 10:24:07 +0100
commitec53bfd18c4e5d92ec4baedd702248a303a15dfa (patch)
tree07a2748fe945a0fe1be3449a8532c9b6b33be00e /meta/recipes-bsp/grub
parent5a49a24d35794fcf9e3895469a67db992a52305e (diff)
downloadpoky-ec53bfd18c4e5d92ec4baedd702248a303a15dfa.tar.gz
grub-2.00: remove our 40_custom
We have this in recipes-bsp/grub/grub/40_custom: [snip] menuentry "Linux" { set root=(hd0,1) linux /vmlinuz root=__ROOTFS__ rw __CONSOLE__ __VIDEO_MODE__ __VGA_MODE__ quiet } [snip] These lines are only for initrdscripts/files/init-install.sh, the side effect is that it would make the target's grub-mkconfig doesn't work well since the 40_custom will be installed to /etc/grub.d/40_custom, the grub-mkconfig will run the 40_custom, and there will always be a 'menuentry "Linux"' menu in grub.cfg no matter it is valid or not, we can do this in init-install.sh rather than grub to fix the problem, which is also much simpler. We have done the related work in init-install.sh, now we need remove our own 40_custom, and use grub's own 40_custom which is the right one. (From OE-Core rev: 4fad24fef5552bd0e4a5ea0982573ba8e4523570) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Roy Li <rongqing.li@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/grub')
-rwxr-xr-xmeta/recipes-bsp/grub/grub/40_custom9
-rw-r--r--meta/recipes-bsp/grub/grub_2.00.bb2
-rw-r--r--meta/recipes-bsp/grub/grub_git.bb2
3 files changed, 0 insertions, 13 deletions
diff --git a/meta/recipes-bsp/grub/grub/40_custom b/meta/recipes-bsp/grub/grub/40_custom
deleted file mode 100755
index f891b02779..0000000000
--- a/meta/recipes-bsp/grub/grub/40_custom
+++ /dev/null
@@ -1,9 +0,0 @@
1#!/bin/sh
2exec tail -n +3 $0
3# This file provides an easy way to add custom menu entries. Simply type the
4# menu entries you want to add after this comment. Be careful not to change
5# the 'exec tail' line above.
6menuentry "Linux" {
7 set root=(hd0,1)
8 linux /vmlinuz root=__ROOTFS__ rw __CONSOLE__ __VIDEO_MODE__ __VGA_MODE__ quiet
9}
diff --git a/meta/recipes-bsp/grub/grub_2.00.bb b/meta/recipes-bsp/grub/grub_2.00.bb
index 6075b20bdc..ce2d680eec 100644
--- a/meta/recipes-bsp/grub/grub_2.00.bb
+++ b/meta/recipes-bsp/grub/grub_2.00.bb
@@ -20,7 +20,6 @@ SRC_URI = "ftp://ftp.gnu.org/gnu/grub/grub-${PV}.tar.gz \
20 file://grub-2.00-fpmath-sse-387-fix.patch \ 20 file://grub-2.00-fpmath-sse-387-fix.patch \
21 file://remove-gets.patch \ 21 file://remove-gets.patch \
22 file://check-if-liblzma-is-disabled.patch \ 22 file://check-if-liblzma-is-disabled.patch \
23 file://40_custom \
24 file://fix-issue-with-flex-2.5.37.patch \ 23 file://fix-issue-with-flex-2.5.37.patch \
25 file://grub-2.00-add-oe-kernel.patch \ 24 file://grub-2.00-add-oe-kernel.patch \
26 " 25 "
@@ -44,7 +43,6 @@ EXTRA_OECONF = "--with-platform=pc --disable-grub-mkfont --program-prefix="" \
44 43
45do_install_append () { 44do_install_append () {
46 install -d ${D}${sysconfdir}/grub.d 45 install -d ${D}${sysconfdir}/grub.d
47 install -m 0755 ${WORKDIR}/40_custom ${D}${sysconfdir}/grub.d/40_custom
48} 46}
49 47
50INSANE_SKIP_${PN} = "arch" 48INSANE_SKIP_${PN} = "arch"
diff --git a/meta/recipes-bsp/grub/grub_git.bb b/meta/recipes-bsp/grub/grub_git.bb
index 3edc20a856..7f89739179 100644
--- a/meta/recipes-bsp/grub/grub_git.bb
+++ b/meta/recipes-bsp/grub/grub_git.bb
@@ -19,7 +19,6 @@ DEFAULT_PREFERENCE_arm = "1"
19PV = "2.00+${SRCPV}" 19PV = "2.00+${SRCPV}"
20SRCREV = "4b8b9135f1676924a8458da528d264bbc7bbb301" 20SRCREV = "4b8b9135f1676924a8458da528d264bbc7bbb301"
21SRC_URI = "git://git.savannah.gnu.org/grub.git \ 21SRC_URI = "git://git.savannah.gnu.org/grub.git \
22 file://40_custom \
23 file://autogen.sh-exclude-pc.patch \ 22 file://autogen.sh-exclude-pc.patch \
24 file://grub-2.00-add-oe-kernel.patch \ 23 file://grub-2.00-add-oe-kernel.patch \
25 file://asciih-fix-build-warning-error.patch \ 24 file://asciih-fix-build-warning-error.patch \
@@ -52,7 +51,6 @@ do_configure_prepend() {
52 51
53do_install_append () { 52do_install_append () {
54 install -d ${D}${sysconfdir}/grub.d 53 install -d ${D}${sysconfdir}/grub.d
55 install -m 0755 ${WORKDIR}/40_custom ${D}${sysconfdir}/grub.d/40_custom
56 54
57} 55}
58 56