r1166 - in trunk/BOOK: . cross-tools cross-tools/sparc64 cross-tools/sparc64-64 introduction/sparc64 introduction/sparc64-64 temp-system/sparc64 temp-system/sparc64-64

jim at linuxfromscratch.org jim at linuxfromscratch.org
Sat Feb 11 10:01:51 PST 2006


Author: jim
Date: 2006-02-11 11:01:49 -0700 (Sat, 11 Feb 2006)
New Revision: 1166

Added:
   trunk/BOOK/cross-tools/sparc64-64/flags.xml
   trunk/BOOK/cross-tools/sparc64/flags.xml
Modified:
   trunk/BOOK/
   trunk/BOOK/cross-tools/sparc64-64-chapter.xml
   trunk/BOOK/cross-tools/sparc64-64/gcc-static.xml
   trunk/BOOK/cross-tools/sparc64-chapter.xml
   trunk/BOOK/cross-tools/sparc64/gcc-static.xml
   trunk/BOOK/introduction/sparc64-64/changelog.xml
   trunk/BOOK/introduction/sparc64/changelog.xml
   trunk/BOOK/temp-system/sparc64-64/gcc.xml
   trunk/BOOK/temp-system/sparc64/gcc.xml
Log:
 r1239 at server:  jim | 2006-02-11 10:00:43 -0800
 Re-added GCCTARGET Flags to Sparc64



Property changes on: trunk/BOOK
___________________________________________________________________
Name: svk:merge
   - 3949c430-d905-0410-97b6-f115d20341b5:/cross-lfs:1422
3b7552df-c20a-0410-b7e1-d7eaf1be8828:/cross-lfs:1230
f6929928-7304-0410-9559-ff6106abff4d:/cross-lfs:790
   + 3949c430-d905-0410-97b6-f115d20341b5:/cross-lfs:1422
3b7552df-c20a-0410-b7e1-d7eaf1be8828:/cross-lfs:1239
f6929928-7304-0410-9559-ff6106abff4d:/cross-lfs:790

Added: trunk/BOOK/cross-tools/sparc64/flags.xml
===================================================================
--- trunk/BOOK/cross-tools/sparc64/flags.xml	                        (rev 0)
+++ trunk/BOOK/cross-tools/sparc64/flags.xml	2006-02-11 18:01:49 UTC (rev 1166)
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-cross-tools-flags">
+  <title>Build Flags</title>
+  <?dbhtml filename="flags.html"?>
+
+  <para os="a">We will need to setup target specific flags for the compiler
+  and linkers. You can choose the appropriate BUILD32 and BUILD64
+  from the table at the bottom of the page.</para>
+
+<screen os="b"><userinput>export BUILD32="[BUILD32 entries]"
+export BUILD64="[BUILD64 entries]"
+export GCCTARGET="[GCCTARGET entries]"</userinput></screen>
+
+   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+   href="../multilib/flags.xml"
+   xpointer="xpointer(//*[@os='c'])"/>
+
+<screen os="f"><userinput>echo export BUILD32=\""${BUILD32}\"" >> ~/.bashrc
+echo export BUILD64=\""${BUILD64}\"" >> ~/.bashrc
+echo export GCCTARGET=\""${GCCTARGET}\"" >> ~/.bashrc</userinput></screen>
+
+  <para os="d">The following table gives the entires for different Sparc 64 capable
+  processors. Pick the processor that matches your system.</para>
+
+  <table os="e">
+    <title>List of architectures, target triplets, and recommended book</title>
+    <tgroup cols="2" align="center">
+      <colspec colname="Processor"/>
+      <colspec colname="Build32"/>
+      <colspec colname="Build64"/>
+      <colspec colname="GCC"/>
+      <thead>
+        <row>
+          <entry>Processor</entry>
+          <entry>BUILD32</entry>
+          <entry>BUILD64</entry>
+          <entry>GCCTARGET</entry>
+        </row>
+      </thead>
+      <tbody>
+        <row>
+          <entry>Ultrasparc and Ultrasparc2</entry>
+          <entry>-m32 -mcpu=ultrasparc -mtune=ultrasparc</entry>
+          <entry>-m64 -mcpu=ultrasparc -mtune=ultrasparc</entry>
+          <entry>-mcpu=ultrasparc -mtune=ultrasparc</entry>
+        </row>
+        <row>
+          <entry>Ultrasparc3</entry>
+          <entry>-m32 -mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
+          <entry>-m64 -mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
+          <entry>-mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
+        </row>
+      </tbody>
+    </tgroup>
+  </table>
+
+</sect1>
+

