Artix Linux Forum

Artix Linux => System => Topic started by: Artico on 24 April 2024, 11:04:08

Title: Need help for kernel customization...
Post by: Artico on 24 April 2024, 11:04:08
I'm trying to configure a kernel. So, I downloaded it with its relative headers and docs files individually, directly from the Artix repo with "pacman -Sw" (so, without installing it) and then I tried to get a customization with "make menuconfig" but I can't do anything because I don't know how kernel, headers and docs must be included in the same directory, being the makefile within the header's directory and docs and kernel in separated dirs.

Can anyone help me to incorporate dirs and files in the correct way to make possible the kernel's configuration with menuconfig?

Thanks in advance.
 
Title: Re: Need help for kernel customization...
Post by: replabrobin on 24 April 2024, 11:23:22
pacman -Sw will only down load the binary packages and not do anything else.

You need to download the kernel package's PKGBUILD and associated files from the sources and convert in the same way as the artix maintainers/repo builders do it themselves.  I think that artix linux is based on the arch pkgbuild, but I am not an expert.

See https://gitea.artixlinux.org/packages/linux
Title: Re: Need help for kernel customization...
Post by: gripped on 24 April 2024, 13:03:09
Get the package build files and then download the source
Code: [Select]
git clone https://gitea.artixlinux.org/packages/linux
cd linux
makepkg -sro
Change to the actual source dir
Code: [Select]
cd src/linux-THEVERSION
run menuconfig (though xconfig or gconfig is nicer) and save when finished changing options
Code: [Select]
make menuconfig
Change back to the previous dir
Code: [Select]
cd -
Build the packages
Code: [Select]
makepkg -sre
Use man makepkg to learn what the makepkg options do.