source: BOOK/final-preps/sparc64/variables.xml@ e594680

clfs-3.0.0-systemd systemd
Last change on this file since e594680 was 48dab198, checked in by Chris Staub <chris@…>, 10 years ago

Removed nodump attributes and added replaceable tags to make the book work better with jhalfs

  • Property mode set to 100644
File size: 3.5 KB
RevLine 
[3793118a]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" [
[3793118a]4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6]>
7
[0666dec]8<sect1 id="ch-final-preps-variables">
[5585711]9 <?dbhtml filename="variables.html"?>
[3793118a]10
[5585711]11 <title>Build Variables</title>
12
13 <bridgehead renderas="sect4">Setting Host and Target</bridgehead>
14
15 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
16 href="../x86/variables.xml"
17 xpointer="xpointer(//*[@os='a'])"/>
18
19 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
20 href="../x86/variables.xml"
21 xpointer="xpointer(//*[@os='b'])"/>
22
23 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
24 href="../x86/variables.xml"
25 xpointer="xpointer(//*[@os='c'])"/>
26
[48dab198]27<screen os="d"><userinput>export CLFS_TARGET="sparc64-unknown-linux-gnu"</userinput></screen>
[5585711]28
29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
30 href="../x86_64/variables.xml"
31 xpointer="xpointer(//*[@os='e'])"/>
32
[48dab198]33<screen os="f"><userinput>export CLFS_TARGET32="sparcv9-unknown-linux-gnu"</userinput></screen>
[5585711]34
35 <para os="g">We will need to setup target specific flags for the compiler
36 and linkers. You can choose the appropriate BUILD32, BUILD64, and GCCTARGET
[3793118a]37 from the table at the bottom of the page.</para>
38
[5585711]39<screen os="h"><userinput>export BUILD32="<replaceable>[BUILD32 entries]</replaceable>"
[d018b81]40export BUILD64="<replaceable>[BUILD64 entries]</replaceable>"
41export GCCTARGET="<replaceable>[GCCTARGET entries]</replaceable>"</userinput></screen>
[3793118a]42
[5585711]43 <bridgehead renderas="sect4">Copy settings to Environment</bridgehead>
44
45 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
46 href="../x86_64/variables.xml"
47 xpointer="xpointer(//*[@os='i'])"/>
[3793118a]48
[5585711]49<screen os="j"><userinput>cat &gt;&gt; ~/.bashrc &lt;&lt; EOF
50export CLFS_HOST="${CLFS_HOST}"
51export CLFS_TARGET="${CLFS_TARGET}"
52export CLFS_TARGET32="${CLFS_TARGET32}"
[c63dde1]53export BUILD32="${BUILD32}"
54export BUILD64="${BUILD64}"
55export GCCTARGET="${GCCTARGET}"
56EOF</userinput></screen>
[3793118a]57
[5585711]58 <para os="k">The following table gives the entries for different Sparc 64 capable
[fbf24b4]59 processors. Pick the processor that matches your system. Note: GCC settings are
60 only needed in the early sections of the book, and will not be used in the final-system
61 builds.</para>
[3793118a]62
[5585711]63 <table os="l">
[fbf24b4]64 <title>List of 32-Bit settings, 64-Bit Build settings, and GCC setting</title>
[d018b81]65 <?dbfo table-width="7in" ?>
66
67 <tgroup cols="4">
68
69 <colspec colnum="1" colwidth="1in" colname="Processor"/>
70 <colspec colnum="2" colwidth="2in" colname="Build32"/>
71 <colspec colnum="3" colwidth="2in" colname="Build64"/>
72 <colspec colnum="4" colwidth="2in" colname="GCC"/>
73
[3793118a]74 <thead>
75 <row>
76 <entry>Processor</entry>
77 <entry>BUILD32</entry>
78 <entry>BUILD64</entry>
79 <entry>GCCTARGET</entry>
80 </row>
81 </thead>
[d018b81]82
[3793118a]83 <tbody>
84 <row>
85 <entry>Ultrasparc and Ultrasparc2</entry>
86 <entry>-m32 -mcpu=ultrasparc -mtune=ultrasparc</entry>
87 <entry>-m64 -mcpu=ultrasparc -mtune=ultrasparc</entry>
88 <entry>-mcpu=ultrasparc -mtune=ultrasparc</entry>
89 </row>
90 <row>
91 <entry>Ultrasparc3</entry>
92 <entry>-m32 -mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
93 <entry>-m64 -mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
94 <entry>-mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
95 </row>
96 </tbody>
[d018b81]97
[3793118a]98 </tgroup>
[d018b81]99
[3793118a]100 </table>
101
102</sect1>
Note: See TracBrowser for help on using the repository browser.