Skip to main content
Topic: Proper way to recompile the kernel (from patched sources) ? (using gitea repo) (Read 215 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Proper way to recompile the kernel (from patched sources) ? (using gitea repo)

edit:  I've started from https://gitea.artixlinux.org/packages/linux and the build appears to be working fine.

--- original question ---

Because of issues with amdgpu, I had to patch a linux kernel by hand.
I'm about to compile it but instead of doing it like I used to (decades ago) I'd rather do it the right way for Artix.
e.g. same build options and so on.

Is there a link with the steps I should follow for Artix to get an installable package?

Thanks.

(edit: using https://gitea.artixlinux.org/packages/linux maybe?)


 

Re: Proper way to recompile the kernel (from patched sources) ? (using gitea repo)

Reply #1
It can vary depending on what you are patching.
But in most cases:
Clone the repo
cd to dir
run makepkg -so
apply patch(es) in src/linux*
run makepkg -e

Or edit the PKGBUILD to include your patch(es) as source files - source=(
Put the patch(es) in the dir with the PKGBUILD
Use makepkg -g to get the checksums and add to the PKGBUILD (or do it manually, or just as a 'SKIP')
Add the patch command in the prepare section, next to the one already there is probably best
patch -Np1 < "MYPATCH.patch"
then makepkg -s

Been a while so apologies if I've missed something out.

 
Artix forum uses a single cookie to remember youOK