Compiling only "network" part of the kernel

Yuri Pankov yuri.pankov at gmail.com
Tue Dec 27 06:44:04 UTC 2011


On Mon, Dec 26, 2011 at 10:35:33PM -0800, Adrian Chadd wrote:
> On 26 December 2011 22:23, Rajneesh Kumar <iwc2010005 at gmail.com> wrote:
> > Hi list,
> >
> > During my development, I want to check if my modules compile successfully
> > or not. I am only changing the ARP portion and whenever I compile my
> > kernel, it takes around 20mins and compiles all different modules also.
> > I just want to compile and check whether my ARP modules, which I have
> > changed, compile fine or not. How to do it?
>
> Shouldn't just a normal "make" in the kernel config directory only
> rebuild those parts that have changed?

It also does a lot of cleanup and stuff, which can be skipped using
-DKERNFAST (which in turn defines NO_KERNEL{CONFIG,CLEAN,DEPEND,OBJ}),
if you know what you are doing. This is all described in Makefile.inc1.

There's also MODULES_OVERRIDE (described in make.conf(5)), and, of
course, sys/modules/<yourmodule> :-)


Yuri


More information about the freebsd-net mailing list