source: cross-tools/sparc64/flags.xml@ be205bc2

Last change on this file since be205bc2 was bf8c11f, checked in by Jim Gifford <clfs@…>, 19 years ago

r627@server (orig r625): jim | 2005-10-31 12:59:34 -0800
Import of Cross-LFS Book

  • Property mode set to 100644
File size: 2.9 KB
Line 
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>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><userinput>export BUILD32="[BUILD32 entries]"
17export BUILD64="[BUILD64 entries]"
18export GCCTARGET=[GCCTARGET entries]"</userinput></screen>
19
20 <para>You will need to set your host target triplet for 32 bit:</para>
21
22<screen><userinput>export LFS_TARGET32="sparcv9-unknown-linux-gnu"</userinput></screen>
23
24<screen><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET32}" ]; then \
25 echo "Host and Target can't be the same." ; fi</userinput></screen>
26
27 <para>If the above test gave you "Host and Target can't be the same", you will need to change your LFS_HOST to a
28 a different target triplet:</para>
29
30<screen><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen>
31
32 <para>Lets add the build flags to <filename>~/.bashrc</filename> to
33 prevent issues if we stop and come back later.</para>
34
35<screen><userinput>echo export BUILD32=\""${BUILD32}\"" &gt;&gt; ~/.bashrc
36echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc
37echo export GCCTARGET=\""${GCCTARGET}\"" &gt;&gt; ~/.bashrc
38echo export LFS_TARGET32=\""${LFS_TARGET32}\"" &gt;&gt; ~/.bashrc
39echo export LFS_HOST=\""${LFS_HOST}\"" &gt;&gt; ~/.bashrc</userinput></screen>
40
41 <para>The following table gives the entires for different Sparc 64 capable
42 processors. Pick the processor that matches your system.</para>
43
44 <table>
45 <title>List of architectures, target triplets, and recommended book</title>
46 <tgroup cols="2" align="center">
47 <colspec colname="Processor"/>
48 <colspec colname="Build32"/>
49 <colspec colname="Build64"/>
50 <colspec colname="GCC"/>
51 <thead>
52 <row>
53 <entry>Processor</entry>
54 <entry>BUILD32</entry>
55 <entry>BUILD64</entry>
56 <entry>GCCTARGET</entry>
57 </row>
58 </thead>
59 <tbody>
60 <row>
61 <entry>Ultrasparc and Ultrasparc2</entry>
62 <entry>-m32 -mcpu=ultrasparc -mtune=ultrasparc</entry>
63 <entry>-m64 -mcpu=ultrasparc -mtune=ultrasparc</entry>
64 <entry>-mcpu=ultrasparc -mtune=ultrasparc</entry>
65 </row>
66 <row>
67 <entry>Ultrasparc3</entry>
68 <entry>-m32 -mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
69 <entry>-m64 -mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
70 <entry>-mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
71 </row>
72 </tbody>
73 </tgroup>
74 </table>
75
76</sect1>
77
Note: See TracBrowser for help on using the repository browser.