Skip to content

Commit

Permalink
vng: --kconfig: override the .config
Browse files Browse the repository at this point in the history
It seems counter-intuitive not to do anything when 'vng --kconfig' is
called and a .config file is present.

So now, the .config is overridden when the '--kconfig' option is passed.

Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
  • Loading branch information
matttbe committed Mar 19, 2024
1 parent 0f936c6 commit 7854354
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions virtme_ng/run.py
Expand Up @@ -157,7 +157,7 @@ def make_parser():
"--kconfig",
"-k",
action="store_true",
help="Only generate the kernel .config without building/running anything",
help="Only override the kernel .config without building/running anything",
)

parser.add_argument(
Expand Down Expand Up @@ -567,7 +567,7 @@ def config(self, args):
"""Perform a make config operation on a kernel source directory."""
arch = args.arch
cmd = "virtme-configkernel --defconfig"
if not args.force:
if not args.force and not args.kconfig:
cmd += " --no-update"
if arch is not None:
if arch not in ARCH_MAPPING:
Expand Down

0 comments on commit 7854354

Please sign in to comment.