Hi all,

here is just a small patch on the books XMLs which deals with the kernel.  
When upgrading to a new kernel patch level (e.g. 2.6.24 --> 2.6.24.1) the 
book forces us to download the full kernel package (which is 46 MB) while 
just a few days ago we allready have downloaded the base version.
With this modification I introduce the usage of the patch-x.y.z.p.bz2 files 
provided on kernel.org which is a patch on the base version. In the current 
status, it is just 16.6K, much less in size than the full tarball.

What do you think about this one?

--
Thomas
Index: packages.ent
===================================================================
RCS file: /srv/cvs/cvsroot2/mybook/packages.ent,v
retrieving revision 1.2
diff -u -r1.2 packages.ent
--- packages.ent	7 Feb 2008 20:20:43 -0000	1.2
+++ packages.ent	9 Feb 2008 09:44:08 -0000
@@ -301,11 +301,11 @@
 
 <!ENTITY linux-major-version "2.6">
 <!ENTITY linux-minor-version "24">
-<!ENTITY linux-patch-version "">
-<!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;">-->
-<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">
+<!ENTITY linux-patch-version "1">
+<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;">
+<!ENTITY linux-base-version "&linux-major-version;.&linux-minor-version;">
 <!ENTITY linux-size "45,642 KB">
-<!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;/linux-&linux-version;.tar.bz2">
+<!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;/linux-&linux-base-version;.tar.bz2">
 <!ENTITY linux-md5 "3f23ad4b69d0a552042d1ed0f4399857">
 <!ENTITY linux-home "http://www.kernel.org/";>
 <!ENTITY linux-ch8-du "350 - 450 MB">
Index: patches.ent
===================================================================
RCS file: /srv/cvs/cvsroot2/mybook/patches.ent,v
retrieving revision 1.2
diff -u -r1.2 patches.ent
--- patches.ent	7 Feb 2008 20:20:43 -0000	1.2
+++ patches.ent	9 Feb 2008 09:44:08 -0000
@@ -68,6 +68,11 @@
 <!ENTITY kbd-gcc4_fixes-patch-size "1.4 KB">
 
 
+<!ENTITY linux-kernel-patch "patch-&linux-version;.bz2">
+<!ENTITY linux-kernel-patch-md5 "86d55d5080217b2e79e0fff227218cd1">
+<!ENTITY linux-kernel-patch-size "16.6 KB">
+
+
 <!ENTITY mktemp-tempfile-patch "mktemp-&mktemp-version;-add_tempfile-3.patch">
 <!ENTITY mktemp-tempfile-patch-md5 "65d73faabe3f637ad79853b460d30a19">
 <!ENTITY mktemp-tempfile-patch-size "3.5 KB">
Index: chapter03/patches.xml
===================================================================
RCS file: /srv/cvs/cvsroot2/mybook/chapter03/patches.xml,v
retrieving revision 1.2
diff -u -r1.2 patches.xml
--- chapter03/patches.xml	7 Feb 2008 20:20:43 -0000	1.2
+++ chapter03/patches.xml	9 Feb 2008 09:44:08 -0000
@@ -131,6 +131,14 @@
     </varlistentry>
 
     <varlistentry>
+        <term>Linux Kernel Patch - <token>&linux-kernel-patch-size;</token>:</term>
+        <listitem>
+            <para>Download: <ulink url="&kernel;/pub/linux/kernel/v2.6/&linux-kernel-patch;"/></para>
+            <para>MD5 sum: <literal>&linux-kernel-patch-md5;</literal></para>
+        </listitem>
+    </varlistentry>
+
+    <varlistentry>
       <term>Mktemp Tempfile Patch - <token>&mktemp-tempfile-patch-size;</token>:</term>
       <listitem>
         <para>Download: <ulink url="&patches-root;&mktemp-tempfile-patch;"/></para>
Index: chapter05/linux-headers.xml
===================================================================
RCS file: /srv/cvs/cvsroot2/mybook/chapter05/linux-headers.xml,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 linux-headers.xml
--- chapter05/linux-headers.xml	5 Feb 2008 19:33:29 -0000	1.1.1.1
+++ chapter05/linux-headers.xml	9 Feb 2008 09:44:08 -0000
@@ -48,6 +48,10 @@
     by way of sanitizing various C header files that are shipped in the Linux
     kernel source tarball.</para>
 
+    <para>First, upgrade the &linux-base-version; source to the recent patch level:</para>
+
+<screen><userinput remap="install">bzcat ../&linux-kernel-patch; | patch -Np1</userinput></screen>
+
     <para>Install the header files:</para>
 
 <screen><userinput remap="install">make mrproper
Index: chapter06/linux-headers.xml
===================================================================
RCS file: /srv/cvs/cvsroot2/mybook/chapter06/linux-headers.xml,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 linux-headers.xml
--- chapter06/linux-headers.xml	5 Feb 2008 19:33:30 -0000	1.1.1.1
+++ chapter06/linux-headers.xml	9 Feb 2008 09:44:08 -0000
@@ -46,6 +46,10 @@
     by way of sanitizing various C header files that are shipped in the Linux
     kernel source tarball.</para>
 
+<para>First, upgrade the &linux-base-version; source to the recent patch level:</para>
+
+<screen><userinput remap="install">bzcat ../&linux-kernel-patch; | patch -Np1</userinput></screen>
+
     <para>Install the header files:</para>
 
 <screen><userinput remap="install">make mrproper
Index: chapter08/kernel.xml
===================================================================
RCS file: /srv/cvs/cvsroot2/mybook/chapter08/kernel.xml,v
retrieving revision 1.1.1.1
diff -u -r1.1.1.1 kernel.xml
--- chapter08/kernel.xml	5 Feb 2008 19:33:30 -0000	1.1.1.1
+++ chapter08/kernel.xml	9 Feb 2008 09:44:08 -0000
@@ -45,6 +45,10 @@
     in the kernel source tree for alternative methods to the way this book
     configures the kernel.</para>
 
+<para>First, upgrade the &linux-base-version; source to the recent patch level:</para>
+
+<screen><userinput remap="install">bzcat ../&linux-kernel-patch; | patch -Np1</userinput></screen>
+
     <para>Prepare for compilation by running the following command:</para>
 
 <screen><userinput remap="pre">make mrproper</userinput></screen>
-- 
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