mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
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:
13
build-qemu
13
build-qemu
@@ -9,12 +9,8 @@ class Main(common.BuildCliFunction):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self._add_argument('--configure')
|
||||
self.add_argument(
|
||||
'extra_config_args',
|
||||
default=[],
|
||||
metavar='extra-config-args',
|
||||
nargs='*'
|
||||
)
|
||||
self.add_argument('--extra-config-args')
|
||||
self._add_argument('extra_make_args')
|
||||
|
||||
def build(self):
|
||||
build_dir = self.get_build_dir()
|
||||
@@ -41,7 +37,7 @@ class Main(common.BuildCliFunction):
|
||||
'--enable-sdl', LF,
|
||||
] +
|
||||
build_type_cmd +
|
||||
self.sh.add_newlines(self.env['extra_config_args']),
|
||||
self.sh.shlex_split(self.env['extra_config_args']),
|
||||
extra_paths=[self.env['ccache_dir']],
|
||||
cwd=build_dir
|
||||
)
|
||||
@@ -52,7 +48,8 @@ class Main(common.BuildCliFunction):
|
||||
'-j', str(self.env['nproc']), LF,
|
||||
|
||||
] +
|
||||
verbose
|
||||
verbose +
|
||||
self.sh.add_newlines(self.env['extra_make_args'])
|
||||
),
|
||||
cwd=build_dir,
|
||||
extra_paths=[self.env['ccache_dir']],
|
||||
|
||||
Reference in New Issue
Block a user