mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
dry run for all common
This commit is contained in:
@@ -20,7 +20,8 @@ args = common.setup(parser)
|
||||
if args.clean:
|
||||
common.rmrf(common.linux_build_dir)
|
||||
else:
|
||||
start_time = time.time()
|
||||
if not common.dry_run:
|
||||
start_time = time.time()
|
||||
os.makedirs(common.linux_build_dir, exist_ok=True)
|
||||
shutil.copy2(
|
||||
os.path.join(common.linux_config_dir, 'buildroot-{}'.format(args.arch)),
|
||||
@@ -82,5 +83,6 @@ else:
|
||||
),
|
||||
**common_args,
|
||||
) == 0
|
||||
end_time = time.time()
|
||||
common.print_time(end_time - start_time)
|
||||
if not common.dry_run:
|
||||
end_time = time.time()
|
||||
common.print_time(end_time - start_time)
|
||||
|
||||
Reference in New Issue
Block a user