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.
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
Get the package build files and then download the source
git clone https://gitea.artixlinux.org/packages/linux
cd linux
makepkg -sro
Change to the actual source dir
cd src/linux-THEVERSION
run menuconfig (though xconfig or gconfig is nicer) and save when finished changing options
make menuconfig
Change back to the previous dir
cd -
Build the packages
makepkg -sre
Use man makepkg to learn what the makepkg options do.