Skip to main content
Topic: Need help for kernel customization... (Read 189 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Need help for kernel customization...

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.
 

Re: Need help for kernel customization...

Reply #1
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

 

Re: Need help for kernel customization...

Reply #2
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.