Changeset 05806e8 for cross-tools


Ignore:
Timestamp:
Feb 21, 2006, 1:43:21 AM (19 years ago)
Author:
Jim Gifford <clfs@…>
Children:
496be96
Parents:
fe884f4
Message:

r899@server (orig r897): jim | 2005-12-14 21:23:24 -0800

r1069@server: jim | 2005-12-14 21:21:50 -0800
Changing how we set LFS_HOST, LFS_TARGET, and LFS_TARGET32


Location:
cross-tools
Files:
10 added
2 deleted
15 edited

Legend:

Unmodified
Added
Removed
  • cross-tools/alpha-chapter.xml

    rfe884f4 r05806e8  
    1414  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
    1515  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/cflags.xml"/>
    16   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/variables.xml"/>
     16  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="alpha/variables.xml"/>
    1717  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="alpha/linux-libc-headers.xml"/>
    1818  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/>
  • cross-tools/mips-chapter.xml

    rfe884f4 r05806e8  
    1414  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
    1515  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/cflags.xml"/>
    16   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/variables.xml"/>
     16  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips/variables.xml"/>
    1717  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips/linux-libc-headers.xml"/>
    1818  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/>
  • cross-tools/mips64-64-chapter.xml

    rfe884f4 r05806e8  
    1414  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
    1515  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/cflags.xml"/>
    16   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/variables.xml"/>
     16  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips64-64/variables.xml"/>
    1717  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips64-64/flags.xml"/>
    1818  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips64-64/linux-libc-headers.xml"/>
  • cross-tools/mips64-chapter.xml

    rfe884f4 r05806e8  
    1414  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
    1515  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/cflags.xml"/>
    16   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/variables-multilib.xml"/>
     16  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips64/variables.xml"/>
    1717  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips64/flags.xml"/>
    1818  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="mips64/linux-libc-headers.xml"/>
  • cross-tools/mips64/flags.xml

    rfe884f4 r05806e8  
    2323     xpointer="xpointer(//*[@os='c'])"/>
    2424
    25 <screen os="d"><userinput>export LFS_TARGET32="`echo ${LFS_TARGET}| sed -e 's/64//g'`"</userinput></screen>
    26 
    27      <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    28      href="../x86_64/flags.xml"
    29      xpointer="xpointer(//*[@os='e'])"/>
    30 
    31      <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    32      href="../x86_64/flags.xml"
    33      xpointer="xpointer(//*[@os='f'])"/>
    34 
    35      <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    36      href="../x86_64/flags.xml"
    37      xpointer="xpointer(//*[@os='g'])"/>
    38 
    39      <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    40      href="../x86_64/flags.xml"
    41      xpointer="xpointer(//*[@os='h'])"/>
    42 
    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
     25<screen os="d"><userinput>echo export BUILD32=\""${BUILD32}\"" &gt;&gt; ~/.bashrc
    4826echo export BUILDN32=\""${BUILDN32}\"" &gt;&gt; ~/.bashrc
    49 echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc
    50 echo export LFS_TARGET32=\""${LFS_TARGET32}\"" &gt;&gt; ~/.bashrc
    51 echo export LFS_HOST=\""${LFS_HOST}\"" &gt;&gt; ~/.bashrc</userinput></screen>
     27echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    5228
    5329</sect1>
  • cross-tools/ppc-chapter.xml

    rfe884f4 r05806e8  
    1414  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
    1515  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/cflags.xml"/>
    16   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/variables.xml"/>
     16  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ppc/variables.xml"/>
    1717  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="ppc/linux-libc-headers.xml"/>
    1818  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/>
  • cross-tools/sparc-chapter.xml

    rfe884f4 r05806e8  
    1414  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
    1515  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/cflags.xml"/>
    16   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/variables.xml"/>
     16  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc/variables.xml"/>
    1717  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc/linux-libc-headers.xml"/>
    1818  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc/binutils.xml"/>
  • cross-tools/sparc64-64-chapter.xml

    rfe884f4 r05806e8  
    1414  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
    1515  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/cflags.xml"/>
    16   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/variables.xml"/>
     16  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64-64/variables.xml"/>
    1717  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64-64/flags.xml"/>
    1818  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64-64/linux-libc-headers.xml"/>
  • cross-tools/sparc64-chapter.xml

    rfe884f4 r05806e8  
    1414  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
    1515  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/cflags.xml"/>
    16   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/variables-multilib.xml"/>
     16  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64/variables.xml"/>
    1717  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64/flags.xml"/>
    1818  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64/linux-libc-headers.xml"/>
  • cross-tools/sparc64/flags.xml

    rfe884f4 r05806e8  
    2222   xpointer="xpointer(//*[@os='c'])"/>
    2323
    24 <screen os="d"><userinput>export LFS_TARGET32="sparcv9-unknown-linux-gnu"</userinput></screen>
     24<screen os="f"><userinput>echo export BUILD32=\""${BUILD32}\"" &gt;&gt; ~/.bashrc
     25echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc
     26echo export GCCTARGET=\""${GCCTARGET}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    2527
    26    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    27    href="../x86_64/flags.xml"
    28    xpointer="xpointer(//*[@os='e'])"/>
    29 
    30    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    31    href="../x86_64/flags.xml"
    32    xpointer="xpointer(//*[@os='f'])"/>
    33 
    34    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    35    href="../x86_64/flags.xml"
    36    xpointer="xpointer(//*[@os='g'])"/>
    37 
    38    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    39    href="../x86_64/flags.xml"
    40    xpointer="xpointer(//*[@os='h'])"/>
    41 
    42    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
    43    href="../x86_64/flags.xml"
    44    xpointer="xpointer(//*[@os='i'])"/>
    45 
    46 <screen os="j"><userinput>echo export BUILD32=\""${BUILD32}\"" &gt;&gt; ~/.bashrc
    47 echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc
    48 echo export GCCTARGET=\""${GCCTARGET}\"" &gt;&gt; ~/.bashrc
    49 echo export LFS_TARGET32=\""${LFS_TARGET32}\"" &gt;&gt; ~/.bashrc
    50 echo export LFS_HOST=\""${LFS_HOST}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    51 
    52   <para os="k">The following table gives the entires for different Sparc 64 capable
     28  <para os="d">The following table gives the entires for different Sparc 64 capable
    5329  processors. Pick the processor that matches your system.</para>
    5430
    55   <table os="l">
     31  <table os="e">
    5632    <title>List of architectures, target triplets, and recommended book</title>
    5733    <tgroup cols="2" align="center">
  • cross-tools/sparcv8-chapter.xml

    rfe884f4 r05806e8  
    1414  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
    1515  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/cflags.xml"/>
    16   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/variables.xml"/>
     16  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparcv8/variables.xml"/>
    1717  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc/linux-libc-headers.xml"/>
    1818  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparcv8/binutils.xml"/>
  • cross-tools/x86-chapter.xml

    rfe884f4 r05806e8  
    1414  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
    1515  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/cflags.xml"/>
    16   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/variables.xml"/>
     16  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/variables.xml"/>
    1717  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86/linux-libc-headers.xml"/>
    1818  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/binutils.xml"/>
  • cross-tools/x86_64-64-chapter.xml

    rfe884f4 r05806e8  
    1515  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/cflags.xml"/>
    1616  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86_64-64/flags.xml"/>
    17   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/variables.xml"/>
     17  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86_64-64/variables.xml"/>
    1818  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86_64-64/linux-libc-headers.xml"/>
    1919  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="64/binutils.xml"/>
  • cross-tools/x86_64-chapter.xml

    rfe884f4 r05806e8  
    1414  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
    1515  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/cflags.xml"/>
    16   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/variables-multilib.xml"/>
     16  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86_64/variables.xml"/>
    1717  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86_64/flags.xml"/>
    1818  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="x86_64/linux-libc-headers.xml"/>
  • cross-tools/x86_64/flags.xml

    rfe884f4 r05806e8  
    1717export BUILD64="-m64"</userinput></screen>
    1818
    19   <para os="c">You will need to set your host target triplet for 32 bits:</para>
    20 
    21 <screen os="d"><userinput>export LFS_TARGET32="i686-pc-linux-gnu"</userinput></screen>
    22 
    23   <para os="e">Let's perform a sanity check to prevent build issues. If our LFS_HOST matches our
    24   target, we will get some failures during our cross-compile:</para>
    25 
    26 <screen os="f"><userinput>if [ "${LFS_HOST}" = "${LFS_TARGET32}" ]; then \
    27   echo "Host and Target can't be the same." ; fi</userinput></screen>
    28 
    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
    30   a different target triplet:</para>
    31 
    32 <screen os="h"><userinput>export LFS_HOST="`echo ${MACHTYPE} | sed -e 's/unknown/cross/g' -e 's/-pc-/-cross-/g'`"</userinput></screen>
    33 
    34   <para os="i">Lets add the build flags to <filename>~/.bashrc</filename> to
     19  <para os="c">Lets add the build flags to <filename>~/.bashrc</filename> to
    3520  prevent issues if we stop and come back later.</para>
    3621
    37 <screen os="j"><userinput>echo export BUILD32=\""${BUILD32}\"" &gt;&gt; ~/.bashrc
    38 echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc
    39 echo export LFS_TARGET32=\""${LFS_TARGET32}\"" &gt;&gt; ~/.bashrc
    40 echo export LFS_HOST=\""${LFS_HOST}\"" &gt;&gt; ~/.bashrc</userinput></screen>
     22<screen os="d"><userinput>echo export BUILD32=\""${BUILD32}\"" &gt;&gt; ~/.bashrc
     23echo export BUILD64=\""${BUILD64}\"" &gt;&gt; ~/.bashrc</userinput></screen>
    4124
    4225</sect1>
Note: See TracChangeset for help on using the changeset viewer.