]> git.ipfire.org Git - thirdparty/grub.git/blob - bootstrap.conf
windows: Add _stack_chk_guard/_stack_chk_fail symbols for Windows 64-bit target
[thirdparty/grub.git] / bootstrap.conf
1 # Bootstrap configuration.
2
3 # Copyright (C) 2006-2022 Free Software Foundation, Inc.
4
5 # This program is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
9
10 # This program is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14
15 # You should have received a copy of the GNU General Public License
16 # along with this program. If not, see <https://www.gnu.org/licenses/>.
17
18
19 GNULIB_REVISION=9f48fb992a3d7e96610c4ce8be969cff2d61a01b
20
21 # gnulib modules used by this package.
22 # mbswidth is used by fix-width.diff's changes to argp rather than directly.
23 gnulib_modules="
24 argp
25 base64
26 error
27 fnmatch
28 getdelim
29 getline
30 gettext-h
31 gitlog-to-changelog
32 mbswidth
33 progname
34 realloc-gnu
35 regex
36 save-cwd
37 stdbool
38 "
39
40 gnulib_tool_option_extras="\
41 --no-conditional-dependencies \
42 --no-vc-files \
43 "
44
45 gnulib_name=libgnu
46 source_base=grub-core/lib/gnulib
47 gnulib_extra_files="
48 build-aux/install-sh
49 build-aux/mdate-sh
50 build-aux/texinfo.tex
51 build-aux/depcomp
52 build-aux/config.guess
53 build-aux/config.sub
54 "
55
56 # Additional xgettext options to use. Use "\\\newline" to break lines.
57 XGETTEXT_OPTIONS=$XGETTEXT_OPTIONS'\\\
58 --from-code=UTF-8\\\
59 '
60
61 checkout_only_file=
62 copy=true
63 vc_ignore=
64
65 SKIP_PO=t
66
67 # Build prerequisites
68 buildreq="\
69 autoconf 2.64
70 automake 1.14
71 gettext -
72 git 1.5.5
73 patch -
74 tar -
75 "
76
77 # bootstrap doesn't give us a reasonable way to stop Automake from
78 # overwriting this, so we just copy our version aside and put it back later.
79 cp -a INSTALL INSTALL.grub
80
81 bootstrap_post_import_hook () {
82 set -e
83
84 # Instead of patching our gnulib and therefore maintaining a fork, submit
85 # changes to gnulib and update the hash above when they've merged. Do not
86 # add new patches here.
87 patch -d grub-core/lib/gnulib -p2 < grub-core/lib/gnulib-patches/fix-width.patch
88
89 for patchname in \
90 0001-Support-POTFILES-shell \
91 0002-Handle-gettext_printf-shell-function \
92 0003-Make-msgfmt-output-in-little-endian \
93 0004-Use-SHELL-rather-than-bin-sh; do
94 patch -d po -p3 \
95 < "po/gettext-patches/$patchname.patch"
96 done
97 FROM_BOOTSTRAP=1 ./autogen.sh
98 set +e # bootstrap expects this
99 }
100
101 bootstrap_epilogue () {
102 mv INSTALL.grub INSTALL
103 }