Editing and compiling FreeBSD source

M. Warner Losh imp at bsdimp.com
Sun Sep 19 22:24:08 PDT 2004


In message: <c1e1c6a504091916341602b881 at mail.gmail.com>
            Andrew Novikov <mymuss at gmail.com> writes:
: Could someone please explan me the difference between:
: 
: make buildkernel
: make installkernel

If you've done a make buildworld, this should always work, reguardless
of what tools you have installed in the base system.  There are a
number of nobs to make these faster.  This even works accross
different releases (eg, you can build a 5 kernel on a 4 box) most of
the time too.

: config
: cd ../../compile/.....
: make depend
: make
: make install

This uses system tools, so they have to be in sync with the kernel.
This is often more convenient when you are building lots of kernels to
debug some problem in the kernel, but isn't any faster than the above
if you are starting from dirt.

Warner


More information about the freebsd-hackers mailing list