Compilation taking too long time

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Thu Apr 9 23:13:31 UTC 2015


Pratik Singhal <ps06756 at gmail.com> writes:

> Hello, I am new to freeBSD and trying to contribute to freeBSD.  I have a
> small question.
>
> Whenever I make a small change in the kernel, say apply a patch which only
> affects 1 or 2 files and compile the kernel using the command :-
>
>
> make KERNCONF=config_file buildkernel
>
> It takes a lot of time (around 1 hour) and starts rebuilding the whole
> kernel instead of just building the relevant files.
>
>
> I have checked the freeBSD handbook and checked the targets in Makefile ,
> but none of them provide information about this situation.

Makefile targets specify *what* to build, not *how*.

> How, can I make sure that only the relevant files are built and not the
> whole kernel again and again ?

Try the comments at the top of Makefile.inc1.


More information about the freebsd-questions mailing list