mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
build-linux: fix --verbose
This commit is contained in:
10
build-linux
10
build-linux
@@ -65,6 +65,10 @@ Configure the kernel, but don't build it.
|
|||||||
cc = '{} {}'.format(ccache, gcc)
|
cc = '{} {}'.format(ccache, gcc)
|
||||||
else:
|
else:
|
||||||
cc = gcc
|
cc = gcc
|
||||||
|
if args.verbose:
|
||||||
|
verbose = ['V=1']
|
||||||
|
else:
|
||||||
|
verbose = []
|
||||||
common_make_args = [
|
common_make_args = [
|
||||||
'make', common.Newline,
|
'make', common.Newline,
|
||||||
'-j', str(args.nproc), common.Newline,
|
'-j', str(args.nproc), common.Newline,
|
||||||
@@ -72,11 +76,7 @@ Configure the kernel, but don't build it.
|
|||||||
'CROSS_COMPILE={}'.format(prefix), common.Newline,
|
'CROSS_COMPILE={}'.format(prefix), common.Newline,
|
||||||
'CC={}'.format(cc), common.Newline,
|
'CC={}'.format(cc), common.Newline,
|
||||||
'O={}'.format(build_dir), common.Newline,
|
'O={}'.format(build_dir), common.Newline,
|
||||||
]
|
] + verbose
|
||||||
if args.verbose:
|
|
||||||
verbose = ['V=1']
|
|
||||||
else:
|
|
||||||
verbose = []
|
|
||||||
if args.custom_config_file is not None:
|
if args.custom_config_file is not None:
|
||||||
if not os.path.exists(args.custom_config_file):
|
if not os.path.exists(args.custom_config_file):
|
||||||
raise Exception('config fragment file does not exist: {}'.format(args.custom_config_file))
|
raise Exception('config fragment file does not exist: {}'.format(args.custom_config_file))
|
||||||
|
|||||||
Reference in New Issue
Block a user