`make buildkernel' should display the build time in seconds
PR: 224433 Approved by: cem Differential Revision: https://reviews.freebsd.org/D13910
This commit is contained in:
parent
9b3c15c583
commit
1d3a067e85
@ -1584,6 +1584,11 @@ _cleankernobj_fast_depend_hack: .PHONY
|
|||||||
|
|
||||||
${WMAKE_TGTS:N_worldtmp:Nbuild${libcompat}} ${.ALLTARGETS:M_*:N_worldtmp}: .MAKE .PHONY
|
${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
|
# buildkernel
|
||||||
#
|
#
|
||||||
@ -1640,7 +1645,12 @@ buildkernel: .MAKE .PHONY
|
|||||||
@echo "--------------------------------------------------------------"
|
@echo "--------------------------------------------------------------"
|
||||||
@echo ">>> Kernel build for ${_kernel} completed on `LC_ALL=C date`"
|
@echo ">>> Kernel build for ${_kernel} completed on `LC_ALL=C date`"
|
||||||
@echo "--------------------------------------------------------------"
|
@echo "--------------------------------------------------------------"
|
||||||
|
|
||||||
.endfor
|
.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
|
NO_INSTALLEXTRAKERNELS?= yes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user