Kernel developing tools
Eugene Grosbein
eugen at grosbein.net
Wed Dec 21 02:22:13 UTC 2016
21.12.2016 3:45, Nicolás Papp пишет:
> Has somebody managed to configure any IDE to build and debug the freeBSD
> kernel?
>
> I am currently using kgdb and it takes me a ton of time to rebuild and
> debug for just some minor changes!
First, "make NO_KERNELCLEAN=yes buildkernel" avoids cleanup of build directory
and allows reuse of previously built object files corresponding
to unchanged sources - use for relatively minor changes, not after switch
to another major release sources.
Then, "make NO_KERNELDEPEND=yes buildkernel" skips lengthy rebuild of dependencies -
use if you has not changed kernel configuration since previous build.
And "make MODULES_WITH_WORLD=yes buildkernel" skips rebuild for whole bunch
of kernel modules while building just kernel.
You may combine these: make NO_KERNELCLEAN=yes NO_KERNELDEPEND=yes MODULES_WITH_WORLD=yes buildkernel.
This way decreases build times dramatically.
More information about the freebsd-hackers
mailing list