diff options
author | Radu Moisan <radu.moisan@intel.com> | 2012-08-21 14:48:38 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2012-08-23 11:43:34 +0100 |
commit | 8e335f1da265cdb0ea2d5f95b3dfe8c856213c96 (patch) | |
tree | da9127c7d3a1623a76aace5147d442faa3bd4d2d /meta/recipes-bsp/grub/files/grub-2.00-fpmath-sse-387-fix.patch | |
parent | 1192ace3185f3293508531687e1d199b03934460 (diff) | |
download | poky-8e335f1da265cdb0ea2d5f95b3dfe8c856213c96.tar.gz |
grub-efi-native: Update to version 2.00
Added -Wno-unused-result because of a read() with no result, and causing
error due to -Werror
Updated grub recipe because of a patch name change
Removed unnecessary patches (merged upstream).
(From OE-Core rev: 88cd5d99918a896f515e8bb59b7238f3ad50adff)
Signed-off-by: Radu Moisan <radu.moisan@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-bsp/grub/files/grub-2.00-fpmath-sse-387-fix.patch')
-rw-r--r-- | meta/recipes-bsp/grub/files/grub-2.00-fpmath-sse-387-fix.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-bsp/grub/files/grub-2.00-fpmath-sse-387-fix.patch b/meta/recipes-bsp/grub/files/grub-2.00-fpmath-sse-387-fix.patch new file mode 100644 index 0000000000..bea594406f --- /dev/null +++ b/meta/recipes-bsp/grub/files/grub-2.00-fpmath-sse-387-fix.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | Upstream-Status: pending | ||
2 | |||
3 | This patch fixes this configure issue for grub when -mfpmath=sse is in the gcc parameters. | ||
4 | |||
5 | configure:20574: i586-poky-linux-gcc -m32 -march=core2 -msse3 -mtune=generic -mfpmath=sse --sysroot=/usr/local/dev/yocto/grubtest2/build/tmp/sysroots/emenlow -o conftest -O2 -pipe -g -feliminate-unused-debug-types -Wall -W -Wshadow -Wpointer-arith -Wmissing-prototypes -Wundef -Wstrict-prototypes -g -falign-jumps=1 -falign-loops=1 -falign-functions=1 -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -fno-dwarf2-cfi-asm -m32 -fno-stack-protector -mno-stack-arg-probe -Werror -nostdlib -Wl,--defsym,___main=0x8100 -Wall -W -I$(top_srcdir)/include -I$(top_builddir)/include -DGRUB_MACHINE_PCBIOS=1 -DGRUB_MACHINE=I386_PC -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed conftest.c >&5 | ||
6 | conftest.c:1:0: error: SSE instruction set disabled, using 387 arithmetics [-Werror] | ||
7 | cc1: all warnings being treated as errors | ||
8 | |||
9 | Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com> | ||
10 | 2012/04/13 | ||
11 | |||
12 | Index: grub-1.99/configure.ac | ||
13 | =================================================================== | ||
14 | --- grub-1.99.orig/configure.ac | ||
15 | +++ grub-1.99/configure.ac | ||
16 | @@ -378,7 +378,7 @@ if test "x$target_cpu" = xi386; then | ||
17 | |||
18 | # Some toolchains enable these features by default, but they need | ||
19 | # registers that aren't set up properly in GRUB. | ||
20 | - TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow" | ||
21 | + TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -mfpmath=387" | ||
22 | fi | ||
23 | |||
24 | # By default, GCC 4.4 generates .eh_frame sections containing unwind | ||
25 | Index: grub-1.99/configure | ||
26 | =================================================================== | ||
27 | --- grub-1.99.orig/configure | ||
28 | +++ grub-1.99/configure | ||
29 | @@ -19991,7 +19991,7 @@ $as_echo "$grub_cv_cc_falign_loop" >&6; | ||
30 | |||
31 | # Some toolchains enable these features by default, but they need | ||
32 | # registers that aren't set up properly in GRUB. | ||
33 | - TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow" | ||
34 | + TARGET_CFLAGS="$TARGET_CFLAGS -mno-mmx -mno-sse -mno-sse2 -mno-3dnow -mfpmath=387" | ||
35 | fi | ||
36 | |||
37 | # By default, GCC 4.4 generates .eh_frame sections containing unwind | ||