make universe: only kernels, no worlds

Giorgos Keramidas keramida at ceid.upatras.gr
Tue May 27 02:44:48 UTC 2008


On Mon, 26 May 2008 23:26:19 +0300, Andriy Gapon <avg at icyb.net.ua> wrote:
> Is there a built-in way to do an equivalent of building universe but
> only for kernels (and kernel tool-chains)? Or some straightforward to
> emulate that?

Yes, there is :)

You can set MAKE_JUST_KERNELS:

    env MAKE_JUST_KERNELS='yes' make universe

The tunable is a bit `hidden' in the src/Makefile code, near line 292:

    292 universe_${target}:
    293 .if !defined(MAKE_JUST_KERNELS)
    294         @echo ">> ${target} started on `LC_ALL=C date`"
    295         -cd ${.CURDIR} && ${MAKE} ${JFLAG} buildworld \
    296             TARGET=${target} \
    297             __MAKE_CONF=/dev/null \
    298             > _.${target}.buildworld 2>&1
    299         @echo ">> ${target} buildworld completed on `LC_ALL=C date`"
    300 .endif

but it's there already.



More information about the freebsd-hackers mailing list