Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148110553
D13910.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
949 B
Referenced Files
None
Subscribers
None
D13910.id.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D13910: `make buildkernel' should display the build time in seconds
Attached
Detach File
Event Timeline
Log In to Comment