Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148575494
D13910.id37945.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.id37945.diff
View Options
Index: Makefile.inc1
===================================================================
--- Makefile.inc1
+++ Makefile.inc1
@@ -1411,6 +1411,7 @@
${_+_}cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} obj
.endif
@echo
+ @date '+%s' > ${KRNLOBJDIR}/.buildkernel_start.${_kernel}
@echo "--------------------------------------------------------------"
@echo ">>> stage 2.3: build tools"
@echo "--------------------------------------------------------------"
@@ -1422,7 +1423,11 @@
${_+_}cd ${KRNLOBJDIR}/${_kernel}; ${KMAKE} all -DNO_MODULES_OBJ
@echo "--------------------------------------------------------------"
@echo ">>> Kernel build for ${_kernel} completed on `LC_ALL=C date`"
+ @seconds=$$(($$(date '+%s') - $$(cat ${KRNLOBJDIR}/.buildkernel_start.${_kernel}))); \
+ echo -n ">>> Kernel build for ${_kernel} in $$seconds seconds, "; \
+ echo "ncpu: $$(sysctl -n hw.ncpu)${.MAKE.JOBS:S/^/, make -j/}"
@echo "--------------------------------------------------------------"
+
.endfor
NO_INSTALLEXTRAKERNELS?= yes
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Mar 19, 9:30 PM (7 h, 59 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29980349
Default Alt Text
D13910.id37945.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