Ignore:
Timestamp:
Dec 24, 2008, 8:08:11 AM (16 years ago)
Author:
Jim Gifford <clfs@…>
Branches:
clfs-1.2, clfs-2.1, clfs-3.0.0-systemd, clfs-3.0.0-sysvinit, master, systemd, sysvinit
Children:
e4fd845
Parents:
43f755b
Message:

Second Commit for Native Build

File:
1 moved

Legend:

Unmodified
Added
Removed
  • BOOK/cross-tools/native/toolchain.xml

    r43f755b rd258427  
    66]>
    77
    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>
    1616  </indexterm>
    1717
    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>
    2125
    2226  <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
     33tar -jxf ../binutils-&binutils-version;.tar.bz2
     34tar -jxf ../mfpr-&mpfr-version;.tar.bz2
     35tar -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
     41cd gcc-&gcc-version;; tar -c * | \
     42  ( cd ../sysroot-toolchain ; tar xf - )
     43cd ../binutils-&binutils-version;; tar -c * | \
     44  ( cd ../sysroot-toolchain ; tar xf - )
     45cd ../sysroot-toolchain
     46mv ../mpfr-&mpfr-version; ./mpfr
     47mv ../gmp-&gmp-version; ./gmp</userinput></screen>
     48
     49    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     50    href="../common/gcc-static.xml"
    2751    xpointer="xpointer(//*[@os='p1'])"/>
    2852
    2953    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    30     href="gcc-static.xml"
     54    href="../common/gcc-static.xml"
    3155    xpointer="xpointer(//*[@os='p2'])"/>
    3256
    3357    <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"
    3583    xpointer="xpointer(//*[@os='aa'])"/>
    3684
    3785    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    38     href="gcc-static.xml"
     86    href="../common/gcc-static.xml"
    3987    xpointer="xpointer(//*[@os='ab'])"/>
    4088
    4189    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    42     href="gcc-static.xml"
     90    href="../common/gcc-static.xml"
    4391    xpointer="xpointer(//*[@os='ac'])"/>
    4492
    4593    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    46     href="gcc-static.xml"
     94    href="../common/gcc-static.xml"
    4795    xpointer="xpointer(//*[@os='ad'])"/>
    4896
    4997    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    50     href="gcc-static.xml"
     98    href="../common/gcc-static.xml"
    5199    xpointer="xpointer(//*[@os='ag'])"/>
    52100
    53101    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    54     href="gcc-static.xml"
     102    href="../common/gcc-static.xml"
    55103    xpointer="xpointer(//*[@os='ah'])"/>
    56104
    57105    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    58     href="gcc-static.xml"
     106    href="../common/gcc-static.xml"
    59107    xpointer="xpointer(//*[@os='ai'])"/>
    60108
    61109    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    62     href="gcc-static.xml"
     110    href="../common/gcc-static.xml"
    63111    xpointer="xpointer(//*[@os='aj'])"/>
    64112
     
    71119
    72120    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    73     href="gcc-static.xml"
     121    href="../common/gcc-static.xml"
    74122    xpointer="xpointer(//*[@os='f'])"/>
    75123
    76124    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    77     href="gcc-static.xml"
     125    href="../common/gcc-static.xml"
    78126    xpointer="xpointer(//*[@os='g'])"/>
    79127
    80128    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    81     href="gcc-static.xml"
     129    href="../common/gcc-static.xml"
    82130    xpointer="xpointer(//*[@os='h'])"/>
    83131
    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>
    89139
    90140    <variablelist os="bg">
     
    134184    <para os="bh">Continue with compiling the package:</para>
    135185
    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>
    138187
    139188    <para os="bj">Install the package:</para>
Note: See TracChangeset for help on using the changeset viewer.