Page MenuHomeFreeBSD

D13910.id.diff
No OneTemporary

D13910.id.diff

Index: head/Makefile.inc1
===================================================================
--- head/Makefile.inc1
+++ head/Makefile.inc1
@@ -1584,6 +1584,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
#
@@ -1640,7 +1645,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

File Metadata

Mime Type
text/plain
Expires
Mon, Mar 16, 8:41 PM (1 h, 35 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29721417
Default Alt Text
D13910.id.diff (949 B)

Event Timeline