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

clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since f365c65 was 396b325, checked in by William Harrington <kb0iic@…>, 11 years ago

Add yaboot parted patch description and commands to boot yaboot-build and final-system yaboot installation commands.

  • Property mode set to 100644
File size: 3.6 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
[2bdaa81]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
[dabbced]41 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[bc5db55]42 href="../ppc/yaboot-build.xml"
43 xpointer="xpointer(//*[@os='p1'])"/>
44
[dabbced]45 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[bc5db55]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
[3f76cac]52 install for the root user, which user CLFS cannot do. We also need to use
[bc5db55]53 the 32-bit compiler, and to force <command>ld</command> to use a 32-bit
54 emulation. The following commands will fix and achieve this:</para>
55
[0c7419e8]56<screen><userinput>cp -v Makefile{,.orig}
[bc5db55]57sed -e "s/\(-print-libgcc-file-name\)/${BUILD32} \1/" \
58 -e "s/\(-Bstatic\)/-melf32ppclinux \1/" \
[07114c98]59 -e "s/\(strip \)/${CLFS_TARGET}-\1/" \
[bc5db55]60 -e 's/-o root -g root//' \
[a5f7c53e]61 -e 's/-Werror//' \
[1b274255]62 Makefile.orig &gt; Makefile</userinput></screen>
[bc5db55]63
[dabbced]64 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[bc5db55]65 href="../../final-system/ppc/yaboot.xml"
[291bd8b]66 xpointer="xpointer(//*[@os='c'])"/>
[bc5db55]67
[07114c98]68<screen><userinput>CFLAGS=${BUILD32} make CROSS=${CLFS_TARGET}-</userinput></screen>
[bc5db55]69
[dabbced]70 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[bc5db55]71 href="../../final-system/ppc64/yaboot.xml"
[3f5646b]72 xpointer="xpointer(//*[@os='j0'])"/>
[bc5db55]73
[dabbced]74 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[104131a]75 href="../../final-system/ppc64/yaboot.xml"
76 xpointer="xpointer(//*[@os='e'])"/>
77
[bc2e3fa]78<screen><userinput>make CROSS=${CLFS_TARGET}- ROOT=/tools PREFIX= install 2&gt;&amp;1 | tee instlog</userinput></screen>
[bc5db55]79
[dabbced]80 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[bc5db55]81 href="../../final-system/ppc64/yaboot.xml"
[291bd8b]82 xpointer="xpointer(//*[@os='g'])"/>
[bc5db55]83
[dabbced]84 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[bc5db55]85 href="../../final-system/ppc64/yaboot.xml"
[291bd8b]86 xpointer="xpointer(//*[@os='h'])"/>
[bc5db55]87
[dabbced]88 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[bc5db55]89 href="../../final-system/ppc64/yaboot.xml"
[291bd8b]90 xpointer="xpointer(//*[@os='i'])"/>
[bc5db55]91
92 </sect2>
93
94 <sect2 role="content">
95 <title/>
96
97 <para>Details on this package are located in <xref linkend="contents-yaboot" role="."/></para>
98
99 </sect2>
100
101</sect1>
Note: See TracBrowser for help on using the repository browser.