mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-28 12:34:26 +01:00
args -> kwargs
This commit is contained in:
18
build-m5
18
build-m5
@@ -9,17 +9,17 @@ class M5Component(common.Component):
|
||||
allowed_toolchains = ['buildroot']
|
||||
cc = common.get_toolchain_tool('gcc', allowed_toolchains=allowed_toolchains)
|
||||
ld = common.get_toolchain_tool('ld', allowed_toolchains=allowed_toolchains)
|
||||
if args.arch == 'x86_64':
|
||||
if kwargs['arch'] == 'x86_64':
|
||||
arch = 'x86'
|
||||
else:
|
||||
arch = args.arch
|
||||
arch = kwargs['arch']
|
||||
return [
|
||||
'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_source_dir), common.Newline,
|
||||
'make', LF,
|
||||
'-j', str(kwargs['nproc']), LF,
|
||||
'-f', 'Makefile.{}'.format(arch), LF,
|
||||
'CC={}'.format(cc), LF,
|
||||
'LD={}'.format(ld), LF,
|
||||
'PWD={}'.format(common.gem5_m5_source_dir), LF,
|
||||
]
|
||||
|
||||
def do_build(self, args):
|
||||
@@ -36,7 +36,7 @@ class M5Component(common.Component):
|
||||
|
||||
def clean(self, args):
|
||||
self.sh.run_cmd(
|
||||
self.get_make_cmd(args) + ['clean', common.Newline],
|
||||
self.get_make_cmd(args) + ['clean', LF],
|
||||
cwd=common.gem5_m5_source_dir,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user