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

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

Added nodump to CLFS_HOST/CLFS_TARGET creation to work better with jhalfs

  • Property mode set to 100644
File size: 3.5 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-cross-tools-variables">
9 <?dbhtml filename="variables.html"?>
10
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
27<screen role="nodump" os="d"><userinput>export CLFS_TARGET="sparc64-unknown-linux-gnu"</userinput></screen>
28
29 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
30 href="../x86_64/variables.xml"
31 xpointer="xpointer(//*[@os='e'])"/>
32
33<screen role="nodump" os="f"><userinput>export CLFS_TARGET32="sparcv9-unknown-linux-gnu"</userinput></screen>
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
37 from the table at the bottom of the page.</para>
38
39<screen os="h"><userinput>export BUILD32="<replaceable>[BUILD32 entries]</replaceable>"
40export BUILD64="<replaceable>[BUILD64 entries]</replaceable>"
41export GCCTARGET="<replaceable>[GCCTARGET entries]</replaceable>"</userinput></screen>
42
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'])"/>
48
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}"
53export BUILD32="${BUILD32}"
54export BUILD64="${BUILD64}"
55export GCCTARGET="${GCCTARGET}"
56EOF</userinput></screen>
57
58 <para os="k">The following table gives the entries for different Sparc 64 capable
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>
62
63 <table os="l">
64 <title>List of 32-Bit settings, 64-Bit Build settings, and GCC setting</title>
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
74 <thead>
75 <row>
76 <entry>Processor</entry>
77 <entry>BUILD32</entry>
78 <entry>BUILD64</entry>
79 <entry>GCCTARGET</entry>
80 </row>
81 </thead>
82
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>
97
98 </tgroup>
99
100 </table>
101
102</sect1>
Note: See TracBrowser for help on using the repository browser.