mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
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:
14
build-m5
14
build-m5
@@ -14,12 +14,12 @@ class M5Component(common.Component):
|
||||
else:
|
||||
arch = args.arch
|
||||
return [
|
||||
'make',
|
||||
'-j', str(args.nproc),
|
||||
'-f', 'Makefile.{}'.format(arch),
|
||||
'CC={}'.format(cc),
|
||||
'LD={}'.format(ld),
|
||||
'PWD={}'.format(common.gem5_m5_src_dir),
|
||||
'make', common.Newline,
|
||||
'-j', str(args.nproc), common.Newline,
|
||||
'-f', 'Makefile.{}'.format(arch), common.Newline,
|
||||
'CC={}'.format(cc), common.Newline,
|
||||
'LD={}'.format(ld), common.Newline,
|
||||
'PWD={}'.format(common.gem5_m5_src_dir), common.Newline,
|
||||
]
|
||||
|
||||
def do_build(self, args):
|
||||
@@ -36,7 +36,7 @@ class M5Component(common.Component):
|
||||
|
||||
def clean(self, args):
|
||||
common.run_cmd(
|
||||
self.get_make_cmd(args) + ['clean'],
|
||||
self.get_make_cmd(args) + ['clean', common.Newline],
|
||||
cwd=common.gem5_m5_src_dir,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user