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 | <para os="p1">The following patch allows <command>ofpath</command> to use
|
---|
26 | <literal>PATH_PREFIX</literal> like the other
|
---|
27 | <filename class="directory">ybin</filename> scripts:</para>
|
---|
28 |
|
---|
29 | <screen os="p2"><userinput>patch -Np1 -i ../&yaboot-ofpath_path-patch;</userinput></screen>
|
---|
30 |
|
---|
31 | <para>The Makefile is already set to do kernel-style cross-compiling,
|
---|
32 | but it will try to use <command>strip</command> to strip the second-stage
|
---|
33 | loader. It also tries to change user and group ownership for the installed
|
---|
34 | files to <systemitem class="username">root</systemitem>, which the
|
---|
35 | <systemitem class="username">clfs</systemitem> user cannot do. It will also
|
---|
36 | fail due to a compile warning with the -Werror flag on. The following
|
---|
37 | command fixes these issues:</para>
|
---|
38 |
|
---|
39 | <screen><userinput>cp -v Makefile{,.orig}
|
---|
40 | sed -e "s/\(strip \)/${CLFS_TARGET}-\1/" \
|
---|
41 | -e 's/-o root -g root//' \
|
---|
42 | -e 's/-Werror//' \
|
---|
43 | Makefile.orig > Makefile</userinput></screen>
|
---|
44 |
|
---|
45 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
46 | href="../../final-system/ppc/yaboot.xml"
|
---|
47 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
48 |
|
---|
49 | <screen><userinput>make CROSS=${CLFS_TARGET}-</userinput></screen>
|
---|
50 |
|
---|
51 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
52 | href="../../final-system/ppc/yaboot.xml"
|
---|
53 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
54 |
|
---|
55 | <screen><userinput>make CROSS=${CLFS_TARGET}- ROOT=/tools PREFIX="" install</userinput></screen>
|
---|
56 |
|
---|
57 | </sect2>
|
---|
58 |
|
---|
59 | <sect2 role="content">
|
---|
60 | <title/>
|
---|
61 |
|
---|
62 | <para>Details on this package are located in <xref linkend="contents-yaboot" role="."/></para>
|
---|
63 |
|
---|
64 | </sect2>
|
---|
65 |
|
---|
66 | </sect1>
|
---|