diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2019-07-29 11:20:26 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-07-31 13:50:46 +0100 |
commit | cfb190a3c9771b382d994702a6e74bb662bf6a8c (patch) | |
tree | 85fc94dbf4ec102b1e86fab99ee1be5ea34ebdf7 /meta/recipes-bsp/grub | |
parent | 07ba3a1d7320946c22a3dafefcb2aab6b1906b90 (diff) | |
download | poky-cfb190a3c9771b382d994702a6e74bb662bf6a8c.tar.gz |
grub: upgrade 2.02 -> 2.04
* For changes in this version, see:
http://git.savannah.gnu.org/cgit/grub.git/tree/NEWS?h=grub-2.04
* Remove backported patches and refresh others.
* Remove the musl patch as it's no longer needed.
* Use configure option --disable-werror instead of passing through CFLAGS.
(From OE-Core rev: 07222d213d1da0ccade1c61ed19a7ecdc4966edd)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/grub')
-rw-r--r-- | meta/recipes-bsp/grub/files/0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch | 13 | ||||
-rw-r--r-- | meta/recipes-bsp/grub/files/0001-Unset-need_charset_alias-when-building-for-musl.patch | 30 | ||||
-rw-r--r-- | meta/recipes-bsp/grub/files/0001-grub-setup-Debug-message-cleanup.patch | 34 | ||||
-rw-r--r-- | meta/recipes-bsp/grub/files/0001-grub.d-10_linux.in-add-oe-s-kernel-name.patch | 16 | ||||
-rw-r--r-- | meta/recipes-bsp/grub/files/0001-x86-64-Treat-R_X86_64_PLT32-as-R_X86_64_PC32.patch | 76 | ||||
-rw-r--r-- | meta/recipes-bsp/grub/files/autogen.sh-exclude-pc.patch | 15 | ||||
-rw-r--r-- | meta/recipes-bsp/grub/files/gcc8.patch | 74 | ||||
-rw-r--r-- | meta/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch | 21 | ||||
-rw-r--r-- | meta/recipes-bsp/grub/grub-efi_2.04.bb (renamed from meta/recipes-bsp/grub/grub-efi_2.02.bb) | 0 | ||||
-rw-r--r-- | meta/recipes-bsp/grub/grub2.inc | 13 | ||||
-rw-r--r-- | meta/recipes-bsp/grub/grub_2.04.bb (renamed from meta/recipes-bsp/grub/grub_2.02.bb) | 0 |
11 files changed, 35 insertions, 257 deletions
diff --git a/meta/recipes-bsp/grub/files/0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch b/meta/recipes-bsp/grub/files/0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch index ce3238f3a1..6b73878cc0 100644 --- a/meta/recipes-bsp/grub/files/0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch +++ b/meta/recipes-bsp/grub/files/0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From fb7b827a56b1f92f882d0f5ef130acc968b23293 Mon Sep 17 00:00:00 2001 | 1 | From 96d9aa55d29b24e2490d5647a9efc66940fc400f Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 13 Jan 2016 19:17:31 +0000 | 3 | Date: Wed, 13 Jan 2016 19:17:31 +0000 |
4 | Subject: [PATCH] Disable -mfpmath=sse as well when SSE is disabled | 4 | Subject: [PATCH] Disable -mfpmath=sse as well when SSE is disabled |
@@ -22,17 +22,17 @@ cc1: all warnings being treated as errors | |||
22 | 22 | ||
23 | Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> | 23 | Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com> |
24 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 24 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
25 | --- | ||
26 | Upstream-Status: Pending | ||
27 | 25 | ||
26 | Upstream-Status: Pending | ||
27 | --- | ||
28 | configure.ac | 2 +- | 28 | configure.ac | 2 +- |
29 | 1 file changed, 1 insertion(+), 1 deletion(-) | 29 | 1 file changed, 1 insertion(+), 1 deletion(-) |
30 | 30 | ||
31 | diff --git a/configure.ac b/configure.ac | 31 | diff --git a/configure.ac b/configure.ac |
32 | index 26d2f33..9ce56de 100644 | 32 | index 7656f24..0868ea9 100644 |
33 | --- a/configure.ac | 33 | --- a/configure.ac |
34 | +++ b/configure.ac | 34 | +++ b/configure.ac |
35 | @@ -783,7 +783,7 @@ fi | 35 | @@ -824,7 +824,7 @@ fi |
36 | if ( test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64 ) && test "x$platform" != xemu; then | 36 | if ( test "x$target_cpu" = xi386 || test "x$target_cpu" = xx86_64 ) && test "x$platform" != xemu; then |
37 | # Some toolchains enable these features by default, but they need | 37 | # Some toolchains enable these features by default, but they need |
38 | # registers that aren't set up properly in GRUB. | 38 | # registers that aren't set up properly in GRUB. |
@@ -41,6 +41,3 @@ index 26d2f33..9ce56de 100644 | |||
41 | fi | 41 | fi |
42 | 42 | ||
43 | # GRUB doesn't use float or doubles at all. Yet some toolchains may decide | 43 | # GRUB doesn't use float or doubles at all. Yet some toolchains may decide |
44 | -- | ||
45 | 2.7.0 | ||
46 | |||
diff --git a/meta/recipes-bsp/grub/files/0001-Unset-need_charset_alias-when-building-for-musl.patch b/meta/recipes-bsp/grub/files/0001-Unset-need_charset_alias-when-building-for-musl.patch deleted file mode 100644 index 67dc115491..0000000000 --- a/meta/recipes-bsp/grub/files/0001-Unset-need_charset_alias-when-building-for-musl.patch +++ /dev/null | |||
@@ -1,30 +0,0 @@ | |||
1 | From b9565dc2fe0c4f7daaec91b7e83bc7313dee2f4a Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Mon, 13 Apr 2015 17:02:13 -0700 | ||
4 | Subject: [PATCH] Unset need_charset_alias when building for musl | ||
5 | |||
6 | localcharset uses ac_cv_gnu_library_2_1 from glibc21.m4 | ||
7 | which actually shoudl be fixed in gnulib and then all downstream | ||
8 | projects will get it eventually. For now we apply the fix to | ||
9 | coreutils | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | lib/gnulib.mk | 2 +- | ||
16 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
17 | |||
18 | Index: grub-2.00/grub-core/gnulib/Makefile.am | ||
19 | =================================================================== | ||
20 | --- grub-2.00.orig/grub-core/gnulib/Makefile.am | ||
21 | +++ grub-2.00/grub-core/gnulib/Makefile.am | ||
22 | @@ -410,7 +410,7 @@ install-exec-localcharset: all-local | ||
23 | case '$(host_os)' in \ | ||
24 | darwin[56]*) \ | ||
25 | need_charset_alias=true ;; \ | ||
26 | - darwin* | cygwin* | mingw* | pw32* | cegcc*) \ | ||
27 | + darwin* | cygwin* | mingw* | pw32* | cegcc* | linux-musl*) \ | ||
28 | need_charset_alias=false ;; \ | ||
29 | *) \ | ||
30 | need_charset_alias=true ;; \ | ||
diff --git a/meta/recipes-bsp/grub/files/0001-grub-setup-Debug-message-cleanup.patch b/meta/recipes-bsp/grub/files/0001-grub-setup-Debug-message-cleanup.patch deleted file mode 100644 index e01fcdffb0..0000000000 --- a/meta/recipes-bsp/grub/files/0001-grub-setup-Debug-message-cleanup.patch +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | From 4e9d9358e0cda6d01020005eb6343e3b69f7201a Mon Sep 17 00:00:00 2001 | ||
2 | From: Cao jin <caoj.fnst@cn.fujitsu.com> | ||
3 | Date: Tue, 3 Jul 2018 18:51:13 +0800 | ||
4 | Subject: [PATCH] grub-setup: Debug message cleanup | ||
5 | |||
6 | Variable "root" is initialized after root device probing and is null in | ||
7 | current place, so, drop it. | ||
8 | |||
9 | Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com> | ||
10 | Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> | ||
11 | --- | ||
12 | Upstream-Status: Backport [http://git.savannah.gnu.org/cgit/grub.git/commit/?id=4e9d9358e0cda6d01020005eb6343e3b69f7201a] | ||
13 | |||
14 | util/setup.c | 3 +-- | ||
15 | 1 file changed, 1 insertion(+), 2 deletions(-) | ||
16 | |||
17 | diff --git a/util/setup.c b/util/setup.c | ||
18 | index 80363075d..9c1e1b7da 100644 | ||
19 | --- a/util/setup.c | ||
20 | +++ b/util/setup.c | ||
21 | @@ -305,9 +305,8 @@ SETUP (const char *dir, | ||
22 | bl.first_block = (struct grub_boot_blocklist *) (core_img | ||
23 | + GRUB_DISK_SECTOR_SIZE | ||
24 | - sizeof (*bl.block)); | ||
25 | - grub_util_info ("root is `%s', dest is `%s'", root, dest); | ||
26 | |||
27 | - grub_util_info ("Opening dest"); | ||
28 | + grub_util_info ("Opening dest `%s'", dest); | ||
29 | dest_dev = grub_device_open (dest); | ||
30 | if (! dest_dev) | ||
31 | grub_util_error ("%s", grub_errmsg); | ||
32 | -- | ||
33 | 2.17.2 (Apple Git-113) | ||
34 | |||
diff --git a/meta/recipes-bsp/grub/files/0001-grub.d-10_linux.in-add-oe-s-kernel-name.patch b/meta/recipes-bsp/grub/files/0001-grub.d-10_linux.in-add-oe-s-kernel-name.patch index d5bfaa177a..69b04aa56f 100644 --- a/meta/recipes-bsp/grub/files/0001-grub.d-10_linux.in-add-oe-s-kernel-name.patch +++ b/meta/recipes-bsp/grub/files/0001-grub.d-10_linux.in-add-oe-s-kernel-name.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From b512c77222a8b133d7dd71a0dcef081a921d97d4 Mon Sep 17 00:00:00 2001 | 1 | From 8f47ed4aaefba087b6ca76e59c9f832b6a0702bc Mon Sep 17 00:00:00 2001 |
2 | From: Khem Raj <raj.khem@gmail.com> | 2 | From: Khem Raj <raj.khem@gmail.com> |
3 | Date: Wed, 13 Jan 2016 19:28:00 +0000 | 3 | Date: Wed, 13 Jan 2016 19:28:00 +0000 |
4 | Subject: [PATCH] grub.d/10_linux.in: add oe's kernel name | 4 | Subject: [PATCH] grub.d/10_linux.in: add oe's kernel name |
@@ -11,18 +11,19 @@ to util/grub.d/20_linux_xen.in to keep compatibility. | |||
11 | 11 | ||
12 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | 12 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> |
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | 13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> |
14 | --- | 14 | |
15 | Upstream-Status: Inappropriate [OE specific] | 15 | Upstream-Status: Inappropriate [OE specific] |
16 | 16 | ||
17 | --- | ||
17 | util/grub.d/10_linux.in | 6 +++--- | 18 | util/grub.d/10_linux.in | 6 +++--- |
18 | util/grub.d/20_linux_xen.in | 2 +- | 19 | util/grub.d/20_linux_xen.in | 2 +- |
19 | 2 files changed, 4 insertions(+), 4 deletions(-) | 20 | 2 files changed, 4 insertions(+), 4 deletions(-) |
20 | 21 | ||
21 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in | 22 | diff --git a/util/grub.d/10_linux.in b/util/grub.d/10_linux.in |
22 | index 859b608..946be5d 100644 | 23 | index 4532266..cba2617 100644 |
23 | --- a/util/grub.d/10_linux.in | 24 | --- a/util/grub.d/10_linux.in |
24 | +++ b/util/grub.d/10_linux.in | 25 | +++ b/util/grub.d/10_linux.in |
25 | @@ -148,12 +148,12 @@ machine=`uname -m` | 26 | @@ -164,12 +164,12 @@ machine=`uname -m` |
26 | case "x$machine" in | 27 | case "x$machine" in |
27 | xi?86 | xx86_64) | 28 | xi?86 | xx86_64) |
28 | list= | 29 | list= |
@@ -39,10 +40,10 @@ index 859b608..946be5d 100644 | |||
39 | done ;; | 40 | done ;; |
40 | esac | 41 | esac |
41 | diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in | 42 | diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d/20_linux_xen.in |
42 | index f532fb9..1994244 100644 | 43 | index 96179ea..98d16ae 100644 |
43 | --- a/util/grub.d/20_linux_xen.in | 44 | --- a/util/grub.d/20_linux_xen.in |
44 | +++ b/util/grub.d/20_linux_xen.in | 45 | +++ b/util/grub.d/20_linux_xen.in |
45 | @@ -138,7 +138,7 @@ EOF | 46 | @@ -154,7 +154,7 @@ EOF |
46 | } | 47 | } |
47 | 48 | ||
48 | linux_list= | 49 | linux_list= |
@@ -51,6 +52,3 @@ index f532fb9..1994244 100644 | |||
51 | if grub_file_is_not_garbage "$i"; then | 52 | if grub_file_is_not_garbage "$i"; then |
52 | basename=$(basename $i) | 53 | basename=$(basename $i) |
53 | version=$(echo $basename | sed -e "s,^[^0-9]*-,,g") | 54 | version=$(echo $basename | sed -e "s,^[^0-9]*-,,g") |
54 | -- | ||
55 | 2.7.0 | ||
56 | |||
diff --git a/meta/recipes-bsp/grub/files/0001-x86-64-Treat-R_X86_64_PLT32-as-R_X86_64_PC32.patch b/meta/recipes-bsp/grub/files/0001-x86-64-Treat-R_X86_64_PLT32-as-R_X86_64_PC32.patch deleted file mode 100644 index 61d58c4047..0000000000 --- a/meta/recipes-bsp/grub/files/0001-x86-64-Treat-R_X86_64_PLT32-as-R_X86_64_PC32.patch +++ /dev/null | |||
@@ -1,76 +0,0 @@ | |||
1 | Upstream-Status: Backport | ||
2 | Signed-off-by: Ross Burton <ross.burton@intel.com> | ||
3 | |||
4 | From 842c390469e2c2e10b5aa36700324cd3bde25875 Mon Sep 17 00:00:00 2001 | ||
5 | From: "H.J. Lu" <hjl.tools@gmail.com> | ||
6 | Date: Sat, 17 Feb 2018 06:47:28 -0800 | ||
7 | Subject: [PATCH] x86-64: Treat R_X86_64_PLT32 as R_X86_64_PC32 | ||
8 | |||
9 | Starting from binutils commit bd7ab16b4537788ad53521c45469a1bdae84ad4a: | ||
10 | |||
11 | https://sourceware.org/git/?p=binutils-gdb.git;a=commit;h=bd7ab16b4537788ad53521c45469a1bdae84ad4a | ||
12 | |||
13 | x86-64 assembler generates R_X86_64_PLT32, instead of R_X86_64_PC32, for | ||
14 | 32-bit PC-relative branches. Grub2 should treat R_X86_64_PLT32 as | ||
15 | R_X86_64_PC32. | ||
16 | |||
17 | Signed-off-by: H.J. Lu <hjl.tools@gmail.com> | ||
18 | Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> | ||
19 | --- | ||
20 | grub-core/efiemu/i386/loadcore64.c | 1 + | ||
21 | grub-core/kern/x86_64/dl.c | 1 + | ||
22 | util/grub-mkimagexx.c | 1 + | ||
23 | util/grub-module-verifier.c | 1 + | ||
24 | 4 files changed, 4 insertions(+) | ||
25 | |||
26 | diff --git a/grub-core/efiemu/i386/loadcore64.c b/grub-core/efiemu/i386/loadcore64.c | ||
27 | index e49d0b6ff..18facf47f 100644 | ||
28 | --- a/grub-core/efiemu/i386/loadcore64.c | ||
29 | +++ b/grub-core/efiemu/i386/loadcore64.c | ||
30 | @@ -98,6 +98,7 @@ grub_arch_efiemu_relocate_symbols64 (grub_efiemu_segment_t segs, | ||
31 | break; | ||
32 | |||
33 | case R_X86_64_PC32: | ||
34 | + case R_X86_64_PLT32: | ||
35 | err = grub_efiemu_write_value (addr, | ||
36 | *addr32 + rel->r_addend | ||
37 | + sym.off | ||
38 | diff --git a/grub-core/kern/x86_64/dl.c b/grub-core/kern/x86_64/dl.c | ||
39 | index 440690673..3a73e6e6c 100644 | ||
40 | --- a/grub-core/kern/x86_64/dl.c | ||
41 | +++ b/grub-core/kern/x86_64/dl.c | ||
42 | @@ -70,6 +70,7 @@ grub_arch_dl_relocate_symbols (grub_dl_t mod, void *ehdr, | ||
43 | break; | ||
44 | |||
45 | case R_X86_64_PC32: | ||
46 | + case R_X86_64_PLT32: | ||
47 | { | ||
48 | grub_int64_t value; | ||
49 | value = ((grub_int32_t) *addr32) + rel->r_addend + sym->st_value - | ||
50 | diff --git a/util/grub-mkimagexx.c b/util/grub-mkimagexx.c | ||
51 | index a2bb05439..39d7efb91 100644 | ||
52 | --- a/util/grub-mkimagexx.c | ||
53 | +++ b/util/grub-mkimagexx.c | ||
54 | @@ -841,6 +841,7 @@ SUFFIX (relocate_addresses) (Elf_Ehdr *e, Elf_Shdr *sections, | ||
55 | break; | ||
56 | |||
57 | case R_X86_64_PC32: | ||
58 | + case R_X86_64_PLT32: | ||
59 | { | ||
60 | grub_uint32_t *t32 = (grub_uint32_t *) target; | ||
61 | *t32 = grub_host_to_target64 (grub_target_to_host32 (*t32) | ||
62 | diff --git a/util/grub-module-verifier.c b/util/grub-module-verifier.c | ||
63 | index 9179285a5..a79271f66 100644 | ||
64 | --- a/util/grub-module-verifier.c | ||
65 | +++ b/util/grub-module-verifier.c | ||
66 | @@ -19,6 +19,7 @@ struct grub_module_verifier_arch archs[] = { | ||
67 | -1 | ||
68 | }, (int[]){ | ||
69 | R_X86_64_PC32, | ||
70 | + R_X86_64_PLT32, | ||
71 | -1 | ||
72 | } | ||
73 | }, | ||
74 | -- | ||
75 | 2.11.0 | ||
76 | |||
diff --git a/meta/recipes-bsp/grub/files/autogen.sh-exclude-pc.patch b/meta/recipes-bsp/grub/files/autogen.sh-exclude-pc.patch index fc5aa4e313..faa7fde232 100644 --- a/meta/recipes-bsp/grub/files/autogen.sh-exclude-pc.patch +++ b/meta/recipes-bsp/grub/files/autogen.sh-exclude-pc.patch | |||
@@ -1,4 +1,4 @@ | |||
1 | From ff8f68cc48fd3c30d55e1d570d51f2e0952c968e Mon Sep 17 00:00:00 2001 | 1 | From 72c30928d3d461e0e2d20c5ff33bd96b6991d585 Mon Sep 17 00:00:00 2001 |
2 | From: Robert Yang <liezhi.yang@windriver.com> | 2 | From: Robert Yang <liezhi.yang@windriver.com> |
3 | Date: Sat, 25 Jan 2014 23:49:44 -0500 | 3 | Date: Sat, 25 Jan 2014 23:49:44 -0500 |
4 | Subject: [PATCH] autogen.sh: exclude .pc from po/POTFILES.in | 4 | Subject: [PATCH] autogen.sh: exclude .pc from po/POTFILES.in |
@@ -12,23 +12,24 @@ try to read it. | |||
12 | Upstream-Status: Inappropriate [OE specific] | 12 | Upstream-Status: Inappropriate [OE specific] |
13 | 13 | ||
14 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | 14 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> |
15 | Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> | ||
15 | --- | 16 | --- |
16 | autogen.sh | 2 +- | 17 | autogen.sh | 2 +- |
17 | 1 file changed, 1 insertion(+), 1 deletion(-) | 18 | 1 file changed, 1 insertion(+), 1 deletion(-) |
18 | 19 | ||
19 | diff --git a/autogen.sh b/autogen.sh | 20 | diff --git a/autogen.sh b/autogen.sh |
20 | index 7424428..843619e 100755 | 21 | index ef43270..a7067a7 100755 |
21 | --- a/autogen.sh | 22 | --- a/autogen.sh |
22 | +++ b/autogen.sh | 23 | +++ b/autogen.sh |
23 | @@ -5,7 +5,7 @@ set -e | 24 | @@ -13,7 +13,7 @@ fi |
24 | export LC_COLLATE=C | 25 | export LC_COLLATE=C |
25 | unset LC_ALL | 26 | unset LC_ALL |
26 | 27 | ||
27 | -find . -iname '*.[ch]' ! -ipath './grub-core/lib/libgcrypt-grub/*' ! -ipath './build-aux/*' ! -ipath './grub-core/lib/libgcrypt/src/misc.c' ! -ipath './grub-core/lib/libgcrypt/src/global.c' ! -ipath './grub-core/lib/libgcrypt/src/secmem.c' ! -ipath './util/grub-gen-widthspec.c' ! -ipath './util/grub-gen-asciih.c' |sort > po/POTFILES.in | 28 | -find . -iname '*.[ch]' ! -ipath './grub-core/lib/libgcrypt-grub/*' ! -ipath './build-aux/*' ! -ipath './grub-core/lib/libgcrypt/src/misc.c' ! -ipath './grub-core/lib/libgcrypt/src/global.c' ! -ipath './grub-core/lib/libgcrypt/src/secmem.c' ! -ipath './util/grub-gen-widthspec.c' ! -ipath './util/grub-gen-asciih.c' ! -ipath './gnulib/*' ! -iname './grub-core/lib/gnulib/*' |sort > po/POTFILES.in |
28 | +find . -iname '*.[ch]' ! -ipath './grub-core/lib/libgcrypt-grub/*' ! -ipath './build-aux/*' ! -ipath './grub-core/lib/libgcrypt/src/misc.c' ! -ipath './grub-core/lib/libgcrypt/src/global.c' ! -ipath './grub-core/lib/libgcrypt/src/secmem.c' ! -ipath './util/grub-gen-widthspec.c' ! -ipath './util/grub-gen-asciih.c' ! -path './.pc/*' | sort > po/POTFILES.in | 29 | +find . -iname '*.[ch]' ! -ipath './grub-core/lib/libgcrypt-grub/*' ! -ipath './build-aux/*' ! -ipath './grub-core/lib/libgcrypt/src/misc.c' ! -ipath './grub-core/lib/libgcrypt/src/global.c' ! -ipath './grub-core/lib/libgcrypt/src/secmem.c' ! -ipath './util/grub-gen-widthspec.c' ! -ipath './util/grub-gen-asciih.c' ! -ipath './gnulib/*' ! -iname './grub-core/lib/gnulib/*' ! -path './.pc/*' |sort > po/POTFILES.in |
29 | find util -iname '*.in' ! -name Makefile.in |sort > po/POTFILES-shell.in | 30 | find util -iname '*.in' ! -name Makefile.in |sort > po/POTFILES-shell.in |
30 | 31 | ||
31 | echo "Importing unicode..." | 32 | echo "Importing unicode..." |
32 | -- | 33 | -- |
33 | 1.7.10.4 | 34 | 2.7.4 |
34 | 35 | ||
diff --git a/meta/recipes-bsp/grub/files/gcc8.patch b/meta/recipes-bsp/grub/files/gcc8.patch deleted file mode 100644 index fa7331f1b3..0000000000 --- a/meta/recipes-bsp/grub/files/gcc8.patch +++ /dev/null | |||
@@ -1,74 +0,0 @@ | |||
1 | From 563b1da6e6ae7af46cc8354cadb5dab416989f0a Mon Sep 17 00:00:00 2001 | ||
2 | From: Michael Chang <mchang@suse.com> | ||
3 | Date: Mon, 26 Mar 2018 16:52:34 +0800 | ||
4 | Subject: Fix packed-not-aligned error on GCC 8 | ||
5 | MIME-Version: 1.0 | ||
6 | Content-Type: text/plain; charset=UTF-8 | ||
7 | Content-Transfer-Encoding: 8bit | ||
8 | |||
9 | When building with GCC 8, there are several errors regarding packed-not-aligned. | ||
10 | |||
11 | ./include/grub/gpt_partition.h:79:1: error: alignment 1 of ‘struct grub_gpt_partentry’ is less than 8 [-Werror=packed-not-aligned] | ||
12 | |||
13 | This patch fixes the build error by cleaning up the ambiguity of placing | ||
14 | aligned structure in a packed one. In "struct grub_btrfs_time" and "struct | ||
15 | grub_gpt_part_type", the aligned attribute seems to be superfluous, and also | ||
16 | has to be packed, to ensure the structure is bit-to-bit mapped to the format | ||
17 | laid on disk. I think we could blame to copy and paste error here for the | ||
18 | mistake. In "struct efi_variable", we have to use grub_efi_packed_guid_t, as | ||
19 | the name suggests. :) | ||
20 | |||
21 | Signed-off-by: Michael Chang <mchang@suse.com> | ||
22 | Tested-by: Michael Chang <mchang@suse.com> | ||
23 | Tested-by: Paul Menzel <paulepanter@users.sourceforge.net> | ||
24 | Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com> | ||
25 | |||
26 | Upstream-Status: Backport http://git.savannah.gnu.org/cgit/grub.git/commit/?id=563b1da6e6ae7af46cc8354cadb5dab416989f0a | ||
27 | --- | ||
28 | grub-core/fs/btrfs.c | 2 +- | ||
29 | include/grub/efiemu/runtime.h | 2 +- | ||
30 | include/grub/gpt_partition.h | 2 +- | ||
31 | 3 files changed, 3 insertions(+), 3 deletions(-) | ||
32 | |||
33 | diff --git a/grub-core/fs/btrfs.c b/grub-core/fs/btrfs.c | ||
34 | index 4849c1c..be19544 100644 | ||
35 | --- a/grub-core/fs/btrfs.c | ||
36 | +++ b/grub-core/fs/btrfs.c | ||
37 | @@ -175,7 +175,7 @@ struct grub_btrfs_time | ||
38 | { | ||
39 | grub_int64_t sec; | ||
40 | grub_uint32_t nanosec; | ||
41 | -} __attribute__ ((aligned (4))); | ||
42 | +} GRUB_PACKED; | ||
43 | |||
44 | struct grub_btrfs_inode | ||
45 | { | ||
46 | diff --git a/include/grub/efiemu/runtime.h b/include/grub/efiemu/runtime.h | ||
47 | index 9b6b729..36d2ded 100644 | ||
48 | --- a/include/grub/efiemu/runtime.h | ||
49 | +++ b/include/grub/efiemu/runtime.h | ||
50 | @@ -29,7 +29,7 @@ struct grub_efiemu_ptv_rel | ||
51 | |||
52 | struct efi_variable | ||
53 | { | ||
54 | - grub_efi_guid_t guid; | ||
55 | + grub_efi_packed_guid_t guid; | ||
56 | grub_uint32_t namelen; | ||
57 | grub_uint32_t size; | ||
58 | grub_efi_uint32_t attributes; | ||
59 | diff --git a/include/grub/gpt_partition.h b/include/grub/gpt_partition.h | ||
60 | index 1b32f67..9668a68 100644 | ||
61 | --- a/include/grub/gpt_partition.h | ||
62 | +++ b/include/grub/gpt_partition.h | ||
63 | @@ -28,7 +28,7 @@ struct grub_gpt_part_type | ||
64 | grub_uint16_t data2; | ||
65 | grub_uint16_t data3; | ||
66 | grub_uint8_t data4[8]; | ||
67 | -} __attribute__ ((aligned(8))); | ||
68 | +} GRUB_PACKED; | ||
69 | typedef struct grub_gpt_part_type grub_gpt_part_type_t; | ||
70 | |||
71 | #define GRUB_GPT_PARTITION_TYPE_EMPTY \ | ||
72 | -- | ||
73 | cgit v1.0-41-gc330 | ||
74 | |||
diff --git a/meta/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch b/meta/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch index ffc2d40d89..26890261b7 100644 --- a/meta/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch +++ b/meta/recipes-bsp/grub/files/grub-module-explicitly-keeps-symbole-.module_license.patch | |||
@@ -1,13 +1,14 @@ | |||
1 | From 7461a3de38b66edbe2f5593f9bdab9f2704d32bc Mon Sep 17 00:00:00 2001 | 1 | From 917133acc701dbc4636165d3b08d15dc5829a06f Mon Sep 17 00:00:00 2001 |
2 | From: Hongxu Jia <hongxu.jia@windriver.com> | 2 | From: Hongxu Jia <hongxu.jia@windriver.com> |
3 | Date: Wed, 17 Aug 2016 04:06:34 -0400 | 3 | Date: Wed, 17 Aug 2016 04:06:34 -0400 |
4 | Subject: [PATCH] grub module explicitly keeps symbole .module_license | 4 | Subject: [PATCH] grub module explicitly keeps symbole .module_license |
5 | 5 | ||
6 | While using oe-core toolchain to strip grub module 'all_video.mod', | 6 | While using oe-core toolchain to strip grub module 'all_video.mod', |
7 | it stripped symbol table: | 7 | it stripped symbol table: |
8 | -------------- | ||
9 | root@localhost:~# objdump -t all_video.mod | ||
10 | 8 | ||
9 | --------------- | ||
10 | root@localhost:~# objdump -t all_video.mod | ||
11 | |||
11 | all_video.mod: file format elf64-x86-64 | 12 | all_video.mod: file format elf64-x86-64 |
12 | 13 | ||
13 | SYMBOL TABLE: | 14 | SYMBOL TABLE: |
@@ -43,16 +44,16 @@ Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com> | |||
43 | grub-core/genmod.sh.in | 2 +- | 44 | grub-core/genmod.sh.in | 2 +- |
44 | 1 file changed, 1 insertion(+), 1 deletion(-) | 45 | 1 file changed, 1 insertion(+), 1 deletion(-) |
45 | 46 | ||
46 | Index: grub-2.02/grub-core/genmod.sh.in | 47 | diff --git a/grub-core/genmod.sh.in b/grub-core/genmod.sh.in |
47 | =================================================================== | 48 | index 1250589..dd14308 100644 |
48 | --- grub-2.02.orig/grub-core/genmod.sh.in | 49 | --- a/grub-core/genmod.sh.in |
49 | +++ grub-2.02/grub-core/genmod.sh.in | 50 | +++ b/grub-core/genmod.sh.in |
50 | @@ -56,7 +56,7 @@ if test x@TARGET_APPLE_LINKER@ != x1; th | 51 | @@ -56,7 +56,7 @@ if test x@TARGET_APPLE_LINKER@ != x1; then |
51 | if test x@platform@ != xemu; then | 52 | if test x@platform@ != xemu; then |
52 | @TARGET_STRIP@ --strip-unneeded \ | 53 | @TARGET_STRIP@ --strip-unneeded \ |
53 | -K grub_mod_init -K grub_mod_fini \ | 54 | -K grub_mod_init -K grub_mod_fini \ |
54 | - -K _grub_mod_init -K _grub_mod_fini \ | 55 | - -K _grub_mod_init -K _grub_mod_fini \ |
55 | + -K _grub_mod_init -K _grub_mod_fini -K .module_license \ | 56 | + -K _grub_mod_init -K _grub_mod_fini -K .module_license \ |
56 | -R .note.gnu.gold-version -R .note.GNU-stack \ | 57 | -R .note.gnu.gold-version -R .note.GNU-stack \ |
57 | -R .note -R .comment -R .ARM.exidx $tmpfile || exit 1 | 58 | -R .gnu.build.attributes \ |
58 | fi | 59 | -R .rel.gnu.build.attributes \ |
diff --git a/meta/recipes-bsp/grub/grub-efi_2.02.bb b/meta/recipes-bsp/grub/grub-efi_2.04.bb index 0028a9b6eb..0028a9b6eb 100644 --- a/meta/recipes-bsp/grub/grub-efi_2.02.bb +++ b/meta/recipes-bsp/grub/grub-efi_2.04.bb | |||
diff --git a/meta/recipes-bsp/grub/grub2.inc b/meta/recipes-bsp/grub/grub2.inc index c5ff10e598..13e21d75bb 100644 --- a/meta/recipes-bsp/grub/grub2.inc +++ b/meta/recipes-bsp/grub/grub2.inc | |||
@@ -13,18 +13,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=d32239bcb673463ab874e80d47fae504" | |||
13 | 13 | ||
14 | SRC_URI = "https://ftp.gnu.org/gnu/grub/grub-${PV}.tar.gz \ | 14 | SRC_URI = "https://ftp.gnu.org/gnu/grub/grub-${PV}.tar.gz \ |
15 | file://0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch \ | 15 | file://0001-Disable-mfpmath-sse-as-well-when-SSE-is-disabled.patch \ |
16 | file://0001-Unset-need_charset_alias-when-building-for-musl.patch \ | ||
17 | file://autogen.sh-exclude-pc.patch \ | 16 | file://autogen.sh-exclude-pc.patch \ |
18 | file://grub-module-explicitly-keeps-symbole-.module_license.patch \ | 17 | file://grub-module-explicitly-keeps-symbole-.module_license.patch \ |
19 | file://0001-grub.d-10_linux.in-add-oe-s-kernel-name.patch \ | 18 | file://0001-grub.d-10_linux.in-add-oe-s-kernel-name.patch \ |
20 | file://gcc8.patch \ | ||
21 | file://0001-x86-64-Treat-R_X86_64_PLT32-as-R_X86_64_PC32.patch \ | ||
22 | file://0001-grub-setup-Debug-message-cleanup.patch \ | ||
23 | " | 19 | " |
24 | SRC_URI[md5sum] = "1116d1f60c840e6dbd67abbc99acb45d" | 20 | SRC_URI[md5sum] = "5ce674ca6b2612d8939b9e6abed32934" |
25 | SRC_URI[sha256sum] = "660ee136fbcee08858516ed4de2ad87068bfe1b6b8b37896ce3529ff054a726d" | 21 | SRC_URI[sha256sum] = "f10c85ae3e204dbaec39ae22fa3c5e99f0665417e91c2cb49b7e5031658ba6ea" |
26 | 22 | ||
27 | DEPENDS = "flex-native bison-native" | 23 | DEPENDS = "flex-native bison-native gettext-native" |
28 | 24 | ||
29 | COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)' | 25 | COMPATIBLE_HOST = '(x86_64.*|i.86.*|arm.*|aarch64.*)-(linux.*|freebsd.*)' |
30 | COMPATIBLE_HOST_armv7a = 'null' | 26 | COMPATIBLE_HOST_armv7a = 'null' |
@@ -45,6 +41,7 @@ EXTRA_OECONF = "--with-platform=${GRUBPLATFORM} \ | |||
45 | --enable-liblzma=no \ | 41 | --enable-liblzma=no \ |
46 | --enable-libzfs=no \ | 42 | --enable-libzfs=no \ |
47 | --enable-largefile \ | 43 | --enable-largefile \ |
44 | --disable-werror \ | ||
48 | " | 45 | " |
49 | 46 | ||
50 | PACKAGECONFIG ??= "" | 47 | PACKAGECONFIG ??= "" |
@@ -62,8 +59,6 @@ BUILD_LDFLAGS = "" | |||
62 | 59 | ||
63 | export PYTHON = "python3" | 60 | export PYTHON = "python3" |
64 | 61 | ||
65 | CFLAGS_append = " -Wno-error" | ||
66 | |||
67 | do_configure_prepend() { | 62 | do_configure_prepend() { |
68 | ( cd ${S} | 63 | ( cd ${S} |
69 | ${S}/autogen.sh ) | 64 | ${S}/autogen.sh ) |
diff --git a/meta/recipes-bsp/grub/grub_2.02.bb b/meta/recipes-bsp/grub/grub_2.04.bb index e0973759fb..e0973759fb 100644 --- a/meta/recipes-bsp/grub/grub_2.02.bb +++ b/meta/recipes-bsp/grub/grub_2.04.bb | |||