Changeset d258427 for BOOK/cross-tools/native/toolchain.xml
- Timestamp:
- Dec 24, 2008, 12:08:11 AM (16 years ago)
- Branches:
- clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
- Children:
- e4fd845
- Parents:
- 43f755b
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
BOOK/cross-tools/native/toolchain.xml
r43f755b rd258427 6 6 ]> 7 7 8 <sect1 id="ch-cross-tools- gcc-final" role="wrap">9 <?dbhtml filename=" gcc-final.html"?>10 11 <title> Cross GCC-&gcc-version; - Final</title>12 13 <indexterm zone="ch-cross-tools- gcc-final">14 <primary sortas="a- GCC">GCC</primary>15 <secondary>cross tools , final</secondary>8 <sect1 id="ch-cross-tools-toolchain" role="wrap"> 9 <?dbhtml filename="toolchain.html"?> 10 11 <title>Toolchain</title> 12 13 <indexterm zone="ch-cross-tools-toolchain"> 14 <primary sortas="a-toolchain">ToolChain</primary> 15 <secondary>cross tools</secondary> 16 16 </indexterm> 17 17 18 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 19 href="../../final-system/common/gcc.xml" 20 xpointer="xpointer(//*[@role='package'])"/> 18 <sect2 role="package"> 19 <title/> 20 21 <para>This section combines Binutils, GCC, GMP, and MPFR packages 22 to create a clean toolchain.</para> 23 24 </sect2> 21 25 22 26 <sect2 role="installation"> 23 <title>Installation of GCC Cross Compiler</title> 24 25 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 26 href="gcc-static.xml" 27 <title>Installation of our Toolchain</title> 28 29 <para os="na">We are going to extract all the files needed 30 to create our toolchain:</para> 31 32 <screen os="nb"><userinput>tar -jxf ../gcc-&gcc-version;.tar.bz2 33 tar -jxf ../binutils-&binutils-version;.tar.bz2 34 tar -jxf ../mfpr-&mpfr-version;.tar.bz2 35 tar -jxf ../gmp-&gmp-version;.tar.bz2</userinput></screen> 36 37 <para os="nc">We are going to create a combined directory for 38 or build:</para> 39 40 <screen os="nd"><userinput>mkdir -pv sysroot-toolchain 41 cd gcc-&gcc-version;; tar -c * | \ 42 ( cd ../sysroot-toolchain ; tar xf - ) 43 cd ../binutils-&binutils-version;; tar -c * | \ 44 ( cd ../sysroot-toolchain ; tar xf - ) 45 cd ../sysroot-toolchain 46 mv ../mpfr-&mpfr-version; ./mpfr 47 mv ../gmp-&gmp-version; ./gmp</userinput></screen> 48 49 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 50 href="../common/gcc-static.xml" 27 51 xpointer="xpointer(//*[@os='p1'])"/> 28 52 29 53 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 30 href=" gcc-static.xml"54 href="../common/gcc-static.xml" 31 55 xpointer="xpointer(//*[@os='p2'])"/> 32 56 33 57 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 34 href="gcc-static.xml" 58 href="../common/binutils.xml" 59 xpointer="xpointer(//*[@os='ba'])"/> 60 61 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 62 href="../common/binutils.xml" 63 xpointer="xpointer(//*[@os='bb'])"/> 64 65 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 66 href="../common/binutils.xml" 67 xpointer="xpointer(//*[@os='p1'])"/> 68 69 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 70 href="../common/binutils.xml" 71 xpointer="xpointer(//*[@os='p2'])"/> 72 73 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 74 href="../common/gcc-static.xml" 75 xpointer="xpointer(//*[@os='p1'])"/> 76 77 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 78 href="../common/gcc-static.xml" 79 xpointer="xpointer(//*[@os='p2'])"/> 80 81 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 82 href="../common/gcc-static.xml" 35 83 xpointer="xpointer(//*[@os='aa'])"/> 36 84 37 85 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 38 href=" gcc-static.xml"86 href="../common/gcc-static.xml" 39 87 xpointer="xpointer(//*[@os='ab'])"/> 40 88 41 89 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 42 href=" gcc-static.xml"90 href="../common/gcc-static.xml" 43 91 xpointer="xpointer(//*[@os='ac'])"/> 44 92 45 93 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 46 href=" gcc-static.xml"94 href="../common/gcc-static.xml" 47 95 xpointer="xpointer(//*[@os='ad'])"/> 48 96 49 97 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 50 href=" gcc-static.xml"98 href="../common/gcc-static.xml" 51 99 xpointer="xpointer(//*[@os='ag'])"/> 52 100 53 101 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 54 href=" gcc-static.xml"102 href="../common/gcc-static.xml" 55 103 xpointer="xpointer(//*[@os='ah'])"/> 56 104 57 105 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 58 href=" gcc-static.xml"106 href="../common/gcc-static.xml" 59 107 xpointer="xpointer(//*[@os='ai'])"/> 60 108 61 109 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 62 href=" gcc-static.xml"110 href="../common/gcc-static.xml" 63 111 xpointer="xpointer(//*[@os='aj'])"/> 64 112 … … 71 119 72 120 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 73 href=" gcc-static.xml"121 href="../common/gcc-static.xml" 74 122 xpointer="xpointer(//*[@os='f'])"/> 75 123 76 124 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 77 href=" gcc-static.xml"125 href="../common/gcc-static.xml" 78 126 xpointer="xpointer(//*[@os='g'])"/> 79 127 80 128 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" 81 href=" gcc-static.xml"129 href="../common/gcc-static.xml" 82 130 xpointer="xpointer(//*[@os='h'])"/> 83 131 84 <screen os="bf"><userinput>AR=ar ../gcc-&gcc-version;/configure --prefix=/cross-tools \ 85 --build=${CLFS_HOST} --target=${CLFS_TARGET} --host=${CLFS_HOST} \ 86 --disable-multilib --with-local-prefix=/tools --disable-nls \ 87 --enable-shared --enable-languages=c,c++ --enable-__cxa_atexit \ 88 --enable-c99 --enable-long-long --enable-threads=posix</userinput></screen> 132 <screen os="bf"><userinput>AR=ar AS=as ../sysroot-toolchain/configure \ 133 --with-sysroot=${CLFS} --prefix=/cross-tools \ 134 --target=i686-pc-linux-gnu --with-local-prefix=/tools \ 135 --without-headers --with-newlib --disable-nls \ 136 --disable-shared --disable-decimal-float --disable-libgomp \ 137 --disable-libmudflap --disable-libssp --disable-threads \ 138 --enable-languages=c --enable-64-bit-bfd --with-lib-path=/tools/lib</userinput></screen> 89 139 90 140 <variablelist os="bg"> … … 134 184 <para os="bh">Continue with compiling the package:</para> 135 185 136 <screen os="bi"><userinput>make AS_FOR_TARGET="${CLFS_TARGET}-as" \ 137 LD_FOR_TARGET="${CLFS_TARGET}-ld"</userinput></screen> 186 <screen os="bi"><userinput>make</userinput></screen> 138 187 139 188 <para os="bj">Install the package:</para>
Note:
See TracChangeset
for help on using the changeset viewer.