source: BOOK/boot/ppc64/yaboot-build.xml@ 73d050d

Last change on this file since 73d050d was dabbced, checked in by Joe Ciccone <jciccone@…>, 14 years ago

Change the XInclude schema path from 2003 to 2001. 2003 is depreciated
according to w3.org and 2001 should be used instead.

  • Property mode set to 100644
File size: 3.0 KB
RevLine 
[bc5db55]1<?xml version="1.0" encoding="ISO-8859-1"?>
[aa18ac0]2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
[bc5db55]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
[dabbced]18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[bc5db55]19 href="../../final-system/ppc/yaboot.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
21
22 <sect2 role="installation">
23 <title>Installation of Yaboot</title>
24
[dabbced]25 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[bc5db55]26 href="../ppc/yaboot-build.xml"
27 xpointer="xpointer(//*[@os='p1'])"/>
28
[dabbced]29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[bc5db55]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
[3f76cac]36 install for the root user, which user CLFS cannot do. We also need to use
[bc5db55]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
[0c7419e8]40<screen><userinput>cp -v Makefile{,.orig}
[bc5db55]41sed -e "s/\(-print-libgcc-file-name\)/${BUILD32} \1/" \
42 -e "s/\(-Bstatic\)/-melf32ppclinux \1/" \
[07114c98]43 -e "s/\(strip \)/${CLFS_TARGET}-\1/" \
[bc5db55]44 -e 's/-o root -g root//' \
[1b274255]45 Makefile.orig &gt; Makefile</userinput></screen>
[bc5db55]46
[dabbced]47 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[bc5db55]48 href="../../final-system/ppc/yaboot.xml"
[291bd8b]49 xpointer="xpointer(//*[@os='c'])"/>
[bc5db55]50
[07114c98]51<screen><userinput>CFLAGS=${BUILD32} make CROSS=${CLFS_TARGET}-</userinput></screen>
[bc5db55]52
[dabbced]53 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[bc5db55]54 href="../../final-system/ppc64/yaboot.xml"
[3f5646b]55 xpointer="xpointer(//*[@os='j0'])"/>
[bc5db55]56
[dabbced]57 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[104131a]58 href="../../final-system/ppc64/yaboot.xml"
59 xpointer="xpointer(//*[@os='e'])"/>
60
[bc2e3fa]61<screen><userinput>make CROSS=${CLFS_TARGET}- ROOT=/tools PREFIX= install 2&gt;&amp;1 | tee instlog</userinput></screen>
[bc5db55]62
[dabbced]63 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[bc5db55]64 href="../../final-system/ppc64/yaboot.xml"
[291bd8b]65 xpointer="xpointer(//*[@os='g'])"/>
[bc5db55]66
[dabbced]67 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[bc5db55]68 href="../../final-system/ppc64/yaboot.xml"
[291bd8b]69 xpointer="xpointer(//*[@os='h'])"/>
[bc5db55]70
[dabbced]71 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[bc5db55]72 href="../../final-system/ppc64/yaboot.xml"
[291bd8b]73 xpointer="xpointer(//*[@os='i'])"/>
[bc5db55]74
75 </sect2>
76
77 <sect2 role="content">
78 <title/>
79
80 <para>Details on this package are located in <xref linkend="contents-yaboot" role="."/></para>
81
82 </sect2>
83
84</sect1>
Note: See TracBrowser for help on using the repository browser.