Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Dec 2011 22:40:03 -0800
From:      Juli Mallett <jmallett@FreeBSD.org>
To:        Rajneesh Kumar <iwc2010005@gmail.com>
Cc:        freebsd-net@freebsd.org
Subject:   Re: Compiling only "network" part of the kernel
Message-ID:  <CACVs6=8ef4wLVkOJ4BwAjHW-uqfq-Noft9k83RVeM6dMN8tDAQ@mail.gmail.com>
In-Reply-To: <CA%2BDF=vyFTgr1PfvG0qPo9hv3VmygB9FqiqYqhKs1C26bMzJvmA@mail.gmail.com>
References:  <CA%2BDF=vyFTgr1PfvG0qPo9hv3VmygB9FqiqYqhKs1C26bMzJvmA@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Dec 26, 2011 at 22:23, Rajneesh Kumar <iwc2010005@gmail.com> wrote:
> 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?

You need to tell us what process you are using so we can give an
example that best fits your existing workflow.  There are ways we
suggest for users and ways developers use, and it would be a shame to
give you irrelevant suggestions.

If you're using "make buildkernel" then you can add -DNO_CLEAN (or
perhaps it's -DNOCLEAN) to avoid cleaning out the object directory
first.  This will keep dependencies up-to-date for you, and only
rebuild what's necessary.

What may be better, if you don't need a cross-compiler, is to do the
kernel configuration by hand.  So you might do something like:

cd /path/to/src/sys/amd64/conf
config GENERIC
cd ../compile/GENERIC
make depend
make kernel

And then when you make changes you can just do "make kernel".  If you
make a change that requires rerunning config(8), it will tell you to
do "make cleandepend && make depend" or something like that first, to
fix header and option dependencies that may not exist with your new
configuration.

Hopefully one of those two things will help, as anything else you
might be doing is probably based on one of those processes, but if not
you should let us know what you're doing now.

Thanks,
Juli.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACVs6=8ef4wLVkOJ4BwAjHW-uqfq-Noft9k83RVeM6dMN8tDAQ>