mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 02:05:57 +01:00
echo key configs as bash commands
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user