mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
common: add --configure to make configure optional on build
This commit is contained in:
@@ -8,6 +8,7 @@ from shell_helpers import LF
|
||||
class Main(common.BuildCliFunction):
|
||||
def __init__(self):
|
||||
super().__init__()
|
||||
self._add_argument('--configure')
|
||||
self.add_argument(
|
||||
'extra_config_args',
|
||||
default=[],
|
||||
@@ -31,6 +32,7 @@ class Main(common.BuildCliFunction):
|
||||
build_type_cmd = ['--enable-debug', LF]
|
||||
else:
|
||||
build_type_cmd = []
|
||||
if self.env['configure']:
|
||||
self.sh.run_cmd(
|
||||
[
|
||||
os.path.join(self.env['qemu_source_dir'], 'configure'), LF,
|
||||
|
||||
@@ -1588,6 +1588,12 @@ Pass the given compiler flags to all languages (C, C++, Fortran, etc.)
|
||||
'default': False,
|
||||
"help": '''\
|
||||
Force rebuild even if sources didn't change.
|
||||
''',
|
||||
},
|
||||
'--configure': {
|
||||
'default': True,
|
||||
"help": '''\
|
||||
Also run the configuration step during build.
|
||||
''',
|
||||
},
|
||||
'--optimization-level': {
|
||||
|
||||
Reference in New Issue
Block a user