qemu: use ccache

readme: improve build variants
This commit is contained in:
Ciro Santilli
2018-09-14 16:56:12 +01:00
parent 40b5c5a023
commit 7f81db9a46
4 changed files with 13 additions and 8 deletions

View File

@@ -69,7 +69,8 @@ else:
# TODO cross_compile is ignored because the make does not use CC...
subprocess.check_call(['make', '-C', bootloader64_dir])
shutil.copy2(os.path.join(bootloader64_dir, 'boot_emm.arm64'), binaries_dir)
assert common.run_cmd([
assert common.run_cmd(
[
'scons',
# TODO factor with build.
'-j', str(multiprocessing.cpu_count()),
@@ -78,7 +79,7 @@ else:
] +
args.extra_scons_args,
cwd=common.gem5_src_dir,
extra_env={'PATH': '/usr/lib/ccache:' + os.environ['PATH']},
extra_env={'PATH': common.ccache_dir + ':' + os.environ['PATH']},
) == 0
term_src_dir = os.path.join(common.gem5_src_dir, 'util/term')
subprocess.check_call(['make', '-C', term_src_dir])