瀏覽代碼

add tooldir=/stage1 to binutils install and fix bug in ch6-adjustingtoolchain

git-svn-id: http://svn.linuxfromscratch.org/LFS/trunk/BOOK@2551 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689
Gerard Beekmans 22 年之前
父節點
當前提交
a5b2aa952e

+ 9 - 0
chapter01/changelog.xml

@@ -63,6 +63,15 @@
 </itemizedlist>
 </para></listitem>
 
+<listitem><para>May 10th, 2003 [gerard]: Chapter 05 - Binutils (pass1,
+pass2, locking glibc and adjusting toolchain): Change tooldir to /stage1
+(likewise we use tooldir=/usr in chapter 6).</para></listitem>
+
+<listitem><para>May 10th, 2003 [gerard]: Chaper 05 - Kernel headers:
+Removed the usage of <userinput>cp -H</userinput> because there are
+distributions out there that do not know about the
+<userinput>-H</userinput> option.</para></listitem>
+
 <listitem><para>May 10th, 2003 [gerard]: New
 gcc-3.2.3-specs-3.patch.</para></listitem>
 

+ 3 - 3
chapter05/binutils-pass1-inst.xml

@@ -32,7 +32,7 @@ statically.</para></listitem>
 
 <para>Continue with compiling the package:</para>
 
-<para><screen><userinput>make LDFLAGS="-all-static -s"</userinput></screen></para>
+<para><screen><userinput>make tooldir=/stage1 LDFLAGS="-all-static -s"</userinput></screen></para>
 
 <para>The meaning of the make option is:</para>
 
@@ -48,10 +48,10 @@ variable.</para></listitem>
 
 <para>And finish off installing the package:</para>
 
-<para><screen><userinput>make install</userinput></screen></para>
+<para><screen><userinput>make tooldir=/stage1 install</userinput></screen></para>
 
 <para><screen><userinput>make -C ld clean
-make -C ld LIB_PATH=/stage1/lib</userinput></screen></para>
+make -C ld tooldir=/stage1 LIB_PATH=/stage1/lib</userinput></screen></para>
 
 <para>Do not remove the binutils-* directories. We need them again
 later on in this chapter.</para>

+ 5 - 6
chapter05/binutils-pass2-inst.xml

@@ -8,13 +8,12 @@ mkdir ../binutils-build
 cd ../binutils-build
 CFLAGS="-O2 -pipe" ../binutils-&binutils-version;/configure --prefix=/stage1 \
 &nbsp;&nbsp;&nbsp;&nbsp;--enable-shared --with-lib-path=/stage1/lib
-make LDFLAGS="-s"
-make check
-make install</userinput></screen></para>
+make tooldir=/stage1 LDFLAGS="-s"
+make tooldir=/stage1 check
+make tooldir=/stage1 install</userinput></screen></para>
 
-<para><screen><userinput>cd ld
-make clean
-make LIB_PATH=/usr/lib:/lib</userinput></screen></para>
+<para><screen><userinput>make -C ld clean
+make -C ld tooldir=/stage1 LIB_PATH=/usr/lib:/lib</userinput></screen></para>
 
 <para>Do not remove the binutils-* directories after the installation.
 We'll need this directory again in chapter 6 as-is.</para>

+ 2 - 1
chapter05/kernelheaders-inst.xml

@@ -43,7 +43,8 @@ symlink:</para>
 
 <para>Install the platform specific-header files:</para>
 
-<para><screen><userinput>cp -HR include/asm /stage1/include &amp;&amp;
+<para><screen><userinput>mkdir /stage1/include/asm &amp;&amp;
+cp include/asm/* /stage1/include/asm &amp;&amp;
 cp -R include/asm-generic /stage1/include</userinput></screen></para>
 
 <para>Install the cross-platform kernel header files:</para>

+ 1 - 1
chapter05/lockingglibc.xml

@@ -7,7 +7,7 @@
 <sect2>
 <title>Installation of Binutils</title>
 
-<para><screen><userinput>make -C ld install-data-local</userinput></screen></para>
+<para><screen><userinput>make -C ld tooldir=/stage1 install-data-local</userinput></screen></para>
 
 <para>You can remove the binutils-* directories now.</para>
 

+ 5 - 6
chapter06/adjustingtoolchain.xml

@@ -3,12 +3,11 @@
 <?dbhtml filename="adjustingtoolchain.html" dir="chapter06"?>
 
 <para><screen><userinput>cd binutils-build
-make -C ld INSTALL=/stage1/bin/install install-data-local
-SPECFILE=/stage1/lib/gcc-lib/*/*/specs
-sed -e 's@/lib/ld.so.1@/stage1/lib/ld.so.1@g' \
-&nbsp;&nbsp;&nbsp;&nbsp;-e
-'s@/lib/ld-linux.so.2@/stage1/lib/ld-linux.so.2@g' \
-&nbsp;&nbsp;&nbsp;&nbsp;$SPECFILE > XX
+make -C ld tooldir=/stage1 INSTALL=/stage1/bin/install install-data-local
+
+SPECFILE=/stage1/lib/gcc-lib/*/*/specs &&
+sed -e 's@/stage1/lib/ld.so.1@/lib/ld.so.1@g' \
+&nbsp;&nbsp;&nbsp;&nbsp;-e 's@/stage1/lib/ld-linux.so.2@/lib/ld-linux.so.2@g' $SPECFILE > XX
 mv XX $SPECFILE
 unset SPECFILE</userinput></screen></para>