[Clfs-commits] commit: r4544 - in /branches/clfs-embedded/BOOK/cross-tools: arm/variables.xml common/gcc-final.xml common/gcc-static.xml mips/variables.xml x86/linux-headers.xml x86/variables.xml

svn at cross-lfs.org svn at cross-lfs.org
Sun Jan 25 01:37:55 PST 2009


Author: jim
Date: Sun Jan 25 09:37:55 2009
New Revision: 4544

Log:
Toolchain Updates

Modified:
    branches/clfs-embedded/BOOK/cross-tools/arm/variables.xml
    branches/clfs-embedded/BOOK/cross-tools/common/gcc-final.xml
    branches/clfs-embedded/BOOK/cross-tools/common/gcc-static.xml
    branches/clfs-embedded/BOOK/cross-tools/mips/variables.xml
    branches/clfs-embedded/BOOK/cross-tools/x86/linux-headers.xml
    branches/clfs-embedded/BOOK/cross-tools/x86/variables.xml

Modified: branches/clfs-embedded/BOOK/cross-tools/arm/variables.xml
==============================================================================
--- branches/clfs-embedded/BOOK/cross-tools/arm/variables.xml (original)
+++ branches/clfs-embedded/BOOK/cross-tools/arm/variables.xml Sun Jan 25 09:37:55 2009
@@ -24,11 +24,23 @@
   href="../x86/variables.xml"
   xpointer="xpointer(//*[@os='c'])"/>
 
+<screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/arm.*/arm/g'</userinput></screen>
+
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
   href="../x86/variables.xml"
-  xpointer="xpointer(//*[@os='d'])"/>
+  xpointer="xpointer(//*[@os='e1'])"/>
 
