Kernel developing tools
Nicolás Papp
nicolaspapp at gmail.com
Wed Dec 21 16:00:44 UTC 2016
Thank you Eugene and Alan! This is already saving me lots of hours of
waiting!
2016-12-20 23:21 GMT-03:00 Eugene Grosbein <eugen at grosbein.net>:
> 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