source: BOOK/boot/ppc/yaboot-build.xml@ 41a5f16

clfs-3.0.0-sysvinit sysvinit
Last change on this file since 41a5f16 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: 2.9 KB
RevLine 
[5c8aba6]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" [
[5c8aba6]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>
[d5cf87a3]15 <secondary>boot</secondary>
[5c8aba6]16 </indexterm>
17
[dabbced]18 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[d5cf87a3]19 href="../../final-system/ppc/yaboot.xml"
20 xpointer="xpointer(//*[@role='package'])"/>
[5c8aba6]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
[bc5db55]41 <para os="p1">The following patch allows <command>ofpath</command> to use
42 <literal>PATH_PREFIX</literal> like the other
43 <filename class="directory">ybin</filename> scripts:</para>
44
45<screen os="p2"><userinput>patch -Np1 -i ../&yaboot-ofpath_path-patch;</userinput></screen>
46
[d767eb3]47 <para>The Makefile is already set to do kernel-style cross-compiling,
48 but it will try to use <command>strip</command> to strip the second-stage
[8fd11cd]49 loader. It also tries to change user and group ownership for the installed
50 files to <systemitem class="username">root</systemitem>, which the
[a5f7c53e]51 <systemitem class="username">clfs</systemitem> user cannot do. It will also
52 fail due to a compile warning with the -Werror flag on. The following
53 command fixes these issues:</para>
[d767eb3]54
[0c7419e8]55<screen><userinput>cp -v Makefile{,.orig}
[07114c98]56sed -e "s/\(strip \)/${CLFS_TARGET}-\1/" \
[d767eb3]57 -e 's/-o root -g root//' \
[a5f7c53e]58 -e 's/-Werror//' \
[1b274255]59 Makefile.orig &gt; Makefile</userinput></screen>
[d767eb3]60
[dabbced]61 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[d767eb3]62 href="../../final-system/ppc/yaboot.xml"
[291bd8b]63 xpointer="xpointer(//*[@os='c'])"/>
[d767eb3]64
[07114c98]65<screen><userinput>make CROSS=${CLFS_TARGET}-</userinput></screen>
[d767eb3]66
[dabbced]67 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
[d767eb3]68 href="../../final-system/ppc/yaboot.xml"
[291bd8b]69 xpointer="xpointer(//*[@os='e'])"/>
[d767eb3]70
[bc2e3fa]71<screen><userinput>make CROSS=${CLFS_TARGET}- ROOT=/tools PREFIX="" install</userinput></screen>
[5c8aba6]72
73 </sect2>
74
75 <sect2 role="content">
76 <title/>
77
78 <para>Details on this package are located in <xref linkend="contents-yaboot" role="."/></para>
79
80 </sect2>
81
82</sect1>
Note: See TracBrowser for help on using the repository browser.