mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-24 21:54:01 +00:00
buildman: Start the clock when the build starts
The Kconfig and maintainer processing can take a while, sometimes 5 seconds or more. This skews the timing printed by buildmand when the build completes. Start the clock when the threads start to avoid this problem. Signed-off-by: Simon Glass <sjg@chromium.org> Suggested-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
283dcb63cb
commit
2ce06f56cb
1 changed files with 2 additions and 1 deletions
|
@ -328,7 +328,7 @@ class Builder:
|
||||||
self._build_period_us = None
|
self._build_period_us = None
|
||||||
self._complete_delay = None
|
self._complete_delay = None
|
||||||
self._next_delay_update = datetime.now()
|
self._next_delay_update = datetime.now()
|
||||||
self._start_time = datetime.now()
|
self._start_time = None
|
||||||
self._step = step
|
self._step = step
|
||||||
self._error_lines = 0
|
self._error_lines = 0
|
||||||
self.no_subdirs = no_subdirs
|
self.no_subdirs = no_subdirs
|
||||||
|
@ -1778,6 +1778,7 @@ class Builder:
|
||||||
self._prepare_output_space()
|
self._prepare_output_space()
|
||||||
if not self._ide:
|
if not self._ide:
|
||||||
tprint('\rStarting build...', newline=False)
|
tprint('\rStarting build...', newline=False)
|
||||||
|
self._start_time = datetime.now()
|
||||||
self.setup_build(board_selected, commits)
|
self.setup_build(board_selected, commits)
|
||||||
self.process_result(None)
|
self.process_result(None)
|
||||||
self.thread_exceptions = []
|
self.thread_exceptions = []
|
||||||
|
|
Loading…
Reference in a new issue