[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 |
|
---|
| 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 |
|
---|
[d018b81] | 16 | <screen os="b"><userinput>export BUILD32="<replaceable>[BUILD32 entries]</replaceable>"
|
---|
| 17 | export BUILD64="<replaceable>[BUILD64 entries]</replaceable>"
|
---|
| 18 | export GCCTARGET="<replaceable>[GCCTARGET entries]</replaceable>"</userinput></screen>
|
---|
[3793118a] | 19 |
|
---|
| 20 | <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
|
---|
| 21 | href="../multilib/flags.xml"
|
---|
| 22 | xpointer="xpointer(//*[@os='c'])"/>
|
---|
| 23 |
|
---|
[7fc909b] | 24 | <screen os="d"><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bashrc
|
---|
[3793118a] | 25 | echo export BUILD64=\""${BUILD64}\"" >> ~/.bashrc
|
---|
| 26 | echo export GCCTARGET=\""${GCCTARGET}\"" >> ~/.bashrc</userinput></screen>
|
---|
| 27 |
|
---|
[7fc909b] | 28 | <para os="e">The following table gives the entires for different Sparc 64 capable
|
---|
[fbf24b4] | 29 | processors. Pick the processor that matches your system. Note: GCC settings are
|
---|
| 30 | only needed in the early sections of the book, and will not be used in the final-system
|
---|
| 31 | builds.</para>
|
---|
[3793118a] | 32 |
|
---|
[7fc909b] | 33 | <table os="f">
|
---|
[fbf24b4] | 34 | <title>List of 32-Bit settings, 64-Bit Build settings, and GCC setting</title>
|
---|
[d018b81] | 35 | <?dbfo table-width="7in" ?>
|
---|
| 36 |
|
---|
| 37 | <tgroup cols="4">
|
---|
| 38 |
|
---|
| 39 | <colspec colnum="1" colwidth="1in" colname="Processor"/>
|
---|
| 40 | <colspec colnum="2" colwidth="2in" colname="Build32"/>
|
---|
| 41 | <colspec colnum="3" colwidth="2in" colname="Build64"/>
|
---|
| 42 | <colspec colnum="4" colwidth="2in" colname="GCC"/>
|
---|
| 43 |
|
---|
[3793118a] | 44 | <thead>
|
---|
| 45 | <row>
|
---|
| 46 | <entry>Processor</entry>
|
---|
| 47 | <entry>BUILD32</entry>
|
---|
| 48 | <entry>BUILD64</entry>
|
---|
| 49 | <entry>GCCTARGET</entry>
|
---|
| 50 | </row>
|
---|
| 51 | </thead>
|
---|
[d018b81] | 52 |
|
---|
[3793118a] | 53 | <tbody>
|
---|
| 54 | <row>
|
---|
| 55 | <entry>Ultrasparc and Ultrasparc2</entry>
|
---|
| 56 | <entry>-m32 -mcpu=ultrasparc -mtune=ultrasparc</entry>
|
---|
| 57 | <entry>-m64 -mcpu=ultrasparc -mtune=ultrasparc</entry>
|
---|
| 58 | <entry>-mcpu=ultrasparc -mtune=ultrasparc</entry>
|
---|
| 59 | </row>
|
---|
| 60 | <row>
|
---|
| 61 | <entry>Ultrasparc3</entry>
|
---|
| 62 | <entry>-m32 -mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
|
---|
| 63 | <entry>-m64 -mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
|
---|
| 64 | <entry>-mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
|
---|
| 65 | </row>
|
---|
| 66 | </tbody>
|
---|
[d018b81] | 67 |
|
---|
[3793118a] | 68 | </tgroup>
|
---|
[d018b81] | 69 |
|
---|
[3793118a] | 70 | </table>
|
---|
| 71 |
|
---|
| 72 | </sect1>
|
---|