Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion virtme/commands/configkernel.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ def make_parser():
default=uname.machine,
help='Target architecture')

parser.add_argument('--custom', action='store', metavar='CUSTOM',
help='Use a custom config snippet file to override specific config options')

g = parser.add_argument_group(title='Mode').add_mutually_exclusive_group()

g.add_argument('--allnoconfig', action='store_true',
Expand Down Expand Up @@ -100,9 +103,15 @@ def main():

arch = architectures.get(args.arch)

custom_conf = []
if args.custom:
with open(args.custom) as fd:
custom_conf = list(fd.readlines())

conf = (_GENERIC_CONFIG +
['# Arch-specific options'] +
arch.config_base())
arch.config_base() +
custom_conf)

archargs = ['ARCH=%s' % shlex.quote(arch.linuxname)]

Expand Down