diff options
Diffstat (limited to 'meta/recipes-bsp/grub')
-rw-r--r-- | meta/recipes-bsp/grub/files/grub-2.00-add-oe-kernel.patch | 53 | ||||
-rw-r--r-- | meta/recipes-bsp/grub/grub_2.00.bb | 1 |
2 files changed, 54 insertions, 0 deletions
diff --git a/meta/recipes-bsp/grub/files/grub-2.00-add-oe-kernel.patch b/meta/recipes-bsp/grub/files/grub-2.00-add-oe-kernel.patch new file mode 100644 index 0000000000..eb8916cb72 --- /dev/null +++ b/meta/recipes-bsp/grub/files/grub-2.00-add-oe-kernel.patch | |||
@@ -0,0 +1,53 @@ | |||
1 | From 7ab576a7c61406b7e63739d1b11017ae336b9008 Mon Sep 17 00:00:00 2001 | ||
2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
3 | Date: Mon, 3 Mar 2014 03:34:48 -0500 | ||
4 | Subject: [PATCH] grub.d/10_linux.in: add oe's kernel name | ||
5 | |||
6 | Our kernel's name is bzImage, we need add it to grub.d/10_linux.in so | ||
7 | that the grub-mkconfig and grub-install can work correctly. | ||
8 | |||
9 | We only need add the bzImage to util/grub.d/10_linux.in, but also add it | ||
10 | to util/grub.d/20_linux_xen.in to keep compatibility. | ||
11 | |||
12 | Upstream-Status: Inappropriate [OE specific] | ||
13 | |||
14 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
15 | --- | ||
16 | util/grub.d/10_linux.in | 4 ++-- | ||
17 | util/grub.d/20_linux_xen.in | 2 +- | ||
18 | 2 files changed, 3 insertions(+), 3 deletions(-) | ||
19 | |||
20 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | ||
21 | index 14402e8..c58f417 100644 | ||
22 | --- a/util/grub.d/10_linux.in | ||
23 | +++ b/util/grub.d/10_linux.in | ||
24 | @@ -153,11 +153,11 @@ EOF | ||
25 | machine=`uname -m` | ||
26 | case "x$machine" in | ||
27 | xi?86 | xx86_64) | ||
28 | - list=`for i in /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do | ||
29 | + list=`for i in /boot/bzImage-* /bzImage-* /boot/vmlinuz-* /vmlinuz-* /boot/kernel-* ; do | ||
30 | if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi | ||
31 | done` ;; | ||
32 | *) | ||
33 | - list=`for i in /boot/vmlinuz-* /boot/vmlinux-* /vmlinuz-* /vmlinux-* /boot/kernel-* ; do | ||
34 | + list=`for i in /boot/bzImage-* /boot/vmlinuz-* /boot/vmlinux-* /bzImage-* /vmlinuz-* /vmlinux-* /boot/kernel-* ; do | ||
35 | if grub_file_is_not_garbage "$i" ; then echo -n "$i " ; fi | ||
36 | done` ;; | ||
37 | esac | ||
38 | diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in | ||
39 | index 1d94502..b2decf3 100644 | ||
40 | --- a/util/grub.d/20_linux_xen.in | ||
41 | +++ b/util/grub.d/20_linux_xen.in | ||
42 | @@ -138,7 +138,7 @@ EOF | ||
43 | EOF | ||
44 | } | ||
45 | |||
46 | -linux_list=`for i in /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do | ||
47 | +linux_list=`for i in /boot/bzImage[xz]-* /bzImage[xz]-* /boot/vmlinu[xz]-* /vmlinu[xz]-* /boot/kernel-*; do | ||
48 | if grub_file_is_not_garbage "$i"; then | ||
49 | basename=$(basename $i) | ||
50 | version=$(echo $basename | sed -e "s,^[^0-9]*-,,g") | ||
51 | -- | ||
52 | 1.7.10.4 | ||
53 | |||
diff --git a/meta/recipes-bsp/grub/grub_2.00.bb b/meta/recipes-bsp/grub/grub_2.00.bb index ff9a7c6228..c21031bde1 100644 --- a/meta/recipes-bsp/grub/grub_2.00.bb +++ b/meta/recipes-bsp/grub/grub_2.00.bb | |||
@@ -22,6 +22,7 @@ SRC_URI = "ftp://ftp.gnu.org/gnu/grub/grub-${PV}.tar.gz \ | |||
22 | file://check-if-liblzma-is-disabled.patch \ | 22 | file://check-if-liblzma-is-disabled.patch \ |
23 | file://40_custom \ | 23 | file://40_custom \ |
24 | file://fix-issue-with-flex-2.5.37.patch \ | 24 | file://fix-issue-with-flex-2.5.37.patch \ |
25 | file://grub-2.00-add-oe-kernel.patch \ | ||
25 | " | 26 | " |
26 | 27 | ||
27 | SRC_URI[md5sum] = "e927540b6eda8b024fb0391eeaa4091c" | 28 | SRC_URI[md5sum] = "e927540b6eda8b024fb0391eeaa4091c" |