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-disable-help2man.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-disable-help2man.patch')
-rw-r--r-- | meta/recipes-bsp/grub/files/grub-2.00-disable-help2man.patch | 148 |
1 files changed, 148 insertions, 0 deletions
diff --git a/meta/recipes-bsp/grub/files/grub-2.00-disable-help2man.patch b/meta/recipes-bsp/grub/files/grub-2.00-disable-help2man.patch new file mode 100644 index 0000000000..a2e42c2b7f --- /dev/null +++ b/meta/recipes-bsp/grub/files/grub-2.00-disable-help2man.patch | |||
@@ -0,0 +1,148 @@ | |||
1 | Upstream-Status: Inappropriate (Bitbake build environment) | ||
2 | |||
3 | We do not need the man pages when building just the EFI payload for the target, | ||
4 | all the tools are built for the host. This does not trigger GRUB's built-in | ||
5 | cross-compilation check, so force it. After the change to configure.ac, | ||
6 | autogen.sh was run in devshell and the resulting configure was used to generate | ||
7 | the configure diff. The configure diff was included to avoid having to add | ||
8 | autogen.sh to a do_configure_prepend() routine which would slow down the build | ||
9 | unnecessarily. | ||
10 | |||
11 | Signed-off-by: Darren Hart <dvhart@linux.intel.com> | ||
12 | |||
13 | Index: grub-2.00/configure.ac | ||
14 | =================================================================== | ||
15 | --- grub-2.00.orig/configure.ac | ||
16 | +++ grub-2.00/configure.ac | ||
17 | @@ -310,11 +310,12 @@ if test x$USE_NLS = xno; then | ||
18 | HOST_CFLAGS="$HOST_CFLAGS -fno-builtin-gettext" | ||
19 | fi | ||
20 | |||
21 | -if test "x$cross_compiling" = xyes; then | ||
22 | - AC_MSG_WARN([cannot generate manual pages while cross compiling]) | ||
23 | -else | ||
24 | - AC_PATH_PROG(HELP2MAN, help2man) | ||
25 | -fi | ||
26 | +# Force behaving as though we are cross-compiling with respect to HELP2MAN | ||
27 | +#if test "x$cross_compiling" = xyes; then | ||
28 | +AC_MSG_WARN([cannot generate manual pages while cross compiling]) | ||
29 | +#else | ||
30 | +# AC_PATH_PROG(HELP2MAN, help2man) | ||
31 | +#fi | ||
32 | |||
33 | # Check for functions and headers. | ||
34 | AC_CHECK_FUNCS(posix_memalign memalign asprintf vasprintf getextmntent) | ||
35 | Index: grub-2.00/configure | ||
36 | =================================================================== | ||
37 | --- grub-2.00.orig/configure | ||
38 | +++ grub-2.00/configure | ||
39 | @@ -1215,7 +1215,6 @@ GL_COND_LIBTOOL_FALSE | ||
40 | GL_COND_LIBTOOL_TRUE | ||
41 | BUILD_CC | ||
42 | LIBUTIL | ||
43 | -HELP2MAN | ||
44 | POSUB | ||
45 | LTLIBINTL | ||
46 | LIBINTL | ||
47 | @@ -3069,7 +3068,6 @@ _ACEOF | ||
48 | # Let the site file select an alternate cache file if it wants to. | ||
49 | # Prefer an explicitly selected file to automatically selected ones. | ||
50 | ac_site_file1=NONE | ||
51 | -ac_site_file2=NONE | ||
52 | if test -n "$CONFIG_SITE"; then | ||
53 | # We do not want a PATH search for config.site. | ||
54 | case $CONFIG_SITE in #(( | ||
55 | @@ -3077,14 +3075,8 @@ if test -n "$CONFIG_SITE"; then | ||
56 | */*) ac_site_file1=$CONFIG_SITE;; | ||
57 | *) ac_site_file1=./$CONFIG_SITE;; | ||
58 | esac | ||
59 | -elif test "x$prefix" != xNONE; then | ||
60 | - ac_site_file1=$prefix/share/config.site | ||
61 | - ac_site_file2=$prefix/etc/config.site | ||
62 | -else | ||
63 | - ac_site_file1=$ac_default_prefix/share/config.site | ||
64 | - ac_site_file2=$ac_default_prefix/etc/config.site | ||
65 | fi | ||
66 | -for ac_site_file in "$ac_site_file1" "$ac_site_file2" | ||
67 | +for ac_site_file in $ac_site_file1 | ||
68 | do | ||
69 | test "x$ac_site_file" = xNONE && continue | ||
70 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | ||
71 | @@ -3371,8 +3363,9 @@ case $target_os in *\ *) target_os=`echo | ||
72 | # The aliases save the names the user supplied, while $host etc. | ||
73 | # will get canonicalized. | ||
74 | test -n "$target_alias" && | ||
75 | - test "$program_prefix$program_suffix$program_transform_name" = \ | ||
76 | - NONENONEs,x,x, && | ||
77 | + test "$target_alias" != "$host_alias" && | ||
78 | + test "$program_prefix$program_suffix$program_transform_name" = \ | ||
79 | + NONENONEs,x,x, && | ||
80 | program_prefix=${target_alias}- | ||
81 | |||
82 | am__api_version='1.11' | ||
83 | @@ -9633,51 +9626,13 @@ if test x$USE_NLS = xno; then | ||
84 | HOST_CFLAGS="$HOST_CFLAGS -fno-builtin-gettext" | ||
85 | fi | ||
86 | |||
87 | -if test "x$cross_compiling" = xyes; then | ||
88 | - { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot generate manual pages while cross compiling" >&5 | ||
89 | +# Force behaving as though we are cross-compiling with respect to HELP2MAN | ||
90 | +#if test "x$cross_compiling" = xyes; then | ||
91 | +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot generate manual pages while cross compiling" >&5 | ||
92 | $as_echo "$as_me: WARNING: cannot generate manual pages while cross compiling" >&2;} | ||
93 | -else | ||
94 | - # Extract the first word of "help2man", so it can be a program name with args. | ||
95 | -set dummy help2man; ac_word=$2 | ||
96 | -{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | ||
97 | -$as_echo_n "checking for $ac_word... " >&6; } | ||
98 | -if ${ac_cv_path_HELP2MAN+:} false; then : | ||
99 | - $as_echo_n "(cached) " >&6 | ||
100 | -else | ||
101 | - case $HELP2MAN in | ||
102 | - [\\/]* | ?:[\\/]*) | ||
103 | - ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path. | ||
104 | - ;; | ||
105 | - *) | ||
106 | - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | ||
107 | -for as_dir in $PATH | ||
108 | -do | ||
109 | - IFS=$as_save_IFS | ||
110 | - test -z "$as_dir" && as_dir=. | ||
111 | - for ac_exec_ext in '' $ac_executable_extensions; do | ||
112 | - if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | ||
113 | - ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext" | ||
114 | - $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | ||
115 | - break 2 | ||
116 | - fi | ||
117 | -done | ||
118 | - done | ||
119 | -IFS=$as_save_IFS | ||
120 | - | ||
121 | - ;; | ||
122 | -esac | ||
123 | -fi | ||
124 | -HELP2MAN=$ac_cv_path_HELP2MAN | ||
125 | -if test -n "$HELP2MAN"; then | ||
126 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5 | ||
127 | -$as_echo "$HELP2MAN" >&6; } | ||
128 | -else | ||
129 | - { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | ||
130 | -$as_echo "no" >&6; } | ||
131 | -fi | ||
132 | - | ||
133 | - | ||
134 | -fi | ||
135 | +#else | ||
136 | +# AC_PATH_PROG(HELP2MAN, help2man) | ||
137 | +#fi | ||
138 | |||
139 | # Check for functions and headers. | ||
140 | for ac_func in posix_memalign memalign asprintf vasprintf getextmntent | ||
141 | @@ -20477,6 +20432,7 @@ $as_echo_n "checking whether \`$CC' gene | ||
142 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | ||
143 | /* end confdefs.h. */ | ||
144 | |||
145 | +void g (int); | ||
146 | void f (int (*p) (void)); | ||
147 | void g (int i) | ||
148 | { | ||