Date: Wed, 21 Dec 2016 13:00:42 -0300 From: =?UTF-8?Q?Nicol=C3=A1s_Papp?= <nicolaspapp@gmail.com> To: Eugene Grosbein <eugen@grosbein.net> Cc: freebsd-hackers@freebsd.org Subject: Re: Kernel developing tools Message-ID: <CALJNJscYYdDON6PksB7tKCnAM6pDaBTUhoBK6k7YdFhe4JOrsg@mail.gmail.com> In-Reply-To: <5859E73B.7060700@grosbein.net> References: <CALJNJscoWBs0e_P-T8VxkNF=_HLGnvq95vne28_C51z4erWvOw@mail.gmail.com> <5859E73B.7060700@grosbein.net>
next in thread | previous in thread | raw e-mail | index | archive | help
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@grosbein.net>: > 21.12.2016 3:45, Nicol=C3=A1s Papp =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > 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=3Dyes 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=3Dyes buildkernel" skips lengthy rebuild of > dependencies - > use if you has not changed kernel configuration since previous build. > > And "make MODULES_WITH_WORLD=3Dyes buildkernel" skips rebuild for whole b= unch > of kernel modules while building just kernel. > > You may combine these: make NO_KERNELCLEAN=3Dyes NO_KERNELDEPEND=3Dyes > MODULES_WITH_WORLD=3Dyes buildkernel. > This way decreases build times dramatically. > >
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CALJNJscYYdDON6PksB7tKCnAM6pDaBTUhoBK6k7YdFhe4JOrsg>