Author: jim
Date: 2005-04-22 02:00:52 -0600 (Fri, 22 Apr 2005)
New Revision: 5032

Modified:
   branches/cross-lfs/BOOK/cross-tools/glibc-headers.xml
   branches/cross-lfs/BOOK/cross-tools/linux-libc-headers-alpha.xml
   branches/cross-lfs/BOOK/cross-tools/linux-libc-headers-ppc.xml
   branches/cross-lfs/BOOK/cross-tools/linux-libc-headers-raq2.xml
   branches/cross-lfs/BOOK/cross-tools/linux-libc-headers.xml
   branches/cross-lfs/BOOK/cross-tools/variables.xml
   branches/cross-lfs/BOOK/general.ent
   branches/cross-lfs/BOOK/introduction/changelog.xml
Log:
Fixes typos and omitted information

Modified: branches/cross-lfs/BOOK/cross-tools/glibc-headers.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/glibc-headers.xml       2005-04-22 
06:46:50 UTC (rev 5031)
+++ branches/cross-lfs/BOOK/cross-tools/glibc-headers.xml       2005-04-22 
08:00:52 UTC (rev 5032)
@@ -30,24 +30,68 @@
 <para arch="raq2">Building for a Linuxthreads based glibc you will need to
 Unpack the glibc-linuxthreads-&glibc-version;tarball -- they will unfold
 into the same directory.</para>
+<para arch="raq2">Unpack the glibc-linuxthreads-&glibc-version; 
<emphasis>and</emphasis> the
+glibc-libidn-&glibc-version; tarball -- they will unfold into the same 
directory.</para>
 
+<para arch="alpha;ppc;x86;">Unpack the glibc-libidn-&glibc-version; tarball -- 
it
+will unfold into the same directory.</para>
+
+<para arch="raq2">NPTL is not supported under this architecture, so we are 
going to
+remove the nptl directory from the Glibc source:</para>
+
+<screen arch="raq2"><userinput>rm -rf nptl*</userinput></screen>
+
+<para arch="raq2">The following patch corrects the building of 
syscall.h:</para>
+
+<screen arch="raq2"><userinput>patch -Np1 -i 
../glibc-&glibc-version;-mips_syscall-1.patch</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>
+
+<screen arch="alpha;ppc;x86;"><userinput>CC="gcc" 
../glibc-&glibc-version;/configure --prefix=/tools \
+    --host=${LFS_TARGET} --build=${LFS_HOST} --enable-add-ons \
+    --disable-sanity-checks --with-headers=/tools/include \
+    --with-binutils=/cross-tools/${LFS_TARGET}/bin</userinput></screen>
+
+<screen arch="raq2"><userinput>CC="gcc" ../glibc-&glibc-version;/configure 
--prefix=/tools \
+    --host=${LFS_TARGET} --build=${LFS_HOST} --enable-add-ons \
+    --disable-sanity-checks --with-headers=/tools/include \
+    --with-binutils=/cross-tools/${LFS_TARGET}/bin</userinput></screen>
+
+<para>Now  Install the package:</para>
+
+<screen><userinput>make install-headers</userinput></screen>
+
 <para>Next, we will copy the header files we need:</para>
 
+<para>First we will copy common files over to /tools/include:</para>
+
+<screen><userinput>install -d /tools/include/bits
+cp bits/stdio_lim.h /tools/include/bits</userinput></screen>
+
+<para>Now we will create a blank stub file:</para>
+
+<screen><userinput>touch /tools/include/gnu/stubs.h</userinput></screen>
+
 <para arch="alpha;ppc;x86">For NPTL we use the following commands:</para>
 
-<screen arch="alpha;ppc;x86"><userinput>cp nptl/sysdeps/pthread/pthread.h 
/tools/include/</userinput></screen>
+<screen arch="alpha;ppc;x86"><userinput>cp 
../glibc-&glibc-version;/nptl/sysdeps/pthread/pthread.h 
/tools/include/</userinput></screen>
 
 <para arch="alpha;ppc;x86">Now we copy the architecture specific headers 
