r972 - branches/2.4-branch/BOOK/chapter01 branches/2.4-branch/BOOK/chapter05 branches/2.4-branch/BOOK/prologue trunk/BOOK/chapter01 trunk/BOOK/chapter05 trunk/BOOK/prologue

robert at linuxfromscratch.org robert at linuxfromscratch.org
Wed Feb 7 16:34:52 PST 2007


Author: robert
Date: 2007-02-07 17:34:52 -0700 (Wed, 07 Feb 2007)
New Revision: 972

Modified:
   branches/2.4-branch/BOOK/chapter01/changelog.xml
   branches/2.4-branch/BOOK/chapter05/adjusting.xml
   branches/2.4-branch/BOOK/chapter05/binutils-pass2.xml
   branches/2.4-branch/BOOK/chapter05/gcc-pass2.xml
   branches/2.4-branch/BOOK/chapter05/stripping.xml
   branches/2.4-branch/BOOK/prologue/bookinfo.xml
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter05/adjusting.xml
   trunk/BOOK/chapter05/stripping.xml
   trunk/BOOK/prologue/bookinfo.xml
Log:
Added a config.site in /tools for uClibc builds

Modified: branches/2.4-branch/BOOK/chapter01/changelog.xml
===================================================================
--- branches/2.4-branch/BOOK/chapter01/changelog.xml	2007-02-07 19:40:26 UTC (rev 971)
+++ branches/2.4-branch/BOOK/chapter01/changelog.xml	2007-02-08 00:34:52 UTC (rev 972)
@@ -110,6 +110,8 @@
 </listitem>
 -->
 
+<listitem><para>February 7th, 2007 [Robert]: Added a config.site in /tools for uClibc builds.</para></listitem>
+
 <listitem><para>February 7th, 2007 [Robert]: Fix Expect to compile with uClibc (HAVE_STROPTS_H).</para></listitem>
 
 <listitem><para>February 7th, 2007 [Robert]: Bump to Bash-3.2.</para></listitem>

Modified: branches/2.4-branch/BOOK/chapter05/adjusting.xml
===================================================================
--- branches/2.4-branch/BOOK/chapter05/adjusting.xml	2007-02-07 19:40:26 UTC (rev 971)
+++ branches/2.4-branch/BOOK/chapter05/adjusting.xml	2007-02-08 00:34:52 UTC (rev 972)
@@ -10,6 +10,34 @@
 
   <title>Adjusting the Toolchain</title>
 
+  <para condition="uclibc">Packages which use GNU Autoconf scripts will
+  assume your system type is something like <quote>i686-pc-linux-gnu</quote>
+  when it should be named <quote>i686-pc-linux-uclibc</quote>. With most
+  packages it is not vital to correct this, but with the toolchain it
+  is important. We can make a <filename>config.site</filename> file to set
+  the <parameter>--host/build/target=i686-pc-linux-uclibc</parameter>
+  parameters, and set the <envar>CONFIG_SITE</envar> environment variable
+  to match, which will tell packages our uClibc system type. Most packages
+  will use it without issue, some will not. The Expect package, for instance,
+  will complain that the uClibc system type is unknown, however with the
+  Expect package this is harmless. Other packages, in the next chapter or
+  BLFS, may need their <filename>config.sub</filename> replaced with a
+  newer version which is installed to
+  <filename class="directory">/usr/share/automake</filename> by the Automake
+  package. The next command creates the <filename>config.site</filename> file
+  and sets it in the shell environment. If you log out of the shell for
+  any reason during this chapter then be sure to reset it:</para>
+
+<screen condition="uclibc"><userinput>install -vd /tools/share
+cat > /tools/share/config.site << "EOF"
+host=$(uname -m)-pc-linux-uclibc
+build=$host
+target=$host
+ac_cv_host=$host
+ac_cv_build=$build
+ac_cv_target=$target
+EOF</userinput></screen>
+
   <para>Now that the temporary C libraries have been installed, all
   tools compiled in the rest of this chapter should be linked against
   these libraries. In order to accomplish this, the linker and the

