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