expand a bunch of options, run and build are done

This commit is contained in:
Ciro Santilli
2018-09-09 10:37:21 +01:00
parent 58de3f7243
commit 0a497bba7a
5 changed files with 390 additions and 343 deletions

6
build
View File

@@ -19,7 +19,7 @@ defaults = {
'kernel_config': [],
'kernel_config_fragment': [],
'kernel_custom_config_file': None,
'kernel_modules_reconfigure': False,
'kernel_modules': False,
'linux_reconfigure': False,
'nproc': None,
'skip_configure': False,
@@ -35,7 +35,7 @@ def main(args, extra_args=None):
args = common.resolve_args(defaults, args, extra_args)
os.makedirs(common.out_dir, exist_ok=True)
extra_make_args = args.extra_make_args.copy()
if args.kernel_modules_reconfigure:
if args.kernel_modules:
extra_make_args.append('kernel_modules-reconfigure')
if args.linux_reconfigure:
extra_make_args.append('linux-reconfigure')
@@ -269,7 +269,7 @@ but requires you to know what you are doing :-)'''
Still uses options explicitly passed with `-C` and `-c` on top of it.'''
)
parser.add_argument(
'-k', '--kernel-modules-reconfigure', default=defaults['kernel_modules_reconfigure'], action='store_true',
'-k', '--kernel-modules', default=defaults['kernel_modules'], action='store_true',
help='Reconfigure and rebuild the kernel modules'
)
parser.add_argument(