build-linux and build-gem5 seem to work

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-12-09 00:00:00 +00:00
parent 1768421dbd
commit 5e20ba833b
33 changed files with 702 additions and 707 deletions

View File

@@ -32,15 +32,15 @@ class QemuComponent(common.Component):
target_list = '{}-softmmu'.format(kwargs['arch'])
self.sh.run_cmd(
[
os.path.join(common.qemu_src_dir, 'configure'), LF,
os.path.join(kwargs['qemu_src_dir'], 'configure'), LF,
'--enable-debug', LF,
'--enable-trace-backends=simple', LF,
'--target-list={}'.format(target_list), LF,
'--enable-sdl', LF,
'--with-sdlabi=2.0', LF,
] +
common.add_newlines(kwargs['extra_config_args']),
extra_paths=[common.ccache_dir],
self.sh.add_newlines(kwargs['extra_config_args']),
extra_paths=[kwargs['ccache_dir']],
cwd=build_dir
)
self.sh.run_cmd(
@@ -53,11 +53,11 @@ class QemuComponent(common.Component):
verbose
),
cwd=build_dir,
extra_paths=[common.ccache_dir],
extra_paths=[kwargs['ccache_dir']],
)
def get_build_dir(self, args):
return common.qemu_build_dir
return kwargs['qemu_build_dir']
if __name__ == '__main__':
QemuComponent().build()