r5262 - in branches/cross-lfs/BOOK: cross-tools introduction

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Sun May 8 16:39:52 PDT 2005


Author: jhuntwork
Date: 2005-05-08 17:39:52 -0600 (Sun, 08 May 2005)
New Revision: 5262

Modified:
   branches/cross-lfs/BOOK/cross-tools/glibc-64bit-startfiles-sparc64.xml
   branches/cross-lfs/BOOK/cross-tools/glibc-startfiles.xml
   branches/cross-lfs/BOOK/cross-tools/glibc.xml
   branches/cross-lfs/BOOK/introduction/changelog.xml
Log:
Added Sparc64 specific instructions to glibc in cross-tools(32-bit)

Modified: branches/cross-lfs/BOOK/cross-tools/glibc-64bit-startfiles-sparc64.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/glibc-64bit-startfiles-sparc64.xml	2005-05-08 23:20:59 UTC (rev 5261)
+++ branches/cross-lfs/BOOK/cross-tools/glibc-64bit-startfiles-sparc64.xml	2005-05-08 23:39:52 UTC (rev 5262)
@@ -48,7 +48,7 @@
 
 <para>To create Linuxthread Startfiles use the following configure line:</para>
 
-<screen><userinput>CC="${LFS_TARGET}-gcc -m64 -mcpu=ultrasparc" \
+<screen><userinput>CC="${LFS_TARGET}-gcc -m64 -mcpu=ultrasparc -mtune=ultrasparc" \
     AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
     ../glibc-&glibc-version;/configure --prefix=/tools \
     --host=${LFS_TARGET} --build=${LFS_HOST} \

Modified: branches/cross-lfs/BOOK/cross-tools/glibc-startfiles.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/glibc-startfiles.xml	2005-05-08 23:20:59 UTC (rev 5261)
+++ branches/cross-lfs/BOOK/cross-tools/glibc-startfiles.xml	2005-05-08 23:39:52 UTC (rev 5262)
@@ -75,7 +75,7 @@
     --enable-kernel=2.6.0 --with-binutils=/cross-tools/bin \
     --with-headers=/tools/include</userinput></screen>
 
-<screen arch="sparc64;"><userinput>CC="${LFS_TARGET}-gcc -m32 -mcpu=ultrasparc" \
+<screen arch="sparc64;"><userinput>CC="${LFS_TARGET}-gcc -m32 -mcpu=ultrasparc -mtune=ultrasparc" \
     AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
     ../glibc-&glibc-version;/configure --prefix=/tools \
     --host="sparcv9-unknown-linux-gnu" --build=${LFS_HOST} \

Modified: branches/cross-lfs/BOOK/cross-tools/glibc.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/glibc.xml	2005-05-08 23:20:59 UTC (rev 5261)
+++ branches/cross-lfs/BOOK/cross-tools/glibc.xml	2005-05-08 23:39:52 UTC (rev 5262)
@@ -38,7 +38,7 @@
 the method suggested in this book puts the stability of the system at
 risk.</para>
 
-<para arch="raq2;sparc;">This architecture does not currently support NPTL,
+<para arch="raq2;sparc;sparc64;">This architecture does not currently support NPTL,
 so we will have to include Glibc Linuxthreads as a threading library.
 Building for a Linuxthreads based glibc you will need to
 unpack the glibc-linuxthreads-&glibc-version; tarball from
@@ -48,10 +48,10 @@
 
 <screen arch="raq2"><userinput>patch -Np1 -i ../glibc-&glibc-version;-mips_syscall-1.patch</userinput></screen>
 
-<para arch="raq2;sparc;">NPTL is not supported under this architecture, so we are going to
+<para arch="raq2;sparc;sparc64;">NPTL is not supported under this architecture, so we are going to
 remove the nptl directory from the Glibc source:</para>
 
-<screen arch="raq2;sparc;"><userinput>rm -rf nptl*</userinput></screen>
+<screen arch="raq2;sparc;sparc64;"><userinput>rm -rf nptl*</userinput></screen>
 
 <para>The Glibc documentation recommends building Glibc outside of the source
 directory in a dedicated build directory:</para>
@@ -83,6 +83,16 @@
     --enable-kernel=2.6.0 --with-binutils=/cross-tools/bin \
     --with-headers=/tools/include</userinput></screen>
 
+<screen arch="sparc64;"><userinput>CC="${LFS_TARGET}-gcc -m32 -mcpu=ultrasparc -mtune=ultrasparc" \
+    AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
+    ../glibc-&glibc-version;/configure --prefix=/tools \
+    --host="sparcv9-unknown-linux-gnu" --build=${LFS_HOST} \
+    --without-cvs --disable-profile --enable-add-ons \
+    --enable-kernel=2.6.0 --with-binutils=/cross-tools/bin \
+    --with-headers=/tools/include --without-gd \
+    --mandir=/tools/share/man --infodir=/tools/share/info \
+    --libexecdir=/tools/lib/glibc</userinput></screen>
+
 <para>The meaning of the configure options:</para>
 
 <variablelist>

Modified: branches/cross-lfs/BOOK/introduction/changelog.xml
===================================================================
--- branches/cross-lfs/BOOK/introduction/changelog.xml	2005-05-08 23:20:59 UTC (rev 5261)
+++ branches/cross-lfs/BOOK/introduction/changelog.xml	2005-05-08 23:39:52 UTC (rev 5262)
@@ -114,6 +114,7 @@
 <listitem><para>Added Sparc64 specific instructions to glibc-startfiles in cross-tools (32-bit)</para></listitem>
 <listitem><para>Added Sparc64 specific instructions to glibc-startfiles in cross-tools (64-bit)</para></listitem>
 <listitem><para>Added Sparc64 specific instructions to gcc-shared in cross-tools</para></listitem>
+<listitem><para>Added Sparc64 specific instructions to glibc in cross-tools(32-bit)</para></listitem>
 </itemizedlist>
 </listitem>
 </itemizedlist>




More information about the lfs-book mailing list