time all builds and run

This commit is contained in:
Ciro Santilli
2018-09-14 15:53:08 +01:00
parent 435436f714
commit 40b5c5a023
4 changed files with 30 additions and 5 deletions

View File

@@ -6,6 +6,7 @@ import os
import pathlib
import shutil
import subprocess
import time
import common
@@ -23,6 +24,7 @@ disks_dir = os.path.join(common.gem5_system_dir, 'disks')
if args.clean:
common.rmrf(common.gem5_build_dir)
else:
start_time = time.time()
os.makedirs(binaries_dir, exist_ok=True)
os.makedirs(disks_dir, exist_ok=True)
if not os.path.exists(os.path.join(common.gem5_src_dir, '.git')):
@@ -81,3 +83,5 @@ else:
term_src_dir = os.path.join(common.gem5_src_dir, 'util/term')
subprocess.check_call(['make', '-C', term_src_dir])
shutil.copy2(os.path.join(term_src_dir, 'm5term'), common.gem5_m5term)
end_time = time.time()
common.print_time(end_time - start_time)