[52e0f3e] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-tools-grub" role="wrap">
|
---|
| 9 | <?dbhtml filename="grub.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info condition="script">
|
---|
| 12 | <productname>grub</productname>
|
---|
| 13 | <productnumber>&grub-version;</productnumber>
|
---|
| 14 | <address>&grub-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
| 17 | <title>GRUB-&grub-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-tools-grub">
|
---|
| 20 | <primary sortas="a-Grub">GRUB</primary>
|
---|
| 21 | <secondary>tools</secondary>
|
---|
| 22 | </indexterm>
|
---|
| 23 |
|
---|
| 24 | <sect2 role="package">
|
---|
| 25 | <title/>
|
---|
| 26 |
|
---|
| 27 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 28 | href="../chapter08/grub.xml"
|
---|
| 29 | xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
|
---|
| 30 |
|
---|
| 31 | <segmentedlist>
|
---|
| 32 | <segtitle>&buildtime;</segtitle>
|
---|
| 33 | <segtitle>&diskspace;</segtitle>
|
---|
| 34 |
|
---|
| 35 | <seglistitem>
|
---|
| 36 | <seg>&grub-tmp-sbu;</seg>
|
---|
| 37 | <seg>&grub-tmp-du;</seg>
|
---|
| 38 | </seglistitem>
|
---|
| 39 | </segmentedlist>
|
---|
| 40 |
|
---|
| 41 | </sect2>
|
---|
| 42 |
|
---|
| 43 | <sect2 role="installation">
|
---|
| 44 | <title>Installation of GRUB</title>
|
---|
| 45 |
|
---|
| 46 | <para>Prepare GRUB for compilation:</para>
|
---|
| 47 |
|
---|
| 48 | <screen><userinput remap="configure">./configure --prefix=$LFS/tools \
|
---|
| 49 | --build=$(build-aux/config.guess) \
|
---|
| 50 | --host=$(build-aux/config.guess) \
|
---|
| 51 | --target=$LFS_TGT \
|
---|
| 52 | --program-prefix=lfs- \
|
---|
| 53 | --disable-werror</userinput></screen>
|
---|
| 54 |
|
---|
| 55 | <variablelist>
|
---|
| 56 | <title>The meaning of the new configure options:</title>
|
---|
| 57 |
|
---|
| 58 | <varlistentry>
|
---|
| 59 | <term><parameter>--build=..., --host=..., and --target=$LFS_TGT</parameter></term>
|
---|
| 60 | <listitem>
|
---|
| 61 | <para>This allows the build to generate GRUB utilities running on
|
---|
| 62 | the host system, but generating the bootloader files for $LFS_TGT.
|
---|
| 63 | Then we can use the bootloader files to boot the temporary system
|
---|
| 64 | on the target machine.</para>
|
---|
| 65 | </listitem>
|
---|
| 66 | </varlistentry>
|
---|
| 67 |
|
---|
| 68 | <varlistentry>
|
---|
| 69 | <term><parameter>--program-prefix=lfs-</parameter></term>
|
---|
| 70 | <listitem>
|
---|
| 71 | <para>This ensures that the installed programs have
|
---|
| 72 | <literal>lfs-</literal> prepended to their names, to better
|
---|
| 73 | distinguish them from the GRUB installation of the host
|
---|
| 74 | distro.</para>
|
---|
| 75 | </listitem>
|
---|
| 76 | </varlistentry>
|
---|
| 77 |
|
---|
| 78 | <varlistentry>
|
---|
| 79 | <term><parameter>--disable-werror</parameter></term>
|
---|
| 80 | <listitem>
|
---|
| 81 | <para>This allows the build to complete with warnings introduced
|
---|
| 82 | by more recent Flex versions.</para>
|
---|
| 83 | </listitem>
|
---|
| 84 | </varlistentry>
|
---|
| 85 |
|
---|
| 86 | </variablelist>
|
---|
| 87 |
|
---|
| 88 | <para>Compile the package:</para>
|
---|
| 89 |
|
---|
| 90 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 91 |
|
---|
| 92 | <para>Install the package:</para>
|
---|
| 93 |
|
---|
| 94 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
| 95 |
|
---|
| 96 | </sect2>
|
---|
| 97 |
|
---|
| 98 | <sect2 role="content">
|
---|
| 99 | <title/>
|
---|
| 100 |
|
---|
| 101 | <para>Details on this package are located in
|
---|
| 102 | <xref linkend="contents-gRUB" role="."/></para>
|
---|
| 103 |
|
---|
| 104 | </sect2>
|
---|
| 105 |
|
---|
| 106 | </sect1>
|
---|