Allow extra make args to ./build-qemu -- arg0 arg1

configure args are now ./build-qemu --extra-config-args '"aa a" bb'

Also factor out arg names with other builds through _add_argument.

Fix #113.
This commit is contained in:
Ciro Santilli 六四事件 法轮功
2020-03-06 00:00:02 +00:00
parent d934dccecb
commit d1be4b2386
5 changed files with 30 additions and 35 deletions

View File

@@ -33,11 +33,7 @@ Build and run all the gem5 unit tests instead of the gem5 executable.
https://github.com/cirosantilli/linux-kernel-module-cheat-regression#gem5-unit-tests
'''
)
self.add_argument(
'extra_scons_args',
metavar='extra-scons-args',
nargs='*',
)
self._add_argument('extra_make_args')
def build(self):
build_dir = self.get_build_dir()
@@ -141,7 +137,7 @@ https://github.com/cirosantilli/linux-kernel-module-cheat-regression#gem5-unit-t
#'SLICC_HTML=True', LF,
] +
self.sh.add_newlines(targets) +
self.sh.add_newlines(self.env['extra_scons_args'])
self.sh.add_newlines(self.env['extra_make_args'])
),
cwd=self.env['gem5_source_dir'],
extra_env=extra_env,