mirror of
https://github.com/cirosantilli/linux-kernel-module-cheat.git
synced 2026-01-23 10:15:57 +01:00
build-buildroot: remove --buildroot- prefix after build-linux split
build-linux: don't automtaically add CONFIG_, e.g. disable is done with comment.
This commit is contained in:
@@ -10,9 +10,8 @@ class LinuxComponent(common.Component):
|
||||
parser.add_argument(
|
||||
'--config', default=[], action='append',
|
||||
help='''\
|
||||
Add a single kernel config configs to the current build.
|
||||
The `CONFIG_` prefix is added automatically. Sample values:
|
||||
'FORTIFY_SOURCE=y', `KGDB=n`. Can be used multiple times to add multiple
|
||||
Add a single kernel config configs to the current build. Sample value:
|
||||
'CONFIG_FORTIFY_SOURCE=y'. Can be used multiple times to add multiple
|
||||
configs. Takes precedence over any config files.
|
||||
'''
|
||||
)
|
||||
@@ -91,7 +90,7 @@ Configure the kernel, but don't build it.
|
||||
config_fragments.extend(args.config_fragment)
|
||||
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))
|
||||
cli_config_str = '\n'.join(args.config)
|
||||
common.write_string_to_file(cli_config_fragment_path, cli_config_str)
|
||||
config_fragments.append(cli_config_fragment_path)
|
||||
common.cp(
|
||||
|
||||
Reference in New Issue
Block a user