[lfs] branch multilib updated: Use linux kernel patch file

"Git Owner" ([email protected] via lfs-book Mailing List) <[email protected]>
Newsgroups gmane.linux.lfs.book
Message-ID <175505062297.7084.14630768242043287707@rivendell.linuxfromscratch.org>
This is an automated email from the git hooks/post-receive script.

git pushed a commit to branch multilib
in repository lfs.

The following commit(s) were added to refs/heads/multilib by this push:
     new 959aa89f8 Use linux kernel patch file
959aa89f8 is described below

commit 959aa89f8bfec9d0082405635a6ddc9c935bafb6
Author: Thomas Trepl <[email protected]>
AuthorDate: Wed Aug 13 04:03:19 2025 +0200

    Use linux kernel patch file
---
 chapter03/packages.xml      | 10 ++++++----
 chapter05/linux-headers.xml |  5 +++++
 chapter10/kernel.xml        | 15 ++++++++++-----
 packages.ent                | 25 ++++++++++++++-----------
 4 files changed, 35 insertions(+), 20 deletions(-)

diff --git a/chapter03/packages.xml b/chapter03/packages.xml
index 89cf94719..77b1b23a6 100644
--- a/chapter03/packages.xml
+++ b/chapter03/packages.xml
@@ -472,6 +472,8 @@
         <para>Home page: <ulink url="&linux-home;"/></para>
         <para>Download: <ulink url="&linux-url;"/></para>
         <para>MD5 sum: <literal>&linux-md5;</literal></para>
+        <para>Download: <ulink url="&linux-patch-url;"/></para>
+        <para>MD5 sum: <literal>&linux-patch-md5;</literal></para>
 
         <note>
           <para>The Linux kernel is updated quite frequently, many times due to
@@ -480,10 +482,10 @@
           version <!--should--> may be
           used, unless the errata page says otherwise.</para>
 
-          <para>For users with limited speed or expensive bandwidth who wish to
-          update the Linux kernel, a baseline version of the package and
-          patches can be downloaded separately.  This may save some time or
-          cost for a subsequent patch level upgrade within a minor release.
+          <para>We use the baseline version of the package and
+          separately downloaded patches.  This saves some download time
+          as well as disk space as for subsequent patch level upgrades
+          only the patch file is required to download.
           </para>
         </note>
       </listitem>
diff --git a/chapter05/linux-headers.xml b/chapter05/linux-headers.xml
index 2c01e944c..2a6efea88 100644
--- a/chapter05/linux-headers.xml
+++ b/chapter05/linux-headers.xml
@@ -47,6 +47,11 @@
     by way of sanitizing various C header files that are shipped in the Linux
     kernel source tarball.</para>
 
+    <para>Update the kernel source tree from &linux-major-version;.&linux-minor-version;
+    to &linux-version;:</para>
+
+<screen><userinput remap="pre">xzcat ../patch-&linux-version;.xz | patch -Np1</userinput></screen>
+
     <para>Make sure there are no stale files embedded in the package:</para>
 
 <screen><userinput remap="pre">make mrproper</userinput></screen>
diff --git a/chapter10/kernel.xml b/chapter10/kernel.xml
index 9c8834c12..d5c2c21ac 100644
--- a/chapter10/kernel.xml
+++ b/chapter10/kernel.xml
@@ -59,12 +59,12 @@
         At this point optimization and customization is not a goal.
       </para>
 
-      
+
       <para>
         For general information on kernel configuration see <ulink
         url="&hints-root;kernel-configuration.txt"/>.  Additional information
         about configuring and building the kernel can be found at <ulink
-        url="&anduin-sources;/kernel-nutshell/"/>. 
+        url="&anduin-sources;/kernel-nutshell/"/>.
         These references are a bit
         dated, but still give a reasonable overview of the process.
       </para>
@@ -77,6 +77,11 @@
       </para>
     </important>
 
