manually encode newlines on all printed commands

This way we group key value arguments: e.g.:

    make \
    -j 8 \
    all

instead of:

    make \
    -j \
    8 \
    all

and reach CLI nirvana, while also subtly breaking several commands due to
lack of testing.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-11-04 00:00:00 +00:00
parent 196dd616ff
commit 8fb9db3931
16 changed files with 263 additions and 211 deletions

View File

@@ -32,22 +32,22 @@ class QemuComponent(common.Component):
target_list = '{}-softmmu'.format(args.arch)
common.run_cmd(
[
os.path.join(common.qemu_src_dir, 'configure'),
'--enable-debug',
'--enable-trace-backends=simple',
'--target-list={}'.format(target_list),
'--enable-sdl',
'--with-sdlabi=2.0',
os.path.join(common.qemu_src_dir, 'configure'), common.Newline,
'--enable-debug', common.Newline,
'--enable-trace-backends=simple', common.Newline,
'--target-list={}'.format(target_list), common.Newline,
'--enable-sdl', common.Newline,
'--with-sdlabi=2.0', common.Newline,
] +
args.extra_config_args,
common.add_newlines(args.extra_config_args),
extra_paths=[common.ccache_dir],
cwd=build_dir
)
common.run_cmd(
(
[
'make',
'-j', str(args.nproc),
'make', common.Newline,
'-j', str(args.nproc), common.Newline,
] +
verbose