[cea2986] | 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-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>
|
---|
| 15 | <secondary>boot</secondary>
|
---|
| 16 | </indexterm>
|
---|
| 17 |
|
---|
| 18 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 19 | href="../../final-system/ppc/yaboot.xml"
|
---|
| 20 | xpointer="xpointer(//*[@role='package'])"/>
|
---|
| 21 |
|
---|
| 22 | <sect2 role="installation">
|
---|
| 23 | <title>Installation of Yaboot</title>
|
---|
| 24 |
|
---|
| 25 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 26 | href="../../final-system/ppc/yaboot.xml"
|
---|
| 27 | xpointer="xpointer(//*[@os='p3'])"/>
|
---|
| 28 |
|
---|
| 29 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 30 | href="../../final-system/ppc/yaboot.xml"
|
---|
| 31 | xpointer="xpointer(//*[@os='p4'])"/>
|
---|
| 32 |
|
---|
[396b325] | 33 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 34 | href="../../final-system/ppc/yaboot.xml"
|
---|
| 35 | xpointer="xpointer(//*[@os='p5'])"/>
|
---|
| 36 |
|
---|
| 37 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 38 | href="../../final-system/ppc/yaboot.xml"
|
---|
| 39 | xpointer="xpointer(//*[@os='p6'])"/>
|
---|
| 40 |
|
---|
[cea2986] | 41 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 42 | href="../ppc/yaboot-build.xml"
|
---|
| 43 | xpointer="xpointer(//*[@os='p1'])"/>
|
---|
| 44 |
|
---|
| 45 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 46 | href="../ppc/yaboot-build.xml"
|
---|
| 47 | xpointer="xpointer(//*[@os='p2'])"/>
|
---|
| 48 |
|
---|
| 49 | <para>The Makefile is already set to do kernel-style cross-compiling,
|
---|
| 50 | but it will try to use <command>strip</command> to strip the second-stage
|
---|
| 51 | loader. It also expects to be running as root for the install, and to
|
---|
| 52 | install for the root user, which user CLFS cannot do. We also need to use
|
---|
| 53 | the 64-bit compiler, and to force <command>ld</command> to use a 64-bit
|
---|
| 54 | emulation. Userland tools attempt to use host headers and we do not want
|
---|
| 55 | that. The following commands will fix and achieve this:</para>
|
---|
| 56 |
|
---|
| 57 | <screen><userinput>cp -v Makefile{,.orig}
|
---|
| 58 | sed -e "s/\(-print-libgcc-file-name\)/${BUILD64} \1/" \
|
---|
| 59 | -e "s/\(strip \)/${CLFS_TARGET}-\1/" \
|
---|
| 60 | -e "s/\(-Bstatic\)/-melf64ppc \1/" \
|
---|
| 61 | -e 's/-melf32ppclinux//' \
|
---|
| 62 | -e 's/-o root -g root//' \
|
---|
| 63 | -e 's/-Werror//' \
|
---|
| 64 | -e '0,/UCFLAGS/s/usr/tools/' \
|
---|
| 65 | Makefile.orig > Makefile</userinput></screen>
|
---|
| 66 |
|
---|
| 67 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 68 | href="../../final-system/ppc/yaboot.xml"
|
---|
| 69 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
| 70 |
|
---|
| 71 | <screen><userinput>CFLAGS=${BUILD64} make CROSS=${CLFS_TARGET}-</userinput></screen>
|
---|
| 72 |
|
---|
| 73 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 74 | href="../../final-system/ppc64/yaboot.xml"
|
---|
| 75 | xpointer="xpointer(//*[@os='j0'])"/>
|
---|
| 76 |
|
---|
| 77 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 78 | href="../../final-system/ppc64/yaboot.xml"
|
---|
| 79 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
| 80 |
|
---|
| 81 | <screen><userinput>make CROSS=${CLFS_TARGET}- ROOT=/tools PREFIX= install 2>&1 | tee instlog</userinput></screen>
|
---|
| 82 |
|
---|
| 83 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 84 | href="../../final-system/ppc64/yaboot.xml"
|
---|
| 85 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
| 86 |
|
---|
| 87 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 88 | href="../../final-system/ppc64/yaboot.xml"
|
---|
| 89 | xpointer="xpointer(//*[@os='h'])"/>
|
---|
| 90 |
|
---|
| 91 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 92 | href="../../final-system/ppc64/yaboot.xml"
|
---|
| 93 | xpointer="xpointer(//*[@os='i'])"/>
|
---|
| 94 |
|
---|
| 95 | </sect2>
|
---|
| 96 |
|
---|
| 97 | <sect2 role="content">
|
---|
| 98 | <title/>
|
---|
| 99 |
|
---|
| 100 | <para>Details on this package are located in <xref linkend="contents-yaboot" role="."/></para>
|
---|
| 101 |
|
---|
| 102 | </sect2>
|
---|
| 103 |
|
---|
| 104 | </sect1>
|
---|