+    <para>Update the kernel source tree from &linux-major-version;.&linux-minor-version;
+    to &linux-version;:</para>
+
+<screen><userinput remap="pre">xzcat ../patch-&linux-version;.xz | patch -Np1</userinput></screen>
+
     <para>Prepare for compilation by running the following command:</para>
 
 <screen><userinput remap="pre">make mrproper</userinput></screen>
@@ -140,7 +145,7 @@
 
       <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
         href="kernel/systemd.xml"/>
-   
+
       <para>Enable some additional features if you are building a 64-bit
       system.  If you are using menuconfig, enable them in the order of
       <parameter>CONFIG_PCI_MSI</parameter> first, then
@@ -210,7 +215,7 @@
     [*] x32 ABI for 64-bit mode [CONFIG_X86_X32]
 </screen>
     </note>
-    
+
     <variablelist>
       <title>The rationale for the above configuration items:</title>
 
@@ -384,7 +389,7 @@
           <para>Support running the interrupt controller of 64-bit x86
           processors in x2APIC mode.  x2APIC may be enabled by firmware on
           64-bit x86 systems, and a kernel without this option enabled will
-          panic on boot if x2APIC is enabled by firmware.  This option 
+          panic on boot if x2APIC is enabled by firmware.  This option
           has no effect, but also does no harm if x2APIC is disabled by the
           firmware.</para>
         </listitem>
diff --git a/packages.ent b/packages.ent
index 8d3346e80..57b020617 100644
--- a/packages.ent
+++ b/packages.ent
@@ -433,18 +433,21 @@
 
 <!ENTITY linux-major-version "6">
 <!ENTITY linux-minor-version "15">
-<!ENTITY linux-patch-version "6">
+<!ENTITY linux-patch-version "9">
 <!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">-->
 <!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;">
-<!ENTITY linux-size "147,622 KB">
-<!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-version;.tar.xz">
-<!ENTITY linux-md5 "019a3cea6458f01331dfa5afdd1ce252">
+<!ENTITY linux-size "147,625 KB">
+<!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-major-version;.&linux-minor-version;.tar.xz">
+<!ENTITY linux-md5 "c0f205cc27982a875c519f644a6288c4">
+<!ENTITY linux-patch-url "&kernel;linux/kernel/v&linux-major-version;.x/patch-&linux-version;.xz">
+<!ENTITY linux-patch-md5 "08de8c6221bb585f1450fddf645e49fd">
+<!ENTITY linux-patch-size "713.1 KB">
 <!ENTITY linux-home "https://www.kernel.org/">
-<!-- measured for 6.10.1 / gcc-14.1.0 on x86_64 with -j4 : 
- minimum is allnoconfig 
- typical is defconfig 
- max     is allyesconfig 
- The disk usage is the sum of the size of linux-6.10.1 directory.  
+<!-- measured for 6.10.1 / gcc-14.1.0 on x86_64 with -j4 :
+ minimum is allnoconfig
+ typical is defconfig
+ max     is allyesconfig
+ The disk usage is the sum of the size of linux-6.10.1 directory.
  It does not include an installed kernel or any modules.
 -->
 <!ENTITY linux-knl-du "1.7 - 14 GB (typically about 2.3 GB)">
@@ -674,8 +677,8 @@
 
 <!ENTITY systemd-version  "257.6">
 <!--<!ENTITY systemd-stable   "6b4878d">-->
-<!-- The above entity is used whenever we move to a stable backport branch. 
-     In the event of a critical problem or kernel change that is incompatible, 
+<!-- The above entity is used whenever we move to a stable backport branch.
+     In the event of a critical problem or kernel change that is incompatible,
      we will switch to the backport branch until the next stable release. -->
 <!ENTITY systemd-size     "15,940 KB">
 <!ENTITY systemd-url      "&github;/systemd/systemd/archive/v&systemd-version;/systemd-&systemd-version;.tar.gz">

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.

-- 
http://lists.linuxfromscratch.org/sympa/info/lfs-book
Unsubscribe: See the above information page
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.