Date: Wed, 21 Dec 2016 09:21:47 +0700 From: Eugene Grosbein <eugen@grosbein.net> To: =?UTF-8?Q?Nicol=c3=a1s_Papp?= <nicolaspapp@gmail.com>, freebsd-hackers@freebsd.org Subject: Re: Kernel developing tools Message-ID: <5859E73B.7060700@grosbein.net> In-Reply-To: <CALJNJscoWBs0e_P-T8VxkNF=_HLGnvq95vne28_C51z4erWvOw@mail.gmail.com> References: <CALJNJscoWBs0e_P-T8VxkNF=_HLGnvq95vne28_C51z4erWvOw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5859E73B.7060700>