Page MenuHomeFreeBSD

D13910.id54899.diff
No OneTemporary

D13910.id54899.diff

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

File Metadata

Mime Type
text/plain
Expires
Thu, Apr 16, 10:56 AM (20 m, 55 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31597501
Default Alt Text
D13910.id54899.diff (934 B)

Event Timeline