Use base version tarball plus patchfile for Linux kernel

This commit is contained in:
Thomas Trepl 2025-01-02 20:00:37 +01:00
parent c186c16e0f
commit 6d287ea542
5 changed files with 44 additions and 19 deletions

View File

@ -476,25 +476,11 @@
</varlistentry>
<varlistentry>
<term>Linux (&linux-version;) - <token>&linux-size;</token>:</term>
<term>Linux (&linux-base-version;) - <token>&linux-size;</token>:</term>
<listitem>
<para>Home page: <ulink url="&linux-home;"/></para>
<para>Download: <ulink url="&linux-url;"/></para>
<para>MD5 sum: <literal>&linux-md5;</literal></para>
<note>
<para>The Linux kernel is updated quite frequently, many times due to
discoveries of security vulnerabilities. The latest available
<!--&linux-major-version;.&linux-minor-version;.x--> stable kernel
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>
</note>
</listitem>
</varlistentry>

View File

@ -101,6 +101,23 @@
<para>MD5 sum: <literal>&kbd-backspace-patch-md5;</literal></para>
</listitem>
</varlistentry>
<varlistentry>
<term>Linux Patch (from &linux-base-version; to &linux-version;) - <token>&linux-patch-size;</token>:</term>
<listitem>
<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
discoveries of security vulnerabilities. The latest available
<!--&linux-major-version;.&linux-minor-version;.x--> stable kernel
version <!--should--> may be
used, unless the errata page says otherwise.</para>
</note>
</listitem>
</varlistentry>
<!--
<varlistentry>
<term>Meson Upstream Fix Patch - <token>&meson-fix-patch-size;</token>:</term>

View File

@ -47,6 +47,10 @@
by way of sanitizing various C header files that are shipped in the Linux
kernel source tarball.</para>
<para>Patch the kernel source to version &linux-version;:</para>
<screen><userinput remap="pre">xzcat ../patch-&linux-version;.xz | patch -p1</userinput></screen>
<para>Make sure there are no stale files embedded in the package:</para>
<screen><userinput remap="pre">make mrproper</userinput></screen>

View File

@ -77,6 +77,10 @@
</para>
</important>
<para>Patch the kernel source to version &linux-version;:</para>
<screen><userinput remap="pre">xzcat ../patch-&linux-version;.xz | patch -p1</userinput></screen>
<para>Prepare for compilation by running the following command:</para>
<screen><userinput remap="pre">make mrproper</userinput></screen>

View File

@ -439,14 +439,28 @@
<!ENTITY libxcrypt-fin-du "12 MB">
<!ENTITY libxcrypt-fin-sbu "0.1 SBU">
<!--
Updates on linux versions usually happen in the 'patch' version
When updating the patch version, only the entities
* linux-patch-size
* linux-patch-md5
needs to be updated.
When a new minor version appears, the
* linux-major/minor-version is updated and the
* linux-patch-version is set to 1 as we do not use .0 versions
* linux-patch-size and linux-patch-md5 updated accordingly
-->
<!ENTITY linux-major-version "6">
<!ENTITY linux-minor-version "12">
<!ENTITY linux-patch-version "7">
<!--<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;">-->
<!ENTITY linux-base-version "&linux-major-version;.&linux-minor-version;">
<!ENTITY linux-version "&linux-major-version;.&linux-minor-version;.&linux-patch-version;">
<!ENTITY linux-size "144,501 KB">
<!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-version;.tar.xz">
<!ENTITY linux-md5 "267a2cec0d794454a9f92a726280b56d">
<!ENTITY linux-size "144,440 KB">
<!ENTITY linux-url "&kernel;linux/kernel/v&linux-major-version;.x/linux-&linux-base-version;.tar.xz">
<!ENTITY linux-md5 "844fae6a58c7f43af44d8cea8484b4a1">
<!ENTITY linux-patch-size "646 KB">
<!ENTITY linux-patch-md5 "c98ed37cda9d715f89f9758476826a1f">
<!ENTITY linux-patch-url "&kernel;linux/kernel/v&linux-major-version;.x/patch-&linux-version;.xz">
<!ENTITY linux-home "https://www.kernel.org/">
<!-- measured for 6.10.1 / gcc-14.1.0 on x86_64 with -j4 :
minimum is allnoconfig