Modified: trunk/BOOK/cross-tools/sparc64/gcc-static.xml
===================================================================
--- trunk/BOOK/cross-tools/sparc64/gcc-static.xml	2006-02-11 16:13:02 UTC (rev 1165)
+++ trunk/BOOK/cross-tools/sparc64/gcc-static.xml	2006-02-11 18:01:49 UTC (rev 1166)
@@ -94,9 +94,7 @@
     href="../x86/gcc-static.xml"
     xpointer="xpointer(//*[@os='an'])"/>
 
-    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="../x86/gcc-static.xml"
-    xpointer="xpointer(//*[@os='ao'])"/>
+<screen><userinput>make CFLAGS_FOR_TARGET="${GCCTARGET}" all-gcc</userinput></screen>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="../x86/gcc-static.xml"

Added: trunk/BOOK/cross-tools/sparc64-64/flags.xml
===================================================================
--- trunk/BOOK/cross-tools/sparc64-64/flags.xml	                        (rev 0)
+++ trunk/BOOK/cross-tools/sparc64-64/flags.xml	2006-02-11 18:01:49 UTC (rev 1166)
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
+  "http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [
+  <!ENTITY % general-entities SYSTEM "../../general.ent">
+  %general-entities;
+]>
+
+<sect1 id="ch-cross-tools-flags">
+  <title>Build Flags</title>
+  <?dbhtml filename="flags.html"?>
+
+   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+   href="../64/flags.xml"
+   xpointer="xpointer(//*[@os='a'])"/>
+
+<screen os="b"><userinput>export BUILD64="[BUILD64 entries]"
+export GCCTARGET="[GCCTARGET entries]"</userinput></screen>
+
+   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
+   href="../64/flags.xml"
+   xpointer="xpointer(//*[@os='c'])"/>
+
+<screen os="d"><userinput>echo export BUILD64=\""${BUILD64}\"" >> ~/.bashrc
+echo export GCCTARGET=\""${GCCTARGET}\"" >> ~/.bashrc</userinput></screen>
+
+  <para os="e">The following table gives the entires for different Sparc 64 capable
+  processors. Pick the processor that matches your system.</para>
+
+  <table os="f">
+    <title>List of architectures, target triplets, and recommended book</title>
+    <tgroup cols="2" align="center">
+      <colspec colname="Processor"/>
+      <colspec colname="Build64"/>
+      <colspec colname="GCC"/>
+      <thead>
+        <row>
+          <entry>Processor</entry>
+          <entry>BUILD64</entry>
+          <entry>GCCTARGET</entry>
+        </row>
+      </thead>
+      <tbody>
+        <row>
+          <entry>Ultrasparc and Ultrasparc2</entry>
+          <entry>-m64 -mcpu=ultrasparc -mtune=ultrasparc</entry>
+          <entry>-mcpu=ultrasparc -mtune=ultrasparc</entry>
+        </row>
+        <row>
+          <entry>Ultrasparc3</entry>
+          <entry>-m64 -mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
+          <entry>-mcpu=ultrasparc3 -mtune=ultrasparc3</entry>
+        </row>
+      </tbody>
+    </tgroup>
+  </table>
+
+</sect1>
+

Modified: trunk/BOOK/cross-tools/sparc64-64/gcc-static.xml
===================================================================
--- trunk/BOOK/cross-tools/sparc64-64/gcc-static.xml	2006-02-11 16:13:02 UTC (rev 1165)
+++ trunk/BOOK/cross-tools/sparc64-64/gcc-static.xml	2006-02-11 18:01:49 UTC (rev 1166)
@@ -89,9 +89,7 @@
     href="../x86/gcc-static.xml"
     xpointer="xpointer(//*[@os='an'])"/>
 
-    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="../x86/gcc-static.xml"
-    xpointer="xpointer(//*[@os='ao'])"/>
+<screen><userinput>make CFLAGS_FOR_TARGET="${GCCTARGET}" all-gcc</userinput></screen>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="../x86/gcc-static.xml"

