From: Daan De Meyer Date: Fri, 29 Nov 2024 08:37:45 +0000 (+0100) Subject: Skip tools checks for build step if output format is none X-Git-Tag: v25~135^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=880945d2d2c688913bfda39cfbd86c3aa6878d33;p=thirdparty%2Fmkosi.git Skip tools checks for build step if output format is none If we're only running things up until the build scripts we're not going to be running any of the tools we check for so skip the checks in that case. --- diff --git a/mkosi/__init__.py b/mkosi/__init__.py index 4cc627cc5..198131616 100644 --- a/mkosi/__init__.py +++ b/mkosi/__init__.py @@ -2576,6 +2576,9 @@ def check_ukify( def check_tools(config: Config, verb: Verb) -> None: if verb == Verb.build: + if config.output_format == OutputFormat.none: + return + if config.bootable != ConfigFeature.disabled: check_tool(config, "depmod", reason="generate kernel module dependencies")