relase: get failed extract-vmlinux automation back working

Only the command is back in business, but it does not work:
https://github.com/cirosantilli/linux-kernel-module-cheat/issues/79
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2019-07-14 00:00:04 +00:00
parent 4c71ac5072
commit 7b0ac771dc
7 changed files with 156 additions and 146 deletions

14
run
View File

@@ -415,8 +415,18 @@ Extra options to append at the end of the emulator command line.
self.env['baremetal'] is None and
self.env['userland'] is None
):
# This is to run gem5 from a prebuilt download.
self.sh.run_cmd([self.env['extract_vmlinux'], self.env['linux_image']])
# This is an attempte to run gem5 from a prebuilt download
# but it is not working:
# https://github.com/cirosantilli/linux-kernel-module-cheat/issues/79
self.sh.check_output(
[
self.env['extract_vmlinux'],
self.env['linux_image']
],
out_file=self.env['image'],
show_cmd=True,
show_stdout=False
)
else:
raise_image_not_found()
else: