Skip to content

Commit

Permalink
Add codes to check time for openembedded#32
Browse files Browse the repository at this point in the history
  • Loading branch information
gatekeeper-tvsw committed Jun 3, 2019
1 parent 4b32784 commit 2abce7f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions meta/lib/oe/rootfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -926,16 +926,22 @@ def _create(self):
if self.progress_reporter:
self.progress_reporter.next_stage()

from datetime import datetime
start_time = datetime.now()
for pkg_type in self.install_order:
if pkg_type in pkgs_to_install:
# For multilib, we perform a sanity test before final install
# If sanity test fails, it will automatically do a bb.fatal()
# and the installation will stop
if pkg_type == Manifest.PKG_TYPE_MULTILIB:
self._multilib_test_install(pkgs_to_install[pkg_type])
bb.note("OpkgRootfs._create: diff = %s, location = %s, %s" % (str(datetime.now() - start_time), "self._multilib_test_install", pkg_type))


self.pm.install(pkgs_to_install[pkg_type],
[False, True][pkg_type == Manifest.PKG_TYPE_ATTEMPT_ONLY])
bb.note("OpkgRootfs._create: diff = %s, location = %s, %s" % (str(datetime.now() - start_time), "self.pm.install", pkg_type))
bb.note("OpkgRootfs._create: diff = %s, location = %s" % (str(datetime.now() - start_time), "package_install"))

if self.progress_reporter:
self.progress_reporter.next_stage()
Expand Down

0 comments on commit 2abce7f

Please sign in to comment.