Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vng: override kconfig with '--force' #96

Merged
merged 2 commits into from Mar 20, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
7 changes: 5 additions & 2 deletions virtme_ng/run.py
Expand Up @@ -408,7 +408,8 @@ def make_parser():
"--force",
action="store_true",
help="Force reset git repository to target branch or commit "
"(warning: this may drop uncommitted changes)",
"(warning: this may drop uncommitted changes), "
"and force kernel config override",
)

parser.add_argument(
Expand Down Expand Up @@ -565,7 +566,9 @@ def checkout(self, args):
def config(self, args):
"""Perform a make config operation on a kernel source directory."""
arch = args.arch
cmd = "virtme-configkernel --defconfig --no-update"
cmd = "virtme-configkernel --defconfig"
if not args.force:
cmd += " --no-update"
if arch is not None:
if arch not in ARCH_MAPPING:
arg_fail(f"unsupported architecture: {arch}")
Expand Down