Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

In the kernel source directory do:

    make help | less
and the various config targets are listed; to use the default configuration (for the current host architecture) do:

    make defconfig
To edit it further use one of the edit options such as menuconfig:

   make menuconfig
All of these create/operate on ./.config in the source-code 'root' directory.

This and much more is covered in

https://kernelnewbies.org/KernelBuild



Another useful tip is to grab an existing config, eg. the one for your current system found under /boot, rename it .config and then do 'make olddefconfig' (followed by building the kernel in the usual way).

Distro kernels are normally quite "full fat" so this may tend to build a lot, but it's a good way to get a kernel which closely matches what you're typically running, both in terms of device coverage and compilation options / hardening.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: