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:
Ciro Santilli 六四事件 法轮功
2018-10-28 00:00:07 +00:00
parent b8dd2e3215
commit 14f201f26d
2 changed files with 48 additions and 49 deletions

View File

@@ -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(