mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
qemu: allow turning -O0 debug build on or off, use -O0 by default
OMG, I was wasting time in ARM all along!!!
This commit is contained in:
@@ -26,14 +26,19 @@ class Main(common.BuildCliFunction):
|
||||
target_list = '{}-linux-user'.format(self.env['arch'])
|
||||
else:
|
||||
target_list = '{}-softmmu'.format(self.env['arch'])
|
||||
if self.env['qemu_build_type'] == 'debug':
|
||||
# https://stackoverflow.com/questions/4689136/debug-qemu-with-gdb
|
||||
build_type_cmd = ['--enable-debug', LF]
|
||||
else:
|
||||
build_type_cmd = []
|
||||
self.sh.run_cmd(
|
||||
[
|
||||
os.path.join(self.env['qemu_source_dir'], 'configure'), LF,
|
||||
'--enable-debug', LF,
|
||||
'--enable-trace-backends=simple', LF,
|
||||
'--target-list={}'.format(target_list), LF,
|
||||
'--enable-sdl', LF,
|
||||
] +
|
||||
build_type_cmd +
|
||||
self.sh.add_newlines(self.env['extra_config_args']),
|
||||
extra_paths=[self.env['ccache_dir']],
|
||||
cwd=build_dir
|
||||
|
||||
Reference in New Issue
Block a user