[Clfs-commits] commit: r5001 - in /trunk/BOOK/cross-tools: native/variables.xml native64/variables.xml x86/variables.xml

svn at cross-lfs.org svn at cross-lfs.org
Fri Jun 5 13:51:18 PDT 2009


Author: jim
Date: Fri Jun  5 20:51:17 2009
New Revision: 5001

Log:
Save Variables to .bashrc in Native Builds

Modified:
    trunk/BOOK/cross-tools/native/variables.xml
    trunk/BOOK/cross-tools/native64/variables.xml
    trunk/BOOK/cross-tools/x86/variables.xml

Modified: trunk/BOOK/cross-tools/native/variables.xml
==============================================================================
--- trunk/BOOK/cross-tools/native/variables.xml (original)
+++ trunk/BOOK/cross-tools/native/variables.xml Fri Jun  5 20:51:17 2009
@@ -12,21 +12,25 @@
 
   <bridgehead renderas="sect4">Setting Host and Target</bridgehead>
 
-  <para os="a">During the building of the cross-compile tools you will need to
-  set a few variables that will be dependent on your particular needs.
-  The first variable will be the triplet of the host machine, which will be
-  put into the <envar>CLFS_HOST</envar> variable. To account for the
-  possibility that the host and target are the same arch, as cross-compiling
-  won't work when host and target are the same, part of the triplet needs to
-  be changed slightly to add "cross". Set <envar>CLFS_HOST</envar> using the
-  following command:</para>
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/variables.xml"
+    xpointer="xpointer(//*[@os='a'])"/>
 
-<screen os="b"><userinput>export CLFS_HOST="$(echo $MACHTYPE | \
-    sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"</userinput></screen>
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/variables.xml"
+    xpointer="xpointer(//*[@os='b'])"/>
 
-  <para os="c">Now you will need to set the triplet for the target
-  architecture. Set the target variable using the following command:</para>
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/variables.xml"
+    xpointer="xpointer(//*[@os='c'])"/>
 
 <screen os="d"><userinput>export CLFS_TARGET="$MACHTYPE"</userinput></screen>
 
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/variables.xml"
+    xpointer="xpointer(//*[@os='e'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/variables.xml"
+    xpointer="xpointer(//*[@os='f'])"/>
 </sect1>

Modified: trunk/BOOK/cross-tools/native64/variables.xml
==============================================================================
--- trunk/BOOK/cross-tools/native64/variables.xml (original)
+++ trunk/BOOK/cross-tools/native64/variables.xml Fri Jun  5 20:51:17 2009
@@ -45,4 +45,12 @@
   <para os="l">For All Others consult the CLFS Book for that architicure. In Chapter 5 for
    the information.</para>
 
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86/variables.xml"
+    xpointer="xpointer(//*[@os='e'])"/>
+
+    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+    href="../x86_64/variables.xml"
+    xpointer="xpointer(//*[@os='f'])"/>
+
 </sect1>

Modified: trunk/BOOK/cross-tools/x86/variables.xml
==============================================================================
--- trunk/BOOK/cross-tools/x86/variables.xml (original)
+++ trunk/BOOK/cross-tools/x86/variables.xml Fri Jun  5 20:51:17 2009
@@ -21,8 +21,8 @@
   be changed slightly to add "cross". Set <envar>CLFS_HOST</envar> using the
   following command:</para>
 
-<screen os="b"><userinput>export CLFS_HOST="$(echo $MACHTYPE | \
-    sed "s/$(echo $MACHTYPE | cut -d- -f2)/cross/")"</userinput></screen>
+<screen os="b"><userinput>export CLFS_HOST="$(echo ${MACHTYPE} | \
+    sed "s/$(echo ${MACHTYPE{ | cut -d- -f2)/cross/")"</userinput></screen>
 
   <para os="c">Now you will need to set the triplet for the target
   architecture. Set the target variable using the following command:</para>




More information about the Clfs-commits mailing list