1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
|
---|
3 | "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
|
---|
4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
5 | %general-entities;
|
---|
6 | ]>
|
---|
7 |
|
---|
8 | <sect1 id="ch-cross-tools-flags">
|
---|
9 | <title>Build Flags</title>
|
---|
10 | <?dbhtml filename="flags.html"?>
|
---|
11 |
|
---|
12 | <para os="a">We will need to setup target specific flags for the compiler
|
---|
13 | and linkers. You can choose the appropriate BUILD32 and BUILD64
|
---|
14 | from the table at the bottom of the page.</para>
|
---|
15 |
|
---|
16 | <screen os="b"><userinput>export BUILD32="[BUILD32 entries]"
|
---|
17 | export BUILD64="[BUILD64 entries]"
|
---|
18 | export GCCTARGET="[GCCTARGET entries]"</userinput></screen>
|
---|
19 |
|
---|
20 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
21 | href="../x86_64/flags.xml"
|
---|
22 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
23 |
|
---|
24 | <screen os="d"><userinput>export LFS_TARGET32="sparcv9-unknown-linux-gnu"</userinput></screen>
|
---|
25 |
|
---|
26 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
27 | href="../x86_64/flags.xml"
|
---|
28 | xpointer="xpointer(//*[@os='e'])"/>
|
---|
29 |
|
---|
30 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
31 | href="../x86_64/flags.xml"
|
---|
32 | xpointer="xpointer(//*[@os='f'])"/>
|
---|
33 |
|
---|
34 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
35 | href="../x86_64/flags.xml"
|
---|
36 | xpointer="xpointer(//*[@os='g'])"/>
|
---|
37 |
|
---|
38 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
39 | href="../x86_64/flags.xml"
|
---|
40 | xpointer="xpointer(//*[@os='h'])"/>
|
---|
41 |
|
---|
42 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
43 | href="../x86_64/flags.xml"
|
---|
44 | xpointer="xpointer(//*[@os='i'])"/>
|
---|
45 |
|
---|
46 | <screen os="j"><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bashrc
|
---|
47 | echo export BUILD64=\""${BUILD64}\"" >> ~/.bashrc
|
---|
48 | echo export GCCTARGET=\""${GCCTARGET}\"" >> ~/.bashrc
|
---|
49 | echo export LFS_TARGET32=\""${LFS_TARGET32}\"" >> ~/.bashrc
|
---|
50 | echo export LFS_HOST=\""${LFS_HOST}\"" >> ~/.bashrc</userinput></screen>
|
---|
51 |
|
---|
52 | <para os="k">The following table gives the entires for different Sparc 64 capable
|
---|
53 | processors. Pick the processor that matches your system.</para>
|
---|
54 |
|
---|
55 | <table os="l">
|
---|
56 | <title>List of architectures, target triplets, and recommended book</title>
|
---|
57 | <tgroup cols="2" align="center">
|
---|
58 | <colspec colname="Processor"/>
|
---|
59 | <colspec colname="Build32"/>
|
---|
60 | <colspec colname="Build64"/>
|
---|
61 | <colspec colname="GCC"/>
|
---|
62 | <thead>
|
---|
63 | <row>
|
---|
64 | <entry>Processor</entry>
|
---|
65 | <entry>BUILD32</entry>
|
---|
66 | <entry>BUILD64</entry>
|
---|
67 | <entry>GCCTARGET</entry>
|
---|
68 | </row>
|
---|
69 | </thead>
|
---|
70 | <tbody>
|
---|
71 | <row>
|
---|
72 | <entry>Ultrasparc and Ultrasparc2</entry>
|
---|
73 | <entry>-m32 -mcpu=ultrasparc -mtune=ultrasparc</entry>
|
---|
74 | <entry>-m64 -mcpu=ultrasparc -mtune=ultrasparc</entry>
|
---|
75 | <entry>-mcpu=ultrasparc -mtune=ultrasparc</entry>
|
---|
76 | </row>
|
---|
77 | <row>
|
---|
78 | <entry>Ultrasparc3</entry>
|
---|
79 | <entry>-m32 -mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
|
---|
80 | <entry>-m64 -mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
|
---|
81 | <entry>-mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
|
---|
82 | </row>
|
---|
83 | </tbody>
|
---|
84 | </tgroup>
|
---|
85 | </table>
|
---|
86 |
|
---|
87 | </sect1>
|
---|
88 |
|
---|