over:</para>
-<screen arch="alpha;ppc;x86"><userinput>install -d 
/tools/include/bits</userinput></screen>
-<screen arch="x86"><userinput>cp 
nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h 
/tools/include/bits/</userinput></screen>
-<screen arch="ppc"><userinput>cp 
nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h 
/tools/include/bits/</userinput></screen>
-<screen arch="alpha"><userinput>cp 
nptl/sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h 
/tools/include/bits/</userinput></screen>
+<screen arch="x86"><userinput>cp 
../glibc-&glibc-version;/nptl/sysdeps/unix/sysv/linux/i386/bits/pthreadtypes.h 
/tools/include/bits/</userinput></screen>
+<screen arch="ppc"><userinput>cp 
../glibc-&glibc-version;/nptl/sysdeps/unix/sysv/linux/powerpc/bits/pthreadtypes.h
 /tools/include/bits/</userinput></screen>
+<screen arch="alpha"><userinput>cp 
../glibc-&glibc-version;/nptl/sysdeps/unix/sysv/linux/alpha/bits/pthreadtypes.h 
/tools/include/bits/</userinput></screen>
 
 <para arch="raq2">For Linuxthreads we use the following commands:</para>
 
-<screen arch="raq2"><userinput>cp linuxthreads/sysdeps/pthread/pthread.h 
/tools/include/
-cp linuxthreads/sysdeps/pthread/bits/pthreadtypes.h /tools/include/bits/
-cp linuxthreads/sysdeps/pthread/bits/initspin.h 
/tools/include/bits/</userinput></screen>
+<screen arch="raq2"><userinput>cp 
../glibc-&glibc-version;/linuxthreads/sysdeps/pthread/pthread.h /tools/include/
+cp ../glibc-&glibc-version;/linuxthreads/sysdeps/pthread/bits/pthreadtypes.h 
/tools/include/bits/
+cp ../glibc-&glibc-version;/linuxthreads/sysdeps/pthread/bits/initspin.h 
/tools/include/bits/</userinput></screen>
 
 </sect2>
 

Modified: branches/cross-lfs/BOOK/cross-tools/linux-libc-headers-alpha.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/linux-libc-headers-alpha.xml    
2005-04-22 06:46:50 UTC (rev 5031)
+++ branches/cross-lfs/BOOK/cross-tools/linux-libc-headers-alpha.xml    
2005-04-22 08:00:52 UTC (rev 5032)
@@ -25,11 +25,8 @@
 <para>Install the header files:</para>
 
 <screen><userinput>install -d /tools/include
-install -d /cross-tools/${LFS_TARGET}/include
 cp -R include/asm-alpha /tools/include/asm
-cp -R include/linux /tools/include
-ln -s /tools/include/asm /cross-tools/${LFS_TARGET}/include
-ln -s /tools/include/linux 
/cross-tools/${LFS_TARGET}/include</userinput></screen>
+cp -R include/linux /tools/include</userinput></screen>
 
 </sect2>
 

Modified: branches/cross-lfs/BOOK/cross-tools/linux-libc-headers-ppc.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/linux-libc-headers-ppc.xml      
2005-04-22 06:46:50 UTC (rev 5031)
+++ branches/cross-lfs/BOOK/cross-tools/linux-libc-headers-ppc.xml      
2005-04-22 08:00:52 UTC (rev 5032)
@@ -25,11 +25,8 @@
 <para>Install the header files:</para>
 
 <screen><userinput>install -d /tools/include
-install -d /cross-tools/${LFS_TARGET}/include
 cp -R include/asm-ppc /tools/include/asm
-cp -R include/linux /tools/include
-ln -s /tools/include/asm /cross-tools/${LFS_TARGET}/include
-ln -s /tools/include/linux 
/cross-tools/${LFS_TARGET}/include</userinput></screen>
+cp -R include/linux /tools/include</userinput></screen>
 
 </sect2>
 

Modified: branches/cross-lfs/BOOK/cross-tools/linux-libc-headers-raq2.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/linux-libc-headers-raq2.xml     
2005-04-22 06:46:50 UTC (rev 5031)
+++ branches/cross-lfs/BOOK/cross-tools/linux-libc-headers-raq2.xml     
2005-04-22 08:00:52 UTC (rev 5032)
@@ -25,11 +25,8 @@
 <para>Install the header files:</para>
 
 <screen><userinput>install -d /tools/include
-install -d /cross-tools/${LFS_TARGET}/include
 cp -R include/asm-mips /tools/include/asm
-cp -R include/linux /tools/include
-ln -s /tools/include/asm /cross-tools/${LFS_TARGET}/include
-ln -s /tools/include/linux 
/cross-tools/${LFS_TARGET}/include</userinput></screen>
+cp -R include/linux /tools/include</userinput></screen>
 
 </sect2>
 

Modified: branches/cross-lfs/BOOK/cross-tools/linux-libc-headers.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/linux-libc-headers.xml  2005-04-22 
06:46:50 UTC (rev 5031)
+++ branches/cross-lfs/BOOK/cross-tools/linux-libc-headers.xml  2005-04-22 
08:00:52 UTC (rev 5032)
@@ -34,11 +34,8 @@
 <para>Install the header files:</para>
 
 <screen><userinput>install -d /tools/include
-install -d /cross-tools/${LFS_TARGET}/include
 cp -R include/asm-i386 /tools/include/asm
-cp -R include/linux /tools/include
-ln -sf /tools/include/asm /cross-tools/${LFS_TARGET}/include
-ln -sf /tools/include/linux 
/cross-tools/${LFS_TARGET}/include</userinput></screen>
+cp -R include/linux /tools/include</userinput></screen>
 
 </sect2>
 

Modified: branches/cross-lfs/BOOK/cross-tools/variables.xml
===================================================================
--- branches/cross-lfs/BOOK/cross-tools/variables.xml   2005-04-22 06:46:50 UTC 
(rev 5031)
+++ branches/cross-lfs/BOOK/cross-tools/variables.xml   2005-04-22 08:00:52 UTC 
(rev 5032)
@@ -52,6 +52,12 @@
 <screen><userinput>echo "We are building for ${LFS_TARGET}"
 echo "Our host is ${LFS_HOST}"</userinput></screen>
 
+<para>Now we will make add these to .bash_profile, just in
+case you have to exit and restart building later:</para>
+
+<screen><userinput>echo "export LFS_HOST=${LFS_HOST}" >> ~/.bashrc
+echo "export LFS_TARGET=${LFS_TARGET}" >> ~/.bashrc</userinput></screen>
+
 <para>List of architectures and target triplets</para>
 
 <table><title>Target Triplets</title>

Modified: branches/cross-lfs/BOOK/general.ent
===================================================================
--- branches/cross-lfs/BOOK/general.ent 2005-04-22 06:46:50 UTC (rev 5031)
+++ branches/cross-lfs/BOOK/general.ent 2005-04-22 08:00:52 UTC (rev 5032)
@@ -1,10 +1,10 @@
 <?xml version="1.0" encoding="ISO-8859-1"?>
-<!ENTITY version "7.0-cross-lfs-20050421">
+<!ENTITY version "7.0-cross-lfs-20050422">
 <!ENTITY version-x86 "&version;-x86">
 <!ENTITY version-alpha "&version;-alpha">
 <!ENTITY version-ppc "&version;-PowerPC">
 <!ENTITY version-raq2 "&version;-RaQ2">
-<!ENTITY releasedate "April 21, 2005">
+<!ENTITY releasedate "April 22, 2005">
 <!ENTITY milestone "7.0">
 
 <!ENTITY lfs-root "http://www.linuxfromscratch.org/";>

Modified: branches/cross-lfs/BOOK/introduction/changelog.xml
===================================================================
--- branches/cross-lfs/BOOK/introduction/changelog.xml  2005-04-22 06:46:50 UTC 
(rev 5031)
+++ branches/cross-lfs/BOOK/introduction/changelog.xml  2005-04-22 08:00:52 UTC 
(rev 5032)
@@ -84,6 +84,13 @@
 <itemizedlist>
 </itemizedlist><listitem><para>Changelog Entries:</para>
 
+<listitem><para>April 22, 2005 [jim]</para>
+<itemizedlist>
+<listitem><para>Added missing headers creation in cross-lfs 
glibc-headers.</para></listitem>
+<listitem><para>Added export of ${LFS_HOST} and ${LFS_TARGET} to 
~/bashrc.</para></listitem>
+</itemizedlist>
+</listitem>
+
 <listitem><para>April 21, 2005 [jim]</para>
 <itemizedlist>
 <listitem><para>Added chroot/reboot specific changes.</para></listitem>

-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-book
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page

Reply via email to