Modified: trunk/BOOK/cross-tools/sparc64-64-chapter.xml
===================================================================
--- trunk/BOOK/cross-tools/sparc64-64-chapter.xml	2006-02-11 16:13:02 UTC (rev 1165)
+++ trunk/BOOK/cross-tools/sparc64-64-chapter.xml	2006-02-11 18:01:49 UTC (rev 1166)
@@ -14,7 +14,7 @@
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/cflags.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64-64/variables.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="64/flags.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64-64/flags.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64-64/linux-libc-headers.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64-64/binutils.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64-64/gcc-static.xml"/>

Modified: trunk/BOOK/cross-tools/sparc64-chapter.xml
===================================================================
--- trunk/BOOK/cross-tools/sparc64-chapter.xml	2006-02-11 16:13:02 UTC (rev 1165)
+++ trunk/BOOK/cross-tools/sparc64-chapter.xml	2006-02-11 18:01:49 UTC (rev 1166)
@@ -14,7 +14,7 @@
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/introduction.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="common/cflags.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64/variables.xml"/>
-  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="multilib/flags.xml"/>
+  <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64/flags.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64/linux-libc-headers.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64/binutils.xml"/>
   <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="sparc64/gcc-static.xml"/>

Modified: trunk/BOOK/introduction/sparc64/changelog.xml
===================================================================
--- trunk/BOOK/introduction/sparc64/changelog.xml	2006-02-11 16:13:02 UTC (rev 1165)
+++ trunk/BOOK/introduction/sparc64/changelog.xml	2006-02-11 18:01:49 UTC (rev 1166)
@@ -34,6 +34,15 @@
 -->
 
     <listitem>
+      <para>February 11, 2006</para>
+      <itemizedlist>
+        <listitem>
+          <para>[jim] - Re-added GCCTARGET to Sparc64 builds.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>February 2, 2006</para>
       <itemizedlist>
         <listitem>

Modified: trunk/BOOK/introduction/sparc64-64/changelog.xml
===================================================================
--- trunk/BOOK/introduction/sparc64-64/changelog.xml	2006-02-11 16:13:02 UTC (rev 1165)
+++ trunk/BOOK/introduction/sparc64-64/changelog.xml	2006-02-11 18:01:49 UTC (rev 1166)
@@ -34,6 +34,15 @@
 -->
 
     <listitem>
+      <para>February 11, 2006</para>
+      <itemizedlist>
+        <listitem>
+          <para>[jim] - Re-added GCCTARGET to Sparc64 builds.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>November 8, 2005</para>
       <itemizedlist>
         <listitem>

Modified: trunk/BOOK/temp-system/sparc64/gcc.xml
===================================================================
--- trunk/BOOK/temp-system/sparc64/gcc.xml	2006-02-11 16:13:02 UTC (rev 1165)
+++ trunk/BOOK/temp-system/sparc64/gcc.xml	2006-02-11 18:01:49 UTC (rev 1166)
@@ -106,9 +106,8 @@
     href="../x86/gcc.xml"
     xpointer="xpointer(//*[@os='cm'])"/>
 
-    <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="../x86/gcc.xml"
-    xpointer="xpointer(//*[@os='cn'])"/>
+<screen os="cn"><userinput>make CFLAGS_FOR_TARGET="${GCCTARGET}" CXXFLAGS_FOR_TARGET="${GCCTARGET}" \
+AS_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-as" LD_FOR_TARGET="/cross-tools/bin/${LFS_TARGET}-ld"</userinput></screen>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
     href="../x86/gcc.xml"

Modified: trunk/BOOK/temp-system/sparc64-64/gcc.xml
===================================================================
--- trunk/BOOK/temp-system/sparc64-64/gcc.xml	2006-02-11 16:13:02 UTC (rev 1165)
+++ trunk/BOOK/temp-system/sparc64-64/gcc.xml	2006-02-11 18:01:49 UTC (rev 1166)
@@ -120,7 +120,7 @@
     xpointer="xpointer(//*[@os='cm'])"/>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"
-    href="../x86/gcc.xml"
+    href="../sparc64/gcc.xml"
     xpointer="xpointer(//*[@os='cn'])"/>
 
     <xi:include xmlns:xi="http://www.w3.org/2003/XInclude"




More information about the cross-lfs mailing list