Adding the linux kernel #63

Closed
opened 2021-11-19 21:00:53 +01:00 by Froggy232 · 8 comments

Hi,
Is it normal than the differents kernels are not in the repo?
I remember reading something vague about it on reddit, I find it sad that they are not present as they would probably benefits a lot from the rebuild.
Thanks you a lot for your project!

Hi, Is it normal than the differents kernels are not in the repo? I remember reading something vague about it on reddit, I find it sad that they are not present as they would probably benefits a lot from the rebuild. Thanks you a lot for your project!

Without modification of the PKGBUILD the differents kernels wouldn't benefit of any optimization, @anonfunc could always maybe see if it isn't possible to add the differents lines needed with sed for example. But i clearly don't think it going to append since the repo try to do the recompile without modifing the PKGBUILD.

I could always make a custom PKGBUILD to have a V3 kernel in the repo, but i don't think @anonfunc is going to want to provide it.

Without modification of the PKGBUILD the differents kernels wouldn't benefit of any optimization, @anonfunc could always maybe see if it isn't possible to add the differents lines needed with sed for example. But i clearly don't think it going to append since the repo try to do the recompile without modifing the PKGBUILD. I could always make a custom PKGBUILD to have a V3 kernel in the repo, but i don't think @anonfunc is going to want to provide it.
Author

I don't understand sadly, but I acknowledge that this is not possible.
Thanks you!

I don't understand sadly, but I acknowledge that this is not possible. Thanks you!
Owner

I think graysky does optimized kernels in their linux-ck repo. Patches are here: https://github.com/graysky2/kernel_compiler_patch.

If I can think of an elegant solution to apply then to the PKGBUILDs without much manual intervention I would be all for including them.

I think graysky does optimized kernels in their linux-ck repo. Patches are here: https://github.com/graysky2/kernel_compiler_patch. If I can think of an elegant solution to apply then to the PKGBUILDs without much manual intervention I would be all for including them.
anonfunc added the
enhancement
label 2021-11-20 18:32:59 +01:00
Owner

Implemented in 2d9e4e166a.

I'll requeue the kernel packages as soon as the recent builds are finished.

Implemented in https://git.harting.dev/anonfunc/ALHP.GO/commit/2d9e4e166a86a31929ab096731759b678fe3c7ec. I'll requeue the kernel packages as soon as the recent builds are finished.
Owner

linux, linux-lts (build date Tue 23 Nov 2021 00:04:15 UTC or later; there was an earlier build that did not have the right config option set) and linux-hardened build successfully.

I tested linux-lts and it seems to work fine. More testing is welcome.

linux-zen fails because the patches from graysky are based on vanilla linux. I can try to rebase the 5.15 patch later to maybe get it working on zen.

You can verify that patches applied successfully by checking /proc/config.gz:

$ zgrep CPU3 /proc/config.gz

CONFIG_GENERIC_CPU3=y
`linux`, `linux-lts` (build date `Tue 23 Nov 2021 00:04:15 UTC` or later; there was an earlier build that did not have the right config option set) and `linux-hardened` build successfully. I tested `linux-lts` and it seems to work fine. More testing is welcome. `linux-zen` [fails](https://alhp.anonfunc.dev/packages.html#extra-x86-64-v3-linux-zen) because the patches from graysky are based on vanilla linux. I can try to rebase the 5.15 patch later to maybe get it working on zen. You can verify that patches applied successfully by checking `/proc/config.gz`: ```bash $ zgrep CPU3 /proc/config.gz CONFIG_GENERIC_CPU3=y ```
Owner

Turns out graysky's patches are already applied to linux-zen. I adjusted ALHP's logic to allow for skipping patching and just enabling the appropriate config option.

Rebuilding later, after the current builds are finished.

Turns out graysky's patches are already applied to `linux-zen`. I [adjusted ALHP's logic](https://git.harting.dev/anonfunc/ALHP.GO/commit/3878a76084e3af3a6ca4c5b1b5ce277de22b1eb1) to allow for skipping patching and just enabling the appropriate config option. Rebuilding later, after the current builds are finished.
Owner

linux-zen also build successfully.

`linux-zen` also build successfully.
Author

Thanks you a lot!

Thanks you a lot!
Sign in to join this conversation.
No description provided.