Skip to content

Commit

Permalink
virtme-ng: fix incorrect cross-compile override
Browse files Browse the repository at this point in the history
Properly check if the --cross-compile option has been specified, so that
we can correctly use the built-in cross-compile prefixes.

This fixes the cross-architecture builds without using the
--cross-compile option.

Fixes: e12dfb2 ("Add cross-compile argument")
Signed-off-by: Andrea Righi <[email protected]>
  • Loading branch information
arighi committed Oct 4, 2024
1 parent 7ff3ed5 commit 2fd590c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virtme_ng/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -752,7 +752,7 @@ def make(self, args):
arg_fail(f"unsupported architecture: {arch}")
target = ARCH_MAPPING[arch]["kernel_target"]
cross_compile = ARCH_MAPPING[arch]["cross_compile"]
if args.cross_compile != "":
if args.cross_compile:
cross_compile = args.cross_compile

cross_arch = ARCH_MAPPING[arch]["linux_name"]
Expand Down

0 comments on commit 2fd590c

Please sign in to comment.