source: clfs-embedded/BOOK/cross-tools/mips/gcc-static.xml@ d22b691

Last change on this file since d22b691 was 94e2400, checked in by Andrew Bradford <andrew@…>, 11 years ago

Use ${CLFS}/cross-tools/${CLFS_TARGET} as sysroot dir

BUG: This uses ${CLFS_TARGET} before it is exported within materials
chapter for creating the sysroot directory!

  • Property mode set to 100644
File size: 4.7 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<!-- MIPS GCC-Static -->
9
10<sect1 id="ch-cross-tools-gcc-static" role="wrap">
11 <?dbhtml filename="gcc-static.html"?>
12
13 <title>Cross GCC-&gcc-version; - Static</title>
14
15 <indexterm zone="ch-cross-tools-gcc-static">
16 <primary sortas="a-GCC">GCC</primary>
17 <secondary>cross tools, static</secondary>
18 </indexterm>
19
20 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
21 href="../common/gcc-static.xml"
22 xpointer="xpointer(//*[@role='package'])"/>
23
24 <sect2 role="installation">
25
26 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
27 href="../common/gcc-static.xml"
28 xpointer="xpointer(//*[@os='a'])"/>
29
30 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
31 href="../common/gcc-static.xml"
32 xpointer="xpointer(//*[@os='aa'])"/>
33
34 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
35 href="../common/gcc-static.xml"
36 xpointer="xpointer(//*[@os='ab'])"/>
37
38 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
39 href="../common/gcc-static.xml"
40 xpointer="xpointer(//*[@os='b'])"/>
41
42 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
43 href="../common/gcc-static.xml"
44 xpointer="xpointer(//*[@os='ba'])"/>
45
46 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
47 href="../common/gcc-static.xml"
48 xpointer="xpointer(//*[@os='c'])"/>
49
50 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
51 href="../common/gcc-static.xml"
52 xpointer="xpointer(//*[@os='d'])"/>
53
54 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
55 href="../common/gcc-static.xml"
56 xpointer="xpointer(//*[@os='e'])"/>
57
58<screen os="ae"><userinput>../gcc-&gcc-version;/configure \
59 --prefix=${CLFS}/cross-tools \
60 --build=${CLFS_HOST} \
61 --host=${CLFS_HOST} \
62 --target=${CLFS_TARGET} \
63 --with-sysroot=${CLFS}/cross-tools/${CLFS_TARGET} \
64 --disable-nls \
65 --disable-shared \
66 --without-headers \
67 --with-newlib \
68 --disable-decimal-float \
69 --disable-libgomp \
70 --disable-libmudflap \
71 --disable-libssp \
72 --disable-libatomic \
73 --disable-libquadmath \
74 --disable-threads \
75 --enable-languages=c \
76 --disable-multilib \
77 --with-mpfr-include=$(pwd)/../gcc-&gcc-version;/mpfr/src \
78 --with-mpfr-lib=$(pwd)/mpfr/src/.libs \
79 --with-abi=${CLFS_ABI} \
80 --with-arch=mips${CLFS_MIPS_LEVEL} \
81 --with-float=${CLFS_FLOAT} \
82 --with-endian=${CLFS_ENDIAN}</userinput></screen>
83
84<!-- Common configure switches for all archs -->
85 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
86 href="../common/gcc-static.xml"
87 xpointer="xpointer(//*[@os='af'])"/>
88
89<!-- Specific configure switches for MIPS -->
90 <variablelist os="ag">
91
92 <varlistentry os="ag1">
93 <term><parameter>--with-abi=${CLFS_ABI}</parameter></term>
94 <listitem>
95 <para>This option sets the ABI selected earlier.</para>
96 </listitem>
97 </varlistentry>
98 <varlistentry os="ag2">
99 <term><parameter>--with-arch=mips${CLFS_MIPS_LEVEL}</parameter></term>
100 <listitem>
101 <para>This option sets the MIPS architecture ISA. Generic options
102 that apply to this book are of the form "mips${CLFS_MIPS_LEVEL}".
103 For example, "mips1" or "mips3". For a more expanded list of choices,
104 please see the GCC documentation at
105 <ulink url="http://gcc.gnu.org/onlinedocs/gcc/MIPS-Options.html" /></para>
106 </listitem>
107 </varlistentry>
108 <varlistentry os="ag3">
109 <term><parameter>--with-float=${CLFS_FLOAT}</parameter></term>
110 <listitem>
111 <para>This option sets the floating point mode selected earlier.</para>
112 </listitem>
113 </varlistentry>
114 <varlistentry os="ag4">
115 <term><parameter>--with-endian=${CLFS_ENDIAN}</parameter></term>
116 <listitem>
117 <para>This option sets the endianess of the CPU selected earlier.
118 GCC's configure scripts may not be able to determine the endianess
119 based only on the target triplet (as other architectures do).</para>
120 </listitem>
121 </varlistentry>
122
123 </variablelist>
124
125 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
126 href="../common/gcc-static.xml"
127 xpointer="xpointer(//*[@os='ah'])"/>
128
129 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
130 href="../common/gcc-static.xml"
131 xpointer="xpointer(//*[@os='ai'])"/>
132
133 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
134 href="../common/gcc-static.xml"
135 xpointer="xpointer(//*[@os='aj'])"/>
136
137 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
138 href="../common/gcc-static.xml"
139 xpointer="xpointer(//*[@os='ak'])"/>
140
141 </sect2>
142
143 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
144 href="../common/gcc-static.xml"
145 xpointer="xpointer(//*[@role='content'])"/>
146
147</sect1>
Note: See TracBrowser for help on using the repository browser.