Ignore:
Timestamp:
Jun 5, 2009, 1:51:17 PM (15 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:
e0592ba
Parents:
0c509a2
Message:

Save Variables to .bashrc in Native Builds

File:
1 edited

Legend:

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

    r0c509a2 rf5262133  
    1313  <bridgehead renderas="sect4">Setting Host and Target</bridgehead>
    1414
    15   <para os="a">During the building of the cross-compile tools you will need to
    16   set a few variables that will be dependent on your particular needs.
    17   The first variable will be the triplet of the host machine, which will be
    18   put into the <envar>CLFS_HOST</envar> variable. To account for the
    19   possibility that the host and target are the same arch, as cross-compiling
    20   won't work when host and target are the same, part of the triplet needs to
    21   be changed slightly to add "cross". Set <envar>CLFS_HOST</envar> using the
    22   following command:</para>
     15    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     16    href="../x86/variables.xml"
     17    xpointer="xpointer(//*[@os='a'])"/>
    2318
    24 <screen os="b"><userinput>export CLFS_HOST="$(echo $MACHTYPE | \
    25     sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"</userinput></screen>
     19    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     20    href="../x86/variables.xml"
     21    xpointer="xpointer(//*[@os='b'])"/>
    2622
    27   <para os="c">Now you will need to set the triplet for the target
    28   architecture. Set the target variable using the following command:</para>
     23    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     24    href="../x86/variables.xml"
     25    xpointer="xpointer(//*[@os='c'])"/>
    2926
    3027<screen os="d"><userinput>export CLFS_TARGET="$MACHTYPE"</userinput></screen>
    3128
     29    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     30    href="../x86/variables.xml"
     31    xpointer="xpointer(//*[@os='e'])"/>
     32
     33    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     34    href="../x86/variables.xml"
     35    xpointer="xpointer(//*[@os='f'])"/>
    3236</sect1>
Note: See TracChangeset for help on using the changeset viewer.