-  <table os="e">
+<screen os="e2"><userinput>export CLFS_ENDIAN=$(echo ${CLFS_TARGET} | sed -e 's/armeb/BIG/' -e 's/arm/LITTLE/'</userinput></screen>
+
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+  href="../x86/variables.xml"
+  xpointer="xpointer(//*[@os='e'])"/>
+
+<screen os="f"><userinput>echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc
+echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc
+echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" >> ~/.bashrc</userinput></screen>
+
+  <table os="g">
     <title>Processor Type and  Target Triplets</title>
     <?dbfo table-width="5in" ?>
 

Modified: branches/clfs-embedded/BOOK/cross-tools/common/gcc-final.xml
==============================================================================
--- branches/clfs-embedded/BOOK/cross-tools/common/gcc-final.xml (original)
+++ branches/clfs-embedded/BOOK/cross-tools/common/gcc-final.xml Sun Jan 25 09:37:55 2009
@@ -22,6 +22,7 @@
   <sect2 role="installation">
     <title>Installation of GCC Cross Compiler</title>
 
+<!--
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="gcc-static.xml"
     xpointer="xpointer(//*[@os='p1'])"/>
@@ -29,7 +30,7 @@
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="gcc-static.xml"
     xpointer="xpointer(//*[@os='p2'])"/>
-
+-->
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="gcc-static.xml"
     xpointer="xpointer(//*[@os='p3'])"/>

Modified: branches/clfs-embedded/BOOK/cross-tools/common/gcc-static.xml
==============================================================================
--- branches/clfs-embedded/BOOK/cross-tools/common/gcc-static.xml (original)
+++ branches/clfs-embedded/BOOK/cross-tools/common/gcc-static.xml Sun Jan 25 09:37:55 2009
@@ -27,11 +27,12 @@
     <title>Installation of Cross GCC Compiler with Static libgcc
     and no Threads</title>
 
+<!--
     <para os="p1">The following patch contains a number of updates to the
     &gcc-version; branch by the GCC developers:</para>
 
 <screen os="p2"><userinput>patch -Np1 -i ../&gcc-branch_update-patch;</userinput></screen>
-
+-->
     <para os="p3">To make sure that a couple of tools use the proper syntax,
     apply the following patch:</para>
 

Modified: branches/clfs-embedded/BOOK/cross-tools/mips/variables.xml
==============================================================================
--- branches/clfs-embedded/BOOK/cross-tools/mips/variables.xml (original)
+++ branches/clfs-embedded/BOOK/cross-tools/mips/variables.xml Sun Jan 25 09:37:55 2009
@@ -20,6 +20,16 @@
   href="../x86/variables.xml"
   xpointer="xpointer(//*[@os='b'])"/>
 
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+  href="../x86/variables.xml"
+  xpointer="xpointer(//*[@os='c'])"/>
+
+<screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/mips.*/mips/' -e 's/mipsel.*/mips/'</userinput></screen>
+
+  <para os="e1">Now we will setup out default endian needed we need to build:</para>
+
+<screen os="e2"><userinput>export CLFS_ENDIAN=$(echo ${CLFS_TARGET} | sed -e 's/mipsel/LITTLE/' -e 's/mips/BIG/'</userinput></screen>
+
   <para os="m1">Now you will need to set the MIPS LEVEL. This determines how your
 uClibc is built. There are currently 5 MIPS ISA Levels. To keep things simple
 we are only using 2. For more information, go to
@@ -29,12 +39,14 @@
 
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
   href="../x86/variables.xml"
-  xpointer="xpointer(//*[@os='c'])"/>
+  xpointer="xpointer(//*[@os='e'])"/>
 
-<screen os="d"><userinput>echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc
+<screen os="f"><userinput>echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc
+echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc
+echo export CLFS_ENDIAN=\""${CLFS_ENDIAN}\"" >> ~/.bashrc
 echo export CLFS_MIPS_LEVEL=\""${CLFS_MIPS_LEVEL}\"" >> ~/.bashrc</userinput></screen>
 
-  <table os="e">
+  <table os="g">
     <title>Processor Type and  Target Triplets</title>
     <?dbfo table-width="5.5in" ?>
 

Modified: branches/clfs-embedded/BOOK/cross-tools/x86/linux-headers.xml
==============================================================================
--- branches/clfs-embedded/BOOK/cross-tools/x86/linux-headers.xml (original)
+++ branches/clfs-embedded/BOOK/cross-tools/x86/linux-headers.xml Sun Jan 25 09:37:55 2009
@@ -36,8 +36,8 @@
 
 <screen os="c"><userinput>install -dv ${CLFS}/usr/include
 make mrproper
-make ARCH=$(echo ${CLFS_TARGET} | sed 's/i.86/i386/' | cut -f1 -d-) headers_check
-make ARCH=$(echo ${CLFS_TARGET} | sed 's/i.86/i386/' | cut -f1 -d-) INSTALL_HDR_PATH=dest headers_install
+make ARCH=${CLFS_ARCH} headers_check
+make ARCH=${CLFS_ARCH} INSTALL_HDR_PATH=dest headers_install
 cp -rv dest/include/* ${CLFS}/usr/include</userinput></screen>
 
   </sect2>

Modified: branches/clfs-embedded/BOOK/cross-tools/x86/variables.xml
==============================================================================
--- branches/clfs-embedded/BOOK/cross-tools/x86/variables.xml (original)
+++ branches/clfs-embedded/BOOK/cross-tools/x86/variables.xml Sun Jan 25 09:37:55 2009
@@ -22,12 +22,17 @@
 
 <screen os="b"><userinput>export CLFS_TARGET="{target triplet}"</userinput></screen>
 
-  <para os="c">Now we will add this to <filename>~/.bashrc</filename>, just in
+  <para os="c">Now we will setup out default architecture needed we need to build:</para>
+
+<screen os="d"><userinput>export CLFS_ARCH=$(echo ${CLFS_TARGET} | sed -e 's/-.*//' -e 's/i.86/i386/'</userinput></screen>
+
+  <para os="e">Now we will add this to <filename>~/.bashrc</filename>, just in
   case you have to exit and restart building later:</para>
 
-<screen os="d"><userinput>echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc</userinput></screen>
+<screen os="f"><userinput>echo export CLFS_TARGET=\""${CLFS_TARGET}\"" >> ~/.bashrc
+echo export CLFS_ARCH=\""${CLFS_ARCH}\"" >> ~/.bashrc</userinput></screen>
 
-  <table os="e">
+  <table os="g">
     <title>Processor Type and  Target Triplets</title>
     <?dbfo table-width="4.5in" ?>
 




More information about the Clfs-commits mailing list