Index: Makefile.inc1 =================================================================== --- Makefile.inc1 +++ Makefile.inc1 @@ -1575,6 +1575,11 @@ ${WMAKE_TGTS:N_worldtmp:Nbuild${libcompat}} ${.ALLTARGETS:M_*:N_worldtmp}: .MAKE .PHONY +# record kernel(s) build time in seconds +.if make(buildkernel) +_BUILDKERNEL_START!= date '+%s' +.endif + # # buildkernel # @@ -1631,7 +1636,12 @@ @echo "--------------------------------------------------------------" @echo ">>> Kernel build for ${_kernel} completed on `LC_ALL=C date`" @echo "--------------------------------------------------------------" + .endfor + @seconds=$$(($$(date '+%s') - ${_BUILDKERNEL_START})); \ + echo -n ">>> Kernel(s) build for${BUILDKERNELS} in $$seconds seconds, "; \ + echo "ncpu: $$(sysctl -n hw.ncpu)${.MAKE.JOBS:S/^/, make -j/}" + @echo "--------------------------------------------------------------" NO_INSTALLEXTRAKERNELS?= yes