r1155 - in trunk/BOOK: chapter01 chapter05 chapter06

robert at linuxfromscratch.org robert at linuxfromscratch.org
Tue Jun 12 03:08:33 PDT 2007


Author: robert
Date: 2007-06-12 04:08:33 -0600 (Tue, 12 Jun 2007)
New Revision: 1155

Modified:
   trunk/BOOK/chapter01/changelog.xml
   trunk/BOOK/chapter05/linux-headers.xml
   trunk/BOOK/chapter06/linux-headers.xml
Log:
Fixed the kernel header install commands for linux24

Modified: trunk/BOOK/chapter01/changelog.xml
===================================================================
--- trunk/BOOK/chapter01/changelog.xml	2007-06-12 09:32:26 UTC (rev 1154)
+++ trunk/BOOK/chapter01/changelog.xml	2007-06-12 10:08:33 UTC (rev 1155)
@@ -49,6 +49,16 @@
 -->
 
     <listitem>
+      <para>June 12th, 2007</para>
+      <itemizedlist>
+        <listitem>
+          <para>[robert]: Fixed the kernel header install commands for
+          linux24.</para>
+        </listitem>
+      </itemizedlist>
+    </listitem>
+
+    <listitem>
       <para>June 11th, 2007</para>
       <itemizedlist>
         <listitem>

Modified: trunk/BOOK/chapter05/linux-headers.xml
===================================================================
--- trunk/BOOK/chapter05/linux-headers.xml	2007-06-12 09:32:26 UTC (rev 1154)
+++ trunk/BOOK/chapter05/linux-headers.xml	2007-06-12 10:08:33 UTC (rev 1155)
@@ -35,11 +35,19 @@
 
     <para>Install the header files:</para>
 
-<screen><userinput>make mrproper
+<screen vendor="2.6"><userinput>make mrproper
 make headers_install
 make headers_check
 cp -av usr/include/* /tools/include</userinput></screen>
 
+<screen vendor="2.4"><userinput>make mrproper
+make include/linux/version.h
+make symlinks
+mkdir /tools/include/asm
+cp -v include/asm/* /tools/include/asm
+cp -vR include/asm-generic /tools/include
+cp -vR include/linux /tools/include</userinput></screen>
+
   </sect2>
 
   <sect2 role="content">

Modified: trunk/BOOK/chapter06/linux-headers.xml
===================================================================
--- trunk/BOOK/chapter06/linux-headers.xml	2007-06-12 09:32:26 UTC (rev 1154)
+++ trunk/BOOK/chapter06/linux-headers.xml	2007-06-12 10:08:33 UTC (rev 1155)
@@ -19,7 +19,7 @@
   <sect2 role="package">
     <title/>
 
-    <para>The Linux API Headers expose the kernel's API for use by Glibc.</para>
+    <para>The Linux API Headers expose the kernel's API for use by libc.</para>
 
   </sect2>
 
@@ -31,18 +31,51 @@
     by way of sanitizing various C header files that are shipped in the Linux
     kernel source tarball.</para>
 
-    <para>Apply a sed subsitution to suppress the installation of header
-    files in /usr/include/scsi. The versions provided by Glibc will be
+    <para vendor="2.6">Apply a sed subsitution to suppress the installation of
+    header files in /usr/include/scsi. The versions provided by libc will be
     used instead:</para>
 
-<screen><userinput>sed '/scsi/d' -i.orig include/Kbuild</userinput></screen>
+<screen vendor="2.6"><userinput>sed '/scsi/d' -i.orig include/Kbuild</userinput></screen>
 
+    <para role="aslr" vendor="2.4">This patch modifies the asm-i386/unistd.h
+    header to use position independent assembly code if the compiler defines
+    __PIC__. This is needed so that software which uses this header will be
+    PIC. This header was deemed obsolete and was removed from the 2.6.19
+    series Linux kernel, so this issue will never be corrected upstream.
+    Apply this patch with the following command:</para>
+
+<screen role="aslr" vendor="2.4"><userinput>patch --no-backup-if-mismatch -Np1 -i \
+    ../linux-&linux24-version;-unistd_x86_PIC-1.patch</userinput></screen>
+
+    <variablelist role="aslr" vendor="2.4">
+      <title>The meaning of the command option:</title>
+
+      <varlistentry>
+        <term><parameter>--no-backup-if-mismatch</parameter></term>
+        <listitem>
+          <para>The option tells <command>patch</command> not to create
+          backup files so that we do not copy them to
+          <filename class="directory">/tools/include</filename> when
+          we install the kernel headers in the next step.</para>
+        </listitem>
+      </varlistentry>
+
+    </variablelist>
+
     <para>Install the header files:</para>
 
-<screen><userinput>make mrproper
+<screen vendor="2.6"><userinput>make mrproper
 make headers_check
 make INSTALL_HDR_PATH=/usr headers_install</userinput></screen>
 
+<screen vendor="2.4"><userinput>make mrproper
+make include/linux/version.h
+make symlinks
+cp -vHR include/asm /usr/include
+cp -vR include/asm-generic /usr/include
+cp -vR include/linux /usr/include
+touch /usr/include/linux/autoconf.h</userinput></screen>
+
   </sect2>
 
   <sect2 id="contents-linux-headers" role="content">




More information about the hlfs-book mailing list