source: clfs-embedded/BOOK/cross-tools/arm/gcc-static.xml@ 68781d8

Last change on this file since 68781d8 was 4c373d4, checked in by Andrew Bradford <bradfa@…>, 14 years ago

Added note to ARM Static-GCC for soft float patch

Tell users to apply ARM static-GCC patch for soft float.

  • Property mode set to 100644
File size: 4.4 KB
RevLine 
[ae51e2a]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<!-- ARM 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
[4c373d4]30 <important>
31
32 <para>If you set ${CLFS_FLOAT} to "soft" or "softfp", you must apply the
33 &gcc-uclibc-arm-softfloat-patch;. Check what ${CLFS_FLOAT} is set to and
34 if needed, apply the patch:</para>
35
36<screen><userinput>echo ${CLFS_FLOAT}
37patch -Np1 -i ../&gcc-uclibc-arm-softfloat-patch;</userinput></screen>
38
39 </important>
40
[ae51e2a]41 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
42 href="../common/gcc-static.xml"
43 xpointer="xpointer(//*[@os='c'])"/>
44
45 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
46 href="../common/gcc-static.xml"
47 xpointer="xpointer(//*[@os='d'])"/>
48
49 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
50 href="../common/gcc-static.xml"
51 xpointer="xpointer(//*[@os='e'])"/>
52
53<screen os="ae"><userinput>AR=ar LDFLAGS="-Wl,-rpath,${CLFS}/cross-tools/lib" \
54 ../gcc-&gcc-version;/configure --prefix=${CLFS}/cross-tools \
55 --build=${CLFS_HOST} --host=${CLFS_HOST} --target=${CLFS_TARGET} \
56 --with-sysroot=${CLFS} --disable-nls --disable-shared \
57 --with-mpfr=${CLFS}/cross-tools --with-gmp=${CLFS}/cross-tools \
58 --with-mpc=${CLFS}/cross-tools --without-headers --with-newlib \
59 --disable-decimal-float --disable-libgomp --disable-libmudflap \
60 --disable-libssp --disable-threads --enable-languages=c \
[18d1bcd]61 --disable-multilib --with-abi=${CLFS_ABI} --with-arch=${CLFS_ARM_ARCH} \
62 --with-mode=${CLFS_ARM_MODE} --with-float=${CLFS_FLOAT} \
63 --with-fpu=${CLFS_FPU}</userinput></screen>
[ae51e2a]64
65<!-- Common configure switches for all archs -->
66 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
67 href="../common/gcc-static.xml"
68 xpointer="xpointer(//*[@os='af'])"/>
69
70<!-- Specific configure switches for ARM -->
71 <variablelist os="ag">
72
73 <varlistentry os="ag1">
74 <term><parameter>--with-abi=${CLFS_ABI}</parameter></term>
75 <listitem>
76 <para>This option sets the ABI selected earlier.</para>
77 </listitem>
78 </varlistentry>
[18d1bcd]79 <varlistentry os="ag2">
80 <term><parameter>--with-arch=${CLFS_ARM_ARCH}</parameter></term>
81 <listitem>
82 <para>This option sets the ARM architecture selected earlier.</para>
83 </listitem>
84 </varlistentry>
85 <varlistentry os="ag3">
86 <term><parameter>--with-mode=${CLFS_ARM_MODE}</parameter></term>
87 <listitem>
88 <para>This option sets the ARM mode (arm or thumb) selected earlier.</para>
89 </listitem>
90 </varlistentry>
91 <varlistentry os="ag4">
92 <term><parameter>--with-float=${CLFS_FLOAT}</parameter></term>
93 <listitem>
94 <para>This option sets the floating point mode selected earlier.</para>
95 </listitem>
96 </varlistentry>
97 <varlistentry os="ag5">
98 <term><parameter>--with-fpu=${CLFS_FPU}</parameter></term>
99 <listitem>
100 <para>This option sets the hardware floating point type selected
101 earlier. If soft floating point was selected, this value is ignored.</para>
102 </listitem>
103 </varlistentry>
[ae51e2a]104
105 </variablelist>
106
107 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
108 href="../common/gcc-static.xml"
109 xpointer="xpointer(//*[@os='ah'])"/>
110
111 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
112 href="../common/gcc-static.xml"
113 xpointer="xpointer(//*[@os='ai'])"/>
114
115 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
116 href="../common/gcc-static.xml"
117 xpointer="xpointer(//*[@os='aj'])"/>
118
119 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
120 href="../common/gcc-static.xml"
121 xpointer="xpointer(//*[@os='ak'])"/>
122
123 </sect2>
124
125 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
126 href="../common/gcc-static.xml"
127 xpointer="xpointer(//*[@role='content'])"/>
128
129</sect1>
Note: See TracBrowser for help on using the repository browser.