Changeset f32f537 for cross-tools


Ignore:
Timestamp:
Feb 21, 2006, 1:26:16 AM (18 years ago)
Author:
Jim Gifford <clfs@…>
Children:
4a9cdca
Parents:
360c931
Message:

r788@server (orig r786): jim | 2005-12-01 12:07:35 -0800

r851@server: jim | 2005-12-01 12:07:08 -0800
Text updates from G. Moko. Thank You


Location:
cross-tools
Files:
14 edited

Legend:

Unmodified
Added
Removed
  • cross-tools/common/binutils.xml

    r360c931 rf32f537  
    5959        <term><parameter>--host=${LFS_HOST}</parameter></term>
    6060        <listitem>
    61           <para>When used injunction with --target, this creates a cross-architecture
     61          <para>When used with --target, this creates a cross-architecture
    6262          executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).</para>
    6363        </listitem>
     
    6767        <term><parameter>--target=${LFS_TARGET}</parameter></term>
    6868        <listitem>
    69           <para>When used injunction with --host, this creates a cross-architecture
     69          <para>When used with --host, this creates a cross-architecture
    7070          executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).</para>
    7171        </listitem>
  • cross-tools/common/glibc.xml

    r360c931 rf32f537  
    8989        <term><parameter>AR="${LFS_TARGET}-ar"</parameter></term>
    9090        <listitem>
    91           <para>This forces GLIBC to use the AR utilitythat we made for our target
     91          <para>This forces GLIBC to use the AR utility we made for our target
    9292          architecture.</para>
    9393        </listitem>
  • cross-tools/common/variables-multilib.xml

    r360c931 rf32f537  
    1414  architecture tools</bridgehead>
    1515
    16   <para>This method is recommended for all LiveCD based distro's.</para>
     16     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     17     href="../common/variables.xml"
     18     xpointer="xpointer(//*[@os='a'])"/>
    1719
    18   <para>During the building of the cross-compile tools you will need to
    19   set a few variables that will be dependent on your particular needs.
    20   The first variable will be the triplet of the <envar>HOST</envar> machine.
    21   You will need to set the <envar>CHOST</envar> triplet to match your
    22   particular needs. To set this information you can issue the following
    23   command:</para>
     20     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     21     href="../common/variables.xml"
     22     xpointer="xpointer(//*[@os='b'])"/>
    2423
    25 <screen><userinput>export LFS_HOST="${MACHTYPE}"</userinput></screen>
     24     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     25     href="../common/variables.xml"
     26     xpointer="xpointer(//*[@os='c'])"/>
    2627
    27   <para>Now you will need to set the target triplet for the target
    28   architecure. You can do this by running the same command as above, just
    29   running it on the target machine. If you can't run the command on the
    30   target machine, you can use the table at the bottom of this page. Set
    31   the command using the method listed below:</para>
     28     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     29     href="../common/variables.xml"
     30     xpointer="xpointer(//*[@os='d'])"/>
    3231
    33 <screen><userinput>export LFS_TARGET="{target triplet}"</userinput></screen>
     32     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     33     href="../common/variables.xml"
     34     xpointer="xpointer(//*[@os='e'])"/>
    3435
    3536  <bridgehead renderas="sect4">Configuration # 2 - Creating same
    3637  architecture tools</bridgehead>
    3738
    38   <para>You can also create <quote>clean</quote> tools on your current
    39   distro. This will ensure that you have all the prerequisites for the
    40   LFS build.</para>
     39     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     40     href="../common/variables.xml"
     41     xpointer="xpointer(//*[@os='f'])"/>
     42       
     43     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     44     href="../common/variables.xml"
     45     xpointer="xpointer(//*[@os='g'])"/>
    4146
    42   <para>You will need to set your host target triplet a little differently.
    43   To set this information you can issue the following commands:</para>
     47     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     48     href="../common/variables.xml"
     49     xpointer="xpointer(//*[@os='h'])"/>
    4450
    45 <screen><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen>
     51     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     52     href="../common/variables.xml"
     53     xpointer="xpointer(//*[@os='i'])"/>
    4654
    47   <para>Now you will need to set the target triplet for the target, which
    48   in this case is very simple. Set the command using the method listed
    49   below:</para>
    50 
    51 <screen><userinput>export LFS_TARGET="${MACHTYPE}"</userinput></screen>
     55     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     56     href="../common/variables.xml"
     57     xpointer="xpointer(//*[@os='j'])"/>
    5258
    5359  <bridgehead renderas="sect4">Sanity Check</bridgehead>
    5460
    55   <para>Let's perform a sanity check to prevent build issues. If our LFS_HOST matches our
    56   target, we will get some failures during our cross-compile:</para>
     61     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     62     href="../common/variables.xml"
     63     xpointer="xpointer(//*[@os='k'])"/>
    5764
    58 <screen><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET}" ]; then \
    59   echo "Host and Target can't be the same. Use the Other Configuration Method" ; fi</userinput></screen>
    60  
    61   <para>If you received an message, "Host and Target can't be the same."
    62   You will need to use the other Configuration Method. This will prevent build
    63   issues during the early phases of the build.</para>
     65     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     66     href="../common/variables.xml"
     67     xpointer="xpointer(//*[@os='l'])"/>
     68
     69     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     70     href="../common/variables.xml"
     71     xpointer="xpointer(//*[@os='m'])"/>
    6472
    6573  <bridgehead renderas="sect4">Copy settings to Environment</bridgehead>
    6674
    67   <para>Now we will add these to <filename>~/.bashrc</filename>, just in
    68   case you have to exit and restart building later:</para>
     75  <para os="n">Now we will add ${LFS_TARGET} to <filename>~/.bashrc</filename>, just in
     76  case you have to exit and restart building later: We will add ${LFS_HOST} after
     77  it performs another sanity check in the next section</para>
    6978
    70 <screen><userinput>echo export LFS_TARGET=\""${LFS_TARGET}\"" &gt;&gt; ~/.bashrc</userinput></screen>
     79<screen os="o"><userinput>echo export LFS_TARGET=\""${LFS_TARGET}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    7180
    72 
    73   <table>
    74     <title>List of architectures, target triplets, and recommended book</title>
    75     <tgroup cols="2" align="center">
    76       <colspec colname="Processor"/>
    77       <colspec colname="Triplet"/>
    78       <colspec colname="Book"/>
    79       <thead>
    80         <row>
    81           <entry>Architecture</entry>
    82           <entry>Target Triplet</entry>
    83           <entry>32 Bit, 64 Bit, 32/64 Bit</entry>
    84         </row>
    85       </thead>
    86       <tbody>
    87         <row>
    88           <entry>Pentium, K6, 586 Compatibles</entry>
    89           <entry>i586-pc-linux-gnu</entry>
    90           <entry>32 Bit</entry>
    91         </row>
    92         <row>
    93           <entry>Pentium II, Pentium III, Pentium 4</entry>
    94           <entry>i686-pc-linux-gnu</entry>
    95           <entry>32 Bit</entry>
    96         </row>
    97         <row>
    98           <entry>Athlon, Duron</entry>
    99           <entry>i686-pc-linux-gnu</entry>
    100           <entry>32 Bit</entry>
    101         </row>
    102         <row>
    103           <entry>Athlon64</entry>
    104           <entry>x86_64-pc-linux-gnu</entry>
    105           <entry>32/64 Bit</entry>
    106         </row>
    107         <row>
    108           <entry>PowerPC</entry>
    109           <entry>powerpc-unknown-linux-gnu</entry>
    110           <entry>32 Bit</entry>
    111         </row>
    112         <row>
    113           <entry>PowerPC64</entry>
    114           <entry>ppc64-unknown-linux-gnu</entry>
    115           <entry>64 Bit</entry>
    116         </row>
    117         <row>
    118           <entry>MIPS</entry>
    119           <entry>mips-unknown-linux-gnu</entry>
    120           <entry>32 Bit</entry>
    121         </row>
    122         <row>
    123           <entry>MIPS Little Endian</entry>
    124           <entry>mipsel-unknown-linux-gnu</entry>
    125           <entry>32 Bit</entry>
    126         </row>
    127         <row>
    128           <entry>MIPS 64</entry>
    129           <entry>mips64-unknown-linux-gnu</entry>
    130           <entry>64 Bit</entry>
    131         </row>
    132         <row>
    133           <entry>MIPS 64 Little Endian</entry>
    134           <entry>mips64el-unknown-linux-gnu</entry>
    135           <entry>64 Bit</entry>
    136         </row>
    137         <row>
    138           <entry>Cypress</entry>
    139           <entry>sparc-unknown-linux-gnu</entry>
    140           <entry>32 Bit</entry>
    141         </row>
    142         <row>
    143           <entry>Supersparc and Hypersparc</entry>
    144           <entry>sparc-unknown-linux-gnu</entry>
    145           <entry>32 Bit</entry>
    146         </row>
    147         <row>
    148           <entry>Ultrasparc</entry>
    149           <entry>sparc64-unknown-linux-gnu</entry>
    150           <entry>32/64 Bit</entry>
    151         </row>
    152         <row>
    153           <entry>Alpha</entry>
    154           <entry>alpha-unknown-linux-gnu</entry>
    155           <entry>64 Bit</entry>
    156         </row>
    157       </tbody>
    158     </tgroup>
    159   </table>
     81     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     82     href="../common/variables.xml"
     83     xpointer="xpointer(//*[@os='p'])"/>
    16084
    16185</sect1>
     86
  • cross-tools/common/variables.xml

    r360c931 rf32f537  
    1414  architecture tools</bridgehead>
    1515
    16   <para>This method is recommended for all LiveCD based distro's.</para>
     16  <para os="a">This method is recommended for all LiveCD based distro's.</para>
    1717
    18   <para>During the building of the cross-compile tools you will need to
     18  <para os="b">During the building of the cross-compile tools you will need to
    1919  set a few variables that will be dependent on your particular needs.
    2020  The first variable will be the triplet of the <envar>HOST</envar> machine.
     
    2323  command:</para>
    2424
    25 <screen><userinput>export LFS_HOST="${MACHTYPE}"</userinput></screen>
     25<screen os="c"><userinput>export LFS_HOST="${MACHTYPE}"</userinput></screen>
    2626
    27   <para>Now you will need to set the target triplet for the target
    28   architecure. You can do this by running the same command as above, just
     27  <para os="d">Now you will need to set the target triplet for the target
     28  architecture. You can do this by running the same command as above, just
    2929  running it on the target machine. If you can't run the command on the
    3030  target machine, you can use the table at the bottom of this page. Set
    3131  the command using the method listed below:</para>
    3232
    33 <screen><userinput>export LFS_TARGET="{target triplet}"</userinput></screen>
     33<screen os="e"><userinput>export LFS_TARGET="{target triplet}"</userinput></screen>
    3434
    3535  <bridgehead renderas="sect4">Configuration # 2 - Creating same
    3636  architecture tools</bridgehead>
    3737
    38   <para>You can also create <quote>clean</quote> tools on your current
     38  <para os="f">You can also create <quote>clean</quote> tools on your current
    3939  distro. This will ensure that you have all the prerequisites for the
    4040  LFS build.</para>
    4141
    42   <para>You will need to set your host target triplet a little differently.
     42  <para os="g">You will need to set your host target triplet a little differently.
    4343  To set this information you can issue the following commands:</para>
    4444
    45 <screen><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen>
     45<screen os="h"><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen>
    4646
    47   <para>Now you will need to set the target triplet for the target, which
     47  <para os="i">Now you will need to set the target triplet for the target, which
    4848  in this case is very simple. Set the command using the method listed
    4949  below:</para>
    5050
    51 <screen><userinput>export LFS_TARGET="${MACHTYPE}"</userinput></screen>
     51<screen os="j"><userinput>export LFS_TARGET="${MACHTYPE}"</userinput></screen>
    5252
    5353  <bridgehead renderas="sect4">Sanity Check</bridgehead>
    5454
    55   <para>Let's perform a sanity check to prevent build issues. If our LFS_HOST matches our
     55  <para os="k">Let's perform a sanity check to prevent build issues. If our LFS_HOST matches our
    5656  target, we will get some failures during our cross-compile:</para>
    5757
    58 <screen><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET}" ]; then \
     58<screen os="l"><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET}" ]; then \
    5959  echo "Host and Target can't be the same." ; fi</userinput></screen>
    6060 
    61   <para>If you received an message, "Host and Target can't be the same."
     61  <para os="m">If you received an message, "Host and Target can't be the same."
    6262  You will need to use the other Configuration Method. This will prevent build
    6363  issues during the early phases of the build.</para>
     
    6565  <bridgehead renderas="sect4">Copy settings to Environment</bridgehead>
    6666
    67   <para>Now we will add these to <filename>~/.bashrc</filename>, just in
     67  <para os="n">Now we will add these to <filename>~/.bashrc</filename>, just in
    6868  case you have to exit and restart building later:</para>
    6969
    70 <screen><userinput>echo export LFS_HOST=\""${LFS_HOST}\"" &gt;&gt; ~/.bashrc
     70<screen os="o"><userinput>echo export LFS_HOST=\""${LFS_HOST}\"" &gt;&gt; ~/.bashrc
    7171echo export LFS_TARGET=\""${LFS_TARGET}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    7272
    73   <table>
     73  <table os="p">
    7474    <title>List of architectures, target triplets, and recommended book</title>
    7575    <tgroup cols="2" align="center">
  • cross-tools/mips64-64/flags.xml

    r360c931 rf32f537  
    1111  <title>Build Flags</title>
    1212
    13   <para>We will need to setup target specific flags for the compiler
    14   and linkers.</para>
     13   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     14   href="../x86_64-64/flags.xml"
     15   xpointer="xpointer(//*[@os='a'])"/>
    1516
    16 <screen><userinput>export BUILD64="-mabi=64"</userinput></screen>
     17<screen os="b"><userinput>export BUILD64="-mabi=64"</userinput></screen>
    1718
    18   <para>Lets add the build flags to <filename>~/.bashrc</filename> to
    19   prevent issues if we stop and come back later.</para>
     19   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     20   href="../x86_64-64/flags.xml"
     21   xpointer="xpointer(//*[@os='c'])"/>
    2022
    21 <screen><userinput>echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc</userinput></screen>
     23   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     24   href="../x86_64-64/flags.xml"
     25   xpointer="xpointer(//*[@os='d'])"/>
    2226
    2327</sect1>
  • cross-tools/mips64/flags.xml

    r360c931 rf32f537  
    1111  <title>Build Flags</title>
    1212
    13   <para>We will need to setup target specific flags for the compiler
    14   and linkers.</para>
     13     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     14     href="../x86_64/flags.xml"
     15     xpointer="xpointer(//*[@os='a'])"/>
    1516
    16 <screen><userinput>export BUILD32="-mabi=32"
     17<screen os="b"><userinput>export BUILD32="-mabi=32"
    1718export BUILDN32="-mabi=n32"
    1819export BUILD64="-mabi=64"</userinput></screen>
    1920
    20   <para>You will need to set your host target triplet for o32 bit:</para>
     21     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     22     href="../x86_64/flags.xml"
     23     xpointer="xpointer(//*[@os='c'])"/>
    2124
    22 <screen><userinput>export LFS_TARGET32="`echo ${LFS_TARGET}| sed -e 's/64//g'`"</userinput></screen>
     25<screen os="d"><userinput>export LFS_TARGET32="`echo ${LFS_TARGET}| sed -e 's/64//g'`"</userinput></screen>
    2326
    24 <screen><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET32}" ]; then \
    25   echo "Host and Target can't be the same." ; fi</userinput></screen>
     27     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     28     href="../x86_64/flags.xml"
     29     xpointer="xpointer(//*[@os='e'])"/>
    2630
    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>
     31     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     32     href="../x86_64/flags.xml"
     33     xpointer="xpointer(//*[@os='f'])"/>
    2934
    30 <screen><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen>
     35     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     36     href="../x86_64/flags.xml"
     37     xpointer="xpointer(//*[@os='g'])"/>
    3138
    32   <para>Lets add the build flags to <filename>~/.bashrc</filename> to
    33   prevent issues if we stop and come back later.</para>
     39     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     40     href="../x86_64/flags.xml"
     41     xpointer="xpointer(//*[@os='h'])"/>
    3442
    35 <screen><userinput>echo export BUILD32=\""${BUILD32}\"" &gt;&gt; ~/.bashrc
     43     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     44     href="../x86_64/flags.xml"
     45     xpointer="xpointer(//*[@os='i'])"/>
     46
     47<screen os="j"><userinput>echo export BUILD32=\""${BUILD32}\"" &gt;&gt; ~/.bashrc
    3648echo export BUILDN32=\""${BUILDN32}\"" &gt;&gt; ~/.bashrc
    3749echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc
  • cross-tools/multilib/glibc-64bit.xml

    r360c931 rf32f537  
    8383        <term><parameter>--libdir=/tools/lib64</parameter></term>
    8484        <listitem>
    85           <para>Puts GLIBC into a /tools/lib64 instead of /tools/lib.</para>
     85          <para>Puts GLIBC into /tools/lib64 instead of /tools/lib.</para>
    8686        </listitem>
    8787      </varlistentry>
  • cross-tools/sparc64-64/flags.xml

    r360c931 rf32f537  
    1010  <?dbhtml filename="flags.html"?>
    1111
    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>
     12   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     13   href="../x86_64-64/flags.xml"
     14   xpointer="xpointer(//*[@os='a'])"/>
    1515
    16 <screen><userinput>export BUILD64="[BUILD64 entries]"
     16<screen os="b"><userinput>export BUILD64="[BUILD64 entries]"
    1717export GCCTARGET="[GCCTARGET entries]"</userinput></screen>
    1818
    19   <para>Lets add the build flags to <filename>~/.bashrc</filename> to
    20   prevent issues if we stop and come back later.</para>
     19   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     20   href="../x86_64-64/flags.xml"
     21   xpointer="xpointer(//*[@os='c'])"/>
    2122
    22 <screen><userinput>echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc
     23<screen os="d"><userinput>echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc
    2324echo export GCCTARGET=\""${GCCTARGET}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    2425
    25   <para>The following table gives the entires for different Sparc 64 capable
     26  <para os="e">The following table gives the entires for different Sparc 64 capable
    2627  processors. Pick the processor that matches your system.</para>
    2728
    28   <table>
     29  <table os="f">
    2930    <title>List of architectures, target triplets, and recommended book</title>
    3031    <tgroup cols="2" align="center">
  • cross-tools/sparc64/flags.xml

    r360c931 rf32f537  
    1010  <?dbhtml filename="flags.html"?>
    1111
    12   <para>We will need to setup target specific flags for the compiler
     12  <para os="a">We will need to setup target specific flags for the compiler
    1313  and linkers. You can choose the appropriate BUILD32 and BUILD64
    1414  from the table at the bottom of the page.</para>
    1515
    16 <screen><userinput>export BUILD32="[BUILD32 entries]"
     16<screen os="b"><userinput>export BUILD32="[BUILD32 entries]"
    1717export BUILD64="[BUILD64 entries]"
    1818export GCCTARGET="[GCCTARGET entries]"</userinput></screen>
    1919
    20   <para>You will need to set your host target triplet for 32 bit:</para>
     20   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     21   href="../x86_64/flags.xml"
     22   xpointer="xpointer(//*[@os='c'])"/>
    2123
    22 <screen><userinput>export LFS_TARGET32="sparcv9-unknown-linux-gnu"</userinput></screen>
     24<screen os="d"><userinput>export LFS_TARGET32="sparcv9-unknown-linux-gnu"</userinput></screen>
    2325
    24   <para>Let's perform a sanity check to prevent build issues. If our LFS_HOST matches our
    25   target, we will get some failures during our cross-compile:</para>
     26   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     27   href="../x86_64/flags.xml"
     28   xpointer="xpointer(//*[@os='e'])"/>
    2629
    27 <screen><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET32}" ]; then \
    28   echo "Host and Target can't be the same." ; fi</userinput></screen>
     30   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     31   href="../x86_64/flags.xml"
     32   xpointer="xpointer(//*[@os='f'])"/>
    2933
    30   <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
    31   a different target triplet:</para>
     34   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     35   href="../x86_64/flags.xml"
     36   xpointer="xpointer(//*[@os='g'])"/>
    3237
    33 <screen><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen>
     38   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     39   href="../x86_64/flags.xml"
     40   xpointer="xpointer(//*[@os='h'])"/>
    3441
    35   <para>Lets add the build flags to <filename>~/.bashrc</filename> to
    36   prevent issues if we stop and come back later.</para>
     42   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     43   href="../x86_64/flags.xml"
     44   xpointer="xpointer(//*[@os='i'])"/>
    3745
    38 <screen><userinput>echo export BUILD32=\""${BUILD32}\"" &gt;&gt; ~/.bashrc
     46<screen os="j"><userinput>echo export BUILD32=\""${BUILD32}\"" &gt;&gt; ~/.bashrc
    3947echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc
    4048echo export GCCTARGET=\""${GCCTARGET}\"" &gt;&gt; ~/.bashrc
     
    4250echo export LFS_HOST=\""${LFS_HOST}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    4351
    44   <para>The following table gives the entires for different Sparc 64 capable
     52  <para os="k">The following table gives the entires for different Sparc 64 capable
    4553  processors. Pick the processor that matches your system.</para>
    4654
    47   <table>
     55  <table os="l">
    4856    <title>List of architectures, target triplets, and recommended book</title>
    4957    <tgroup cols="2" align="center">
  • cross-tools/x86/gcc-final.xml

    r360c931 rf32f537  
    9797        <term><parameter>--enable-languages=c,c++</parameter></term>
    9898        <listitem>
    99           <para>This option ensures that only the C and C++ compilers is built.</para>
     99          <para>This option ensures that only the C and C++ compilers are built.</para>
    100100        </listitem>
    101101      </varlistentry>
  • cross-tools/x86/gcc-static.xml

    r360c931 rf32f537  
    3737    search the <filename class="directory">/usr</filename> directory for
    3838    <filename class="libraryfile">libgcc_s.so</filename> when
    39     cross-compling:</para>
     39    cross-compiling:</para>
    4040
    4141<screen os="af"><userinput>patch -Np1 -i ../&gcc-cross_search-patch;</userinput></screen>
  • cross-tools/x86/glibc-headers.xml

    r360c931 rf32f537  
    7676        <term><parameter>--host=${LFS_HOST}</parameter></term>
    7777        <listitem>
    78           <para>When used injunction with --target, this creates a cross-architecture
     78          <para>When used with --target, this creates a cross-architecture
    7979          executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).</para>
    8080        </listitem>
     
    8484        <term><parameter>--target=${LFS_TARGET}</parameter></term>
    8585        <listitem>
    86           <para>When used injunction with --host, this creates a cross-architecture
     86          <para>When used with --host, this creates a cross-architecture
    8787          executable that creates files for ${LFS_TARGET} but runs on ${LFS_HOST).</para>
    8888        </listitem>
  • cross-tools/x86_64-64/flags.xml

    r360c931 rf32f537  
    1111  <title>Build Flags</title>
    1212
    13   <para>We will need to setup target specific flags for the compiler
     13  <para os="a">We will need to setup target specific flags for the compiler
    1414  and linkers.</para>
    1515
    16 <screen><userinput>export BUILD64="-m64"</userinput></screen>
     16<screen os="b"><userinput>export BUILD64="-m64"</userinput></screen>
    1717
    18   <para>Lets add the build flags to <filename>~/.bashrc</filename> to
     18  <para os="c">Lets add the build flags to <filename>~/.bashrc</filename> to
    1919  prevent issues if we stop and come back later.</para>
    2020
    21 <screen><userinput>echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc</userinput></screen>
     21<screen os="d"><userinput>echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    2222
    2323</sect1>
  • cross-tools/x86_64/flags.xml

    r360c931 rf32f537  
    1111  <title>Build Flags</title>
    1212
    13   <para>We will need to setup target specific flags for the compiler
     13  <para os="a">We will need to setup target specific flags for the compiler
    1414  and linkers.</para>
    1515
    16 <screen><userinput>export BUILD32="-m32"
     16<screen os="b"><userinput>export BUILD32="-m32"
    1717export BUILD64="-m64"</userinput></screen>
    1818
    19   <para>You will need to set your host target triplet for 32 bit:</para>
     19  <para os="c">You will need to set your host target triplet for 32 bits:</para>
    2020
    21 <screen><userinput>export LFS_TARGET32="i686-pc-linux-gnu"</userinput></screen>
     21<screen os="d"><userinput>export LFS_TARGET32="i686-pc-linux-gnu"</userinput></screen>
    2222
    23   <para>Let's perform a sanity check to prevent build issues. If our LFS_HOST matches our
     23  <para os="e">Let's perform a sanity check to prevent build issues. If our LFS_HOST matches our
    2424  target, we will get some failures during our cross-compile:</para>
    2525
    26 <screen><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET32}" ]; then \
     26<screen os="f"><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET32}" ]; then \
    2727  echo "Host and Target can't be the same." ; fi</userinput></screen>
    2828
    29   <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
     29  <para os="g">If the above test gave you "Host and Target can't be the same", you will need to change your LFS_HOST to a
    3030  a different target triplet:</para>
    3131
    32   <para>If the above test gave you an error, you will need to change your LFS_HOST to a
    33   a different target triplet:</para>
     32<screen os="h"><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen>
    3433
    35 <screen><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen>
    36 
    37   <para>Lets add the build flags to <filename>~/.bashrc</filename> to
     34  <para os="i">Lets add the build flags to <filename>~/.bashrc</filename> to
    3835  prevent issues if we stop and come back later.</para>
    3936
    40 <screen><userinput>echo export BUILD32=\""${BUILD32}\"" &gt;&gt; ~/.bashrc
     37<screen os="j"><userinput>echo export BUILD32=\""${BUILD32}\"" &gt;&gt; ~/.bashrc
    4138echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc
    4239echo export LFS_TARGET32=\""${LFS_TARGET32}\"" &gt;&gt; ~/.bashrc
Note: See TracChangeset for help on using the changeset viewer.