source: BOOK/boot/ppc64/yaboot-build.xml@ 5ce4e62

clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 5ce4e62 was a5f7c53e, checked in by Jonathan Norman <jon@…>, 13 years ago

Updated Yaboot from 1.3.14 to 1.3.17 with thanks to Code Monkey.

  • Property mode set to 100644
File size: 3.0 KB
Line 
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="../ppc/yaboot-build.xml"
27 xpointer="xpointer(//*[@os='p1'])"/>
28
29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
30 href="../ppc/yaboot-build.xml"
31 xpointer="xpointer(//*[@os='p2'])"/>
32
33 <para>The Makefile is already set to do kernel-style cross-compiling,
34 but it will try to use <command>strip</command> to strip the second-stage
35 loader. It also expects to be running as root for the install, and to
36 install for the root user, which user CLFS cannot do. We also need to use
37 the 32-bit compiler, and to force <command>ld</command> to use a 32-bit
38 emulation. The following commands will fix and achieve this:</para>
39
40<screen><userinput>cp -v Makefile{,.orig}
41sed -e "s/\(-print-libgcc-file-name\)/${BUILD32} \1/" \
42 -e "s/\(-Bstatic\)/-melf32ppclinux \1/" \
43 -e "s/\(strip \)/${CLFS_TARGET}-\1/" \
44 -e 's/-o root -g root//' \
45 -e 's/-Werror//' \
46 Makefile.orig &gt; Makefile</userinput></screen>
47
48 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
49 href="../../final-system/ppc/yaboot.xml"
50 xpointer="xpointer(//*[@os='c'])"/>
51
52<screen><userinput>CFLAGS=${BUILD32} make CROSS=${CLFS_TARGET}-</userinput></screen>
53
54 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
55 href="../../final-system/ppc64/yaboot.xml"
56 xpointer="xpointer(//*[@os='j0'])"/>
57
58 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
59 href="../../final-system/ppc64/yaboot.xml"
60 xpointer="xpointer(//*[@os='e'])"/>
61
62<screen><userinput>make CROSS=${CLFS_TARGET}- ROOT=/tools PREFIX= install 2&gt;&amp;1 | tee instlog</userinput></screen>
63
64 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
65 href="../../final-system/ppc64/yaboot.xml"
66 xpointer="xpointer(//*[@os='g'])"/>
67
68 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
69 href="../../final-system/ppc64/yaboot.xml"
70 xpointer="xpointer(//*[@os='h'])"/>
71
72 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
73 href="../../final-system/ppc64/yaboot.xml"
74 xpointer="xpointer(//*[@os='i'])"/>
75
76 </sect2>
77
78 <sect2 role="content">
79 <title/>
80
81 <para>Details on this package are located in <xref linkend="contents-yaboot" role="."/></para>
82
83 </sect2>
84
85</sect1>
Note: See TracBrowser for help on using the repository browser.