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

jhuntwork at linuxfromscratch.org jhuntwork at linuxfromscratch.org
Sun May 8 16:08:54 PDT 2005


Author: jhuntwork
Date: 2005-05-08 17:08:53 -0600 (Sun, 08 May 2005)
New Revision: 5260

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

Modified: branches/cross-lfs/BOOK/cross-tools/chapter.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/chapter.xml	2005-05-08 22:50:47 UTC (rev 5259)
+++ branches/cross-lfs/BOOK/cross-tools/chapter.xml	2005-05-08 23:08:53 UTC (rev 5260)
@@ -20,6 +20,7 @@
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="glibc-headers.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gcc-static.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="glibc-startfiles.xml"/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="glibc-64bit-startfiles-sparc64.xml"/> <!-- sparc64 -->
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gcc-shared.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="glibc.xml"/>
 <xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="gcc-final.xml"/>

Added: 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 22:50:47 UTC (rev 5259)
+++ branches/cross-lfs/BOOK/cross-tools/glibc-64bit-startfiles-sparc64.xml	2005-05-08 23:08:53 UTC (rev 5260)
@@ -0,0 +1,97 @@
+<?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-glibc-startfiles" role="wrap" arch="sparc64">
+<title>Glibc-&glibc-version; 64-bit Startfiles</title>
+<?dbhtml filename="glibc-64bit-startfiles.html"?>
+
+<indexterm zone="ch-cross-tools-glibc-64bit-startfiles">
+<primary sortas="a-Glibc">Glibc</primary>
+<secondary>cross tools, 64bit startfiles</secondary></indexterm>
+
+<sect2 role="package"><title/>
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../final-system/glibc.xml" xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
+
+<segmentedlist>
+<segtitle>&buildtime;</segtitle>
+<segtitle>&diskspace;</segtitle>
+<seglistitem><seg>11.8 SBU</seg><seg>800 MB</seg></seglistitem>
+</segmentedlist>
+
+<xi:include xmlns:xi="http://www.w3.org/2003/XInclude" href="../final-system/glibc.xml" xpointer="xpointer(/sect1/sect2[1]/segmentedlist[2])"/>
+
+</sect2>
+
+<sect2 role="installation">
+<title>Installation of Glibc Startfiles</title>
+
+<para>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
+within the glibc-&glibc-version; directory.</para>
+
+<para>NPTL is not supported under this architecture, so we are going to
+remove the nptl directory from the Glibc source:</para>
+
+<screen><userinput>rm -rf nptl*</userinput></screen>
+
+<para>The Glibc documentation recommends building Glibc outside of the source
+directory in a dedicated build directory:</para>
+
+<screen><userinput>mkdir ../glibc-build
+cd ../glibc-build</userinput></screen>
+
+<para>Next, prepare Glibc for compilation:</para>
+
+<para>To create Linuxthread Startfiles use the following configure line:</para>
+
+<screen><userinput>CC="${LFS_TARGET}-gcc -m64 -mcpu=ultrasparc" \
+    AR="${LFS_TARGET}-ar" RANLIB="${LFS_TARGET}-ranlib" \
+    ../glibc-&glibc-version;/configure --prefix=/tools \
+    --host=${LFS_TARGET} --build=${LFS_HOST} \
+    --without-cvs --disable-profile --enable-add-ons \
+    --enable-kernel=2.6.0 --with-binutils=/cross-tools/bin \
+    --with-headers=/tools/include</userinput></screen>
+
+<para>The meaning of the configure options:</para>
+
+<variablelist>
+<varlistentry>
+<term><parameter>--enable-kernel=2.6.0</parameter></term>
+<listitem><para>This tells Glibc to compile the library with support
+for 2.6.x Linux kernels.</para></listitem>
+</varlistentry>
+
+<varlistentry>
+<term><parameter>--with-binutils=/cross-tools/bin</parameter></term>
+<listitem><para>While not required, this switch ensures that there are
+no errors pertaining to which Binutils programs get used during the
+Glibc build.</para></listitem>
+</varlistentry>
+
+<varlistentry>
+<term><parameter>--with-headers=/tools/include</parameter></term>
+<listitem><para>This tells Glibc to compile itself against the headers recently
+installed to the tools directory, so that it knows exactly what features the
+kernel has and can optimize itself accordingly.</para></listitem>
+</varlistentry>
+
+</variablelist>
+
+<para>Compile the package:</para>
+
+<screen><userinput>make csu/subdir_lib</userinput></screen>
+
+<para>Since we are only creating the glibc startfiles at this time
+we will need to manually copy files over.</para>
+
+<screen><userinput>install -d /tools/lib64
+cp -fp csu/crt[i1n].o /tools/lib64</userinput></screen>
+
+</sect2>
+
+</sect1>
+

Modified: branches/cross-lfs/BOOK/introduction/changelog.xml
===================================================================
--- branches/cross-lfs/BOOK/introduction/changelog.xml	2005-05-08 22:50:47 UTC (rev 5259)
+++ branches/cross-lfs/BOOK/introduction/changelog.xml	2005-05-08 23:08:53 UTC (rev 5260)
@@ -112,6 +112,7 @@
 <listitem><para>Added Sparc64 specific instructions to glibc-headers in cross-tools</para></listitem>
 <listitem><para>Added Sparc64 specific instructions to gcc-static in cross-tools</para></listitem>
 <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>
 </itemizedlist>
 </listitem>
 </itemizedlist>




More information about the lfs-book mailing list