Modified: branches/2.4-branch/BOOK/chapter05/binutils-pass2.xml
===================================================================
--- branches/2.4-branch/BOOK/chapter05/binutils-pass2.xml	2007-02-07 19:40:26 UTC (rev 971)
+++ branches/2.4-branch/BOOK/chapter05/binutils-pass2.xml	2007-02-08 00:34:52 UTC (rev 972)
@@ -57,13 +57,9 @@
 
     <para>Prepare Binutils for compilation:</para>
 
-<screen condition="glibc"><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
+<screen><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
     --enable-shared --with-lib-path=/tools/lib</userinput></screen>
 
-<screen condition="uclibc"><userinput>../binutils-&binutils-version;/configure --prefix=/tools \
-    --enable-shared --with-lib-path=/tools/lib --target=$(uname -m)-pc-linux-uclibc \
-    --build=$(uname -m)-pc-linux-uclibc --host=$(uname -m)-pc-linux-uclibc</userinput></screen>
-
     <variablelist>
       <title>The meaning of the new configure options:</title>
 

Modified: branches/2.4-branch/BOOK/chapter05/gcc-pass2.xml
===================================================================
--- branches/2.4-branch/BOOK/chapter05/gcc-pass2.xml	2007-02-07 19:40:26 UTC (rev 971)
+++ branches/2.4-branch/BOOK/chapter05/gcc-pass2.xml	2007-02-08 00:34:52 UTC (rev 972)
@@ -102,8 +102,7 @@
     --with-local-prefix=/tools --enable-clocale \
     --enable-shared --enable-threads=posix \
     --enable-__cxa_atexit --enable-languages=c,c++ \
-    --disable-libstdcxx-pch --target=$(uname -m)-pc-linux-uclibc \
-    --build=$(uname -m)-pc-linux-uclibc --host=$(uname -m)-pc-linux-uclibc</userinput></screen>
+    --disable-libstdcxx-pch</userinput></screen>
 
     <variablelist>
       <title>The meaning of the new configure options:</title>

Modified: branches/2.4-branch/BOOK/chapter05/stripping.xml
===================================================================
--- branches/2.4-branch/BOOK/chapter05/stripping.xml	2007-02-07 19:40:26 UTC (rev 971)
+++ branches/2.4-branch/BOOK/chapter05/stripping.xml	2007-02-08 00:34:52 UTC (rev 972)
@@ -15,7 +15,7 @@
     The executables and libraries built so far contain about 70 MB of unneeded
     debugging symbols. Remove those symbols with:</para>
 
