[3f8be484] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[aa18ac0] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[3f8be484] | 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-boot-grub-build" role="wrap">
|
---|
| 9 | <?dbhtml filename="grub-build.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>GRUB-&grub-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-boot-grub-build">
|
---|
| 14 | <primary sortas="a-GRUB">GRUB</primary>
|
---|
| 15 | <secondary>boot</secondary>
|
---|
| 16 | </indexterm>
|
---|
| 17 |
|
---|
[dabbced] | 18 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[93adf44a] | 19 | href="../../final-system/x86/grub.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
[3f8be484] | 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of GRUB</title>
|
---|
| 24 |
|
---|
[dabbced] | 25 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[407772b] | 26 | href="../../final-system/x86/grub.xml"
|
---|
| 27 | xpointer="xpointer(//*[@os='n1'])"/>
|
---|
| 28 |
|
---|
[53142ba] | 29 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 30 | href="../../final-system/x86/grub.xml"
|
---|
| 31 | xpointer="xpointer(//*[@os='s1'])"/>
|
---|
| 32 |
|
---|
[080d530] | 33 | <screen os="s2"><userinput>cp -v grub-core/gnulib/stdio.in.h{,.orig}
|
---|
| 34 | sed -e '/gets is a/d' grub-core/gnulib/stdio.in.h.orig > grub-core/gnulib/stdio.in.h</userinput></screen>
|
---|
[53142ba] | 35 |
|
---|
[dabbced] | 36 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[3f8be484] | 37 | href="../../final-system/x86/grub.xml"
|
---|
| 38 | xpointer="xpointer(//*[@os='a'])"/>
|
---|
| 39 |
|
---|
[7cd7f99] | 40 | <screen os="ab"><userinput>./configure \
|
---|
| 41 | --prefix=/tools \
|
---|
| 42 | --build=${CLFS_HOST} \
|
---|
| 43 | --host=${CLFS_TARGET} \
|
---|
| 44 | --disable-werror \
|
---|
| 45 | --enable-grub-mkfont=no \
|
---|
| 46 | --with-bootdir=tools/boot</userinput></screen>
|
---|
[14922bb] | 47 |
|
---|
| 48 | <para os="b">The meaning of the new configure option:</para>
|
---|
| 49 |
|
---|
| 50 | <variablelist os="bc">
|
---|
[a072c79] | 51 |
|
---|
[14922bb] | 52 | <varlistentry>
|
---|
| 53 | <term><parameter>--enable-grub-mkfont=no</parameter></term>
|
---|
| 54 | <listitem><para>Prevents GRUB from trying to build
|
---|
| 55 | <command>grub-mkfont</command>, which requires Freetype.</para></listitem>
|
---|
| 56 | </varlistentry>
|
---|
| 57 |
|
---|
[a072c79] | 58 | <varlistentry>
|
---|
| 59 | <term><parameter>--with-bootdir=tools/boot</parameter></term>
|
---|
| 60 | <listitem><para>This modifies GRUB's default location where it
|
---|
| 61 | searches for kernel images and installs its bootloader files.</para></listitem>
|
---|
| 62 | </varlistentry>
|
---|
| 63 |
|
---|
[14922bb] | 64 | </variablelist>
|
---|
[3f8be484] | 65 |
|
---|
[dabbced] | 66 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[3f8be484] | 67 | href="../../final-system/x86/grub.xml"
|
---|
| 68 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
| 69 |
|
---|
[dabbced] | 70 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[3f8be484] | 71 | href="../../final-system/x86/grub.xml"
|
---|
| 72 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
| 73 |
|
---|
[dabbced] | 74 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[3f8be484] | 75 | href="../../final-system/x86/grub.xml"
|
---|
[7702d6f] | 76 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
[3f8be484] | 77 |
|
---|
[22da6db] | 78 | <screen os="ag"><userinput>make install</userinput></screen>
|
---|
[3f8be484] | 79 |
|
---|
| 80 | </sect2>
|
---|
| 81 |
|
---|
| 82 | <sect2 role="content">
|
---|
| 83 | <title/>
|
---|
| 84 |
|
---|
| 85 | <para>Details on this package are located in <xref
|
---|
| 86 | linkend="contents-grub" role="."/></para>
|
---|
| 87 |
|
---|
| 88 | </sect2>
|
---|
| 89 |
|
---|
| 90 | </sect1>
|
---|