Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148611852
D13910.id38481.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D13910.id38481.diff
View Options
Index: Makefile.inc1
===================================================================
--- Makefile.inc1
+++ Makefile.inc1
@@ -1376,6 +1376,10 @@
${WMAKE_TGTS:N_worldtmp:Nbuild${libcompat}} ${.ALLTARGETS:M_*:N_worldtmp}: .MAKE .PHONY
+.if make(buildkernel)
+_BUILDKERNEL_START!= mktemp -t buildkernel
+.endif
+
#
# buildkernel
#
@@ -1388,6 +1392,7 @@
.endif
@echo
.for _kernel in ${BUILDKERNELS:Ndummy}
+ @date '+%s' > ${_BUILDKERNEL_START}
@echo "--------------------------------------------------------------"
@echo ">>> Kernel build for ${_kernel} started on `LC_ALL=C date`"
@echo "--------------------------------------------------------------"
@@ -1429,8 +1434,13 @@
${_+_}cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} all -DNO_MODULES_OBJ
@echo "--------------------------------------------------------------"
@echo ">>> Kernel build for ${_kernel} completed on `LC_ALL=C date`"
+ @seconds=$$(($$(date '+%s') - $$(cat ${_BUILDKERNEL_START}))); \
+ echo -n ">>> Kernel build for ${_kernel} in $$seconds seconds, "; \
+ echo "ncpu: $$(sysctl -n hw.ncpu)${.MAKE.JOBS:S/^/, make -j/}"
@echo "--------------------------------------------------------------"
+
.endfor
+ rm -f ${_BUILDKERNEL_START}
NO_INSTALLEXTRAKERNELS?= yes
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 20, 3:32 AM (17 h, 14 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29995582
Default Alt Text
D13910.id38481.diff (1 KB)
Attached To
Mode
D13910: `make buildkernel' should display the build time in seconds
Attached
Detach File
Event Timeline
Log In to Comment