Frogging-Family / linux-tkg

linux-tkg custom kernels
GNU General Public License v2.0
1.32k stars 166 forks source link

[Feature Request] Add support for genpatches #1006

Open blackteahamburger opened 1 week ago

blackteahamburger commented 1 week ago

genpatches is applied to Gentoo's Linux kernel packages. It will be good to support it (and make it default for _distro=Gentoo). This will solve:

If you're running openrc, you'll want to set _configfile="running-kernel" to use your current kernel's defconfig instead of Arch's. Else the resulting kernel won't boot.

Download via: https://dev.gentoo.org/~mpagano/dist/genpatches/genpatches-${KV_MAJOR}.${KV_MINOR}-${K_GENPATCHES_VER}.{base, extras}.tar.xz (e.g. https://dev.gentoo.org/~mpagano/dist/genpatches/genpatches-6.11-1.{base, extra}.tar.xz). There's also experimental patch to enable cpu optimizations but not necessary because it has already been included.

mabod commented 2 days ago

I am just a user commenting here. My guess is, that the gentoo kernel patch will not easily apply.

E.g. the patch for kernel 6.10.11. https://gitweb.gentoo.org/proj/linux-patches.git/commit/?h=6.10

It starts with:

+diff --git a/Makefile b/Makefile
+index 9b4614c0fcbb68..447856c43b3275 100644
+--- a/Makefile
++++ b/Makefile
+@@ -1,7 +1,7 @@
+ # SPDX-License-Identifier: GPL-2.0
+ VERSION = 6
+ PATCHLEVEL = 10
+-SUBLEVEL = 10
++SUBLEVEL = 11
+ EXTRAVERSION =
+ NAME = Baby Opossum Posse

It looks like that this patch needs kernel 6.10.10 as the base.

Same is true for the patch for 6.6.52. It needs 6.6.51 as the base.

Have you tried to apply the gentoo patches as user patches with linux-tkg? I pretty sure this will fail.