Proper way to recompile the kernel (from patched sources) ? (using gitea repo) 18 April 2025, 17:45:40 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?) Last Edit: 18 April 2025, 18:15:04 by Hurricane
Re: Proper way to recompile the kernel (from patched sources) ? (using gitea repo) Reply #1 – 18 April 2025, 21:18:41 It can vary depending on what you are patching.But in most cases:Clone the repocd to dirrun makepkg -soapply patch(es) in src/linux*run makepkg -eOr edit the PKGBUILD to include your patch(es) as source files - source=(Put the patch(es) in the dir with the PKGBUILDUse 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 bestpatch -Np1 < "MYPATCH.patch"then makepkg -sBeen a while so apologies if I've missed something out. Last Edit: 18 April 2025, 22:49:03 by gripped 2 Likes