Skip to content

Commit

Permalink
config: override the kernel config if asked
Browse files Browse the repository at this point in the history
When '--defconfig' is used (or --allnoconfig), the kernel config is
supposed to be overridden. It was only done if there was no .config
file.

Now the kernel config is always overridden if asked.

Fixes: 6ade5a7 ("virtme: improve configkernel")
Signed-off-by: Matthieu Baerts (NGI0) <matttbe@kernel.org>
  • Loading branch information
matttbe committed Mar 18, 2024
1 parent d63552c commit 2f07be9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtme/commands/configkernel.py
Expand Up @@ -306,7 +306,7 @@ def do_it():
if config_dir and os.path.isdir(config_dir):
config = os.path.join(config_dir, config)

if not os.path.exists(config):
if maketarget is not None or not os.path.exists(config):
# Set up an initial config
if maketarget is None:
maketarget = arch.defconfig_target
Expand Down

0 comments on commit 2f07be9

Please sign in to comment.