echo key configs as bash commands

This commit is contained in:
Ciro Santilli 六四事件 法轮功
2018-10-25 00:00:00 +00:00
parent 21627ff9d8
commit 98d2c83317
3 changed files with 22 additions and 13 deletions

View File

@@ -92,8 +92,7 @@ Configure the kernel, but don't build it.
if args.config != []:
cli_config_fragment_path = os.path.join(build_dir, 'lkmc_cli_config_fragment')
cli_config_str = '\n'.join(map(lambda x: 'CONFIG_' + x, args.config))
with open(cli_config_fragment_path, 'w') as cli_config_fragment_cli:
cli_config_fragment_cli.write(cli_config_str)
common.write_string_to_file(cli_config_fragment_path, cli_config_str)
config_fragments.append(cli_config_fragment_path)
common.cp(
base_config_file,