[5c8aba6] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
| 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
| 7 |
|
---|
| 8 | <sect1 id="ch-boot-yaboot-build" role="wrap">
|
---|
| 9 | <?dbhtml filename="yaboot-build.html"?>
|
---|
| 10 |
|
---|
| 11 | <title>Yaboot-&yaboot-version;</title>
|
---|
| 12 |
|
---|
| 13 | <indexterm zone="ch-boot-yaboot-build">
|
---|
| 14 | <primary sortas="a-Yaboot">Yaboot</primary>
|
---|
[d5cf87a3] | 15 | <secondary>boot</secondary>
|
---|
[5c8aba6] | 16 | </indexterm>
|
---|
| 17 |
|
---|
[d5cf87a3] | 18 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 19 | href="../../final-system/ppc/yaboot.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
[5c8aba6] | 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of Yaboot</title>
|
---|
| 24 |
|
---|
[d767eb3] | 25 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 26 | href="../../final-system/ppc/yaboot.xml"
|
---|
| 27 | xpointer="xpointer(//*[@os='a'])"/>
|
---|
| 28 |
|
---|
| 29 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 30 | href="../../final-system/ppc/yaboot.xml"
|
---|
| 31 | xpointer="xpointer(//*[@os='b'])"/>
|
---|
| 32 |
|
---|
| 33 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 34 | href="../../final-system/ppc/yaboot.xml"
|
---|
| 35 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
| 36 |
|
---|
| 37 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 38 | href="../../final-system/ppc/yaboot.xml"
|
---|
| 39 | xpointer="xpointer(//*[@os='d'])"/>
|
---|
| 40 |
|
---|
[bc5db55] | 41 | <para os="p1">The following patch allows <command>ofpath</command> to use
|
---|
| 42 | <literal>PATH_PREFIX</literal> like the other
|
---|
| 43 | <filename class="directory">ybin</filename> scripts:</para>
|
---|
| 44 |
|
---|
| 45 | <screen os="p2"><userinput>patch -Np1 -i ../&yaboot-ofpath_path-patch;</userinput></screen>
|
---|
| 46 |
|
---|
[d767eb3] | 47 | <para>The Makefile is already set to do kernel-style cross-compiling,
|
---|
| 48 | but it will try to use <command>strip</command> to strip the second-stage
|
---|
| 49 | loader. It also expects to be running as root for the install, and to
|
---|
| 50 | install for the root user, which user LFS cannot do. The following command
|
---|
| 51 | will fix this:</para>
|
---|
| 52 |
|
---|
| 53 | <screen><userinput>cp Makefile,{.orig}
|
---|
| 54 | sed -e "s/\(strip \)/${LFS_TARGET}-\1/" \
|
---|
| 55 | -e 's/-o root -g root//' \
|
---|
| 56 | Makefile.orig > Makefile</userinput></screen>
|
---|
| 57 |
|
---|
| 58 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 59 | href="../../final-system/ppc/yaboot.xml"
|
---|
| 60 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
| 61 |
|
---|
| 62 | <screen><userinput>make CROSS=${LFS_TARGET}-</userinput></screen>
|
---|
| 63 |
|
---|
| 64 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 65 | href="../../final-system/ppc/yaboot.xml"
|
---|
| 66 | xpointer="xpointer(//*[@os='i'])"/>
|
---|
| 67 |
|
---|
| 68 | <screen><userinput>make CROSS=${LFS_TARGET}- ROOT=/tools PREFIX= install</userinput></screen>
|
---|
[5c8aba6] | 69 |
|
---|
| 70 | </sect2>
|
---|
| 71 |
|
---|
| 72 | <sect2 role="content">
|
---|
| 73 | <title/>
|
---|
| 74 |
|
---|
| 75 | <para>Details on this package are located in <xref linkend="contents-yaboot" role="."/></para>
|
---|
| 76 |
|
---|
| 77 | </sect2>
|
---|
| 78 |
|
---|
| 79 | </sect1>
|
---|