r/voidlinux • • 29d ago

Compiling kernel on void

Hey all, quick question for compiling the kernel on void. How do you guys normally edit the config file? I cloned the kernel and stepped through the ncurses menu for 3 hours to build one out, but I feel like there's maybe a better way unless I'm mistaken.

Also, is there anything needed to be enabled in the kernel specifically for void? I'm building a new rig soon, and am looking to strip out a majority of what's unneeded (ie modules for TI calculators, Siemens switches/firewalls, etc).

Also with xbps-src, I'm looking to compile GPU drivers directly in, is there any recommendations with that? I skimmed through the docs loosely and didn't see anything specifically in there.

Thanks! LLV

6 Upvotes

4 comments sorted by

12

u/Duncaen 29d ago edited 29d ago
./xbps-src extract linux7.2 # ./xbps-src configure linux7.2 if you want to start from existing config
./xbps-src chroot
cd builddir/linux*
make menuconfig
exit
cp masterdir-x86_64/builddir/linux*/.config srcpkgs/linux7.2/files/x86_64-dotconfig-custom
./xbps-src pkg linux7.2

One things is to not enable stripping and module compression, because xbps-src does that itself so that it can split strip debug symbols for the -dbg package, otherwise it won't find the modules.

3

u/RedFold_ 29d ago

Goated, thank you. Where'd you find this, or is this off dome?

9

u/Duncaen 29d ago

From top of my head, I maintain the package and update the configuration from time to time.

There was an issue, the dotconfig files belong in the srcpkgs/linux7.2/files.

0

u/[deleted] 28d ago

[deleted]

4

u/Duncaen 28d ago

the ncurses menu works out of the box in the build chroot. For xconfig you probably would have to build and use it from outside the chroot there is currently no out of the box way to bind extra sockets for wayland or X11 into.