Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102059393
D45912.id140861.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D45912.id140861.diff
View Options
diff --git a/Makefile.inc1 b/Makefile.inc1
--- a/Makefile.inc1
+++ b/Makefile.inc1
@@ -1241,11 +1241,19 @@
.endif
WMAKE_TGTS+= everything
-# record buildworld time in seconds
+# record buildworld / install time in seconds
.if make(buildworld)
_BUILDWORLD_START!= date '+%s'
.export _BUILDWORLD_START
.endif
+.if make(installworld)
+_INSTALLWORLD_START!= date '+%s'
+.export _INSTALLWORLD_START
+.endif
+.if make(installkernel)
+_INSTALLKERNEL_START!= date '+%s'
+.export _INSTALLKERNEL_START
+.endif
buildworld: buildworld_prologue ${WMAKE_TGTS} buildworld_epilogue .PHONY
.ORDER: buildworld_prologue ${WMAKE_TGTS} buildworld_epilogue
@@ -1313,11 +1321,11 @@
installcheck: _installcheck_world _installcheck_kernel .PHONY
_installcheck_world: .PHONY
@echo "--------------------------------------------------------------"
- @echo ">>> Install check world"
+ @echo ">>> Install check world started on `LC_ALL=C date`"
@echo "--------------------------------------------------------------"
_installcheck_kernel: .PHONY
@echo "--------------------------------------------------------------"
- @echo ">>> Install check kernel"
+ @echo ">>> Install check kernel started on `LC_ALL=C date`"
@echo "--------------------------------------------------------------"
#
@@ -1641,6 +1649,8 @@
.endfor
@echo "--------------------------------------------------------------"
@echo ">>> Installing everything completed on `LC_ALL=C date`"
+ @seconds=$$(($$(date '+%s') - ${_INSTALLWORLD_START})); \
+ echo ">>> Install world completed in $$seconds seconds, ncpu: $$(${_ncpu_cmd})${.MAKE.JOBS:S/^/, make -j/}"
@echo "--------------------------------------------------------------"
redistribute: .MAKE .PHONY
@@ -1873,6 +1883,9 @@
@echo "--------------------------------------------------------------"
@echo ">>> Installing kernel ${INSTALLKERNEL} completed on $$(LC_ALL=C date)"
@echo "--------------------------------------------------------------"
+ @seconds=$$(($$(date '+%s') - ${_INSTALLKERNEL_START})); \
+ echo ">>> Install kernel(s) ${INSTALLKERNEL} completed in $$seconds seconds, ncpu: $$(${_ncpu_cmd})${.MAKE.JOBS:S/^/, make -j/}"
+ @echo "--------------------------------------------------------------"
.endif
.if ${BUILDKERNELS:[#]} > 1 && ${NO_INSTALLEXTRAKERNELS} != "yes"
.for _kernel in ${BUILDKERNELS:[2..-1]}
@@ -1887,6 +1900,9 @@
@echo ">>> Installing kernel ${_kernel} completed on $$(LC_ALL=C date)"
@echo "--------------------------------------------------------------"
.endfor
+ @seconds=$$(($$(date '+%s') - ${_INSTALLKERNEL_START})); \
+ echo ">>> Install kernel(s) ${BUILDKERNELS} completed in $$seconds seconds, ncpu: $$(${_ncpu_cmd})${.MAKE.JOBS:S/^/, make -j/}"
+ @echo "--------------------------------------------------------------"
.endif
distributekernel distributekernel.debug: .PHONY
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 8, 2:54 AM (16 h, 56 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14526181
Default Alt Text
D45912.id140861.diff (2 KB)
Attached To
Mode
D45912: `make installworld' should display the install time
Attached
Detach File
Event Timeline
Log In to Comment