-<screen><userinput>strip --strip-debug /tools/lib/*
+<screen><userinput>find /tools/lib -type f -exec strip --strip-debug '{}' ';'
 strip --strip-unneeded /tools/{,s}bin/*</userinput></screen>
 
     <para>The last of the above commands will skip some twenty files,

Modified: branches/2.4-branch/BOOK/prologue/bookinfo.xml
===================================================================
--- branches/2.4-branch/BOOK/prologue/bookinfo.xml	2007-02-07 19:40:26 UTC (rev 971)
+++ branches/2.4-branch/BOOK/prologue/bookinfo.xml	2007-02-08 00:34:52 UTC (rev 972)
@@ -14,7 +14,7 @@
   </authorgroup>
 
   <copyright id="copyright">
-    <year>2004-2006</year>
+    <year>2004-2007</year>
     <holder>HLFS Development Team</holder>
   </copyright>
 
@@ -99,7 +99,7 @@
 </abstract>
 
 <legalnotice>
-<para>Copyright © 2004-2006, HLFS Development Team</para>
+<para>Copyright © 2004-2007, HLFS Development Team</para>
 
     <para>All rights reserved.</para>
 

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2007-02-07 19:40:26 UTC (rev 971)
+++ trunk/BOOK/chapter01/changelog.xml	2007-02-08 00:34:52 UTC (rev 972)
@@ -112,6 +112,8 @@
 </listitem>
 -->
 
+<listitem><para>February 7th, 2007 [Robert]: Added a config.site in /tools for uClibc builds.</para></listitem>
+
 <listitem><para>February 7th, 2007 [Robert]: Fix Expect to compile with uClibc (HAVE_STROPTS_H).</para></listitem>
 
 <listitem><para>February 7th, 2007 [Robert]: Bump to Bash-3.2.</para></listitem>

Modified: trunk/BOOK/chapter05/adjusting.xml
===================================================================
--- trunk/BOOK/chapter05/adjusting.xml	2007-02-07 19:40:26 UTC (rev 971)
+++ trunk/BOOK/chapter05/adjusting.xml	2007-02-08 00:34:52 UTC (rev 972)
@@ -10,6 +10,34 @@
 
   <title>Adjusting the Toolchain</title>
 
+  <para condition="uclibc">Packages which use GNU Autoconf scripts will
+  assume your system type is something like <quote>i686-pc-linux-gnu</quote>
+  when it should be named <quote>i686-pc-linux-uclibc</quote>. With most
+  packages it is not vital to correct this, but with the toolchain it
+  is important. We can make a <filename>config.site</filename> file to set
+  the <parameter>--host/build/target=i686-pc-linux-uclibc</parameter>
+  parameters, and set the <envar>CONFIG_SITE</envar> environment variable
+  to match, which will tell packages our uClibc system type. Most packages
+  will use it without issue, some will not. The Expect package, for instance,
+  will complain that the uClibc system type is unknown, however with the
+  Expect package this is harmless. Other packages, in the next chapter or
+  BLFS, may need their <filename>config.sub</filename> replaced with a
+  newer version which is installed to
+  <filename class="directory">/usr/share/automake</filename> by the Automake
+  package. The next command creates the <filename>config.site</filename> file
+  and sets it in the shell environment. If you log out of the shell for
+  any reason during this chapter then be sure to reset it:</para>
+
+<screen condition="uclibc"><userinput>install -vd /tools/share
+cat > /tools/share/config.site << "EOF"
+host=$(uname -m)-pc-linux-uclibc
+build=$host
+target=$host
+ac_cv_host=$host
+ac_cv_build=$build
+ac_cv_target=$target
+EOF</userinput></screen>
+
   <para>Now that the temporary C libraries have been installed, all
   tools compiled in the rest of this chapter should be linked against
   these libraries. In order to accomplish this, the linker and the

Modified: trunk/BOOK/chapter05/stripping.xml
===================================================================
--- trunk/BOOK/chapter05/stripping.xml	2007-02-07 19:40:26 UTC (rev 971)
+++ trunk/BOOK/chapter05/stripping.xml	2007-02-08 00:34:52 UTC (rev 972)
@@ -15,7 +15,7 @@
     The executables and libraries built so far contain about 70 MB of unneeded
     debugging symbols. Remove those symbols with:</para>
 
-<screen><userinput>strip --strip-debug /tools/lib/*
+<screen><userinput>find /tools/lib -type f -exec strip --strip-debug '{}' ';'
 strip --strip-unneeded /tools/{,s}bin/*</userinput></screen>
 
     <para>The last of the above commands will skip some twenty files,

Modified: trunk/BOOK/prologue/bookinfo.xml
===================================================================
--- trunk/BOOK/prologue/bookinfo.xml	2007-02-07 19:40:26 UTC (rev 971)
+++ trunk/BOOK/prologue/bookinfo.xml	2007-02-08 00:34:52 UTC (rev 972)
@@ -13,7 +13,7 @@
 </authorgroup>
 
 <copyright id="copyright">
-	<year>2004-2006</year>
+	<year>2004-2007</year>
 	<holder>HLFS Development Team</holder>
 </copyright>
 
@@ -96,7 +96,7 @@
 </abstract>
 
 <legalnotice>
-<para>Copyright © 2004-2006, HLFS Development Team</para>
+<para>Copyright © 2004-2007, HLFS Development Team</para>
 
 <para>All rights reserved.</para>
 




More information about the hlfs-book mailing list