xtensa-build-zephyr.py: build rimage with -GNinja by default

This saves a couple seconds when building from scratch on Linux.

On Linux the default CMake generator is "Makefiles" which is _not_
parallel by default.

Thanks to the previous commit it's still possible to manually switch to
"Makefiles" if desired.

Signed-off-by: Marc Herbert <marc.herbert@intel.com>
This commit is contained in:
Marc Herbert 2022-12-06 20:47:20 +00:00 committed by Liam Girdwood
parent 2fcab330b9
commit 280dca92b5
1 changed files with 1 additions and 1 deletions

View File

@ -614,7 +614,7 @@ def build_platforms():
)
# CMake build rimage module
if not (pathlib.Path(west_top) / rimage_dir_name / "CMakeCache.txt").is_file():
execute_command(["cmake", "-B", rimage_dir_name,
execute_command(["cmake", "-B", rimage_dir_name, "-G", "Ninja",
"-S", str(rimage_source_dir)],
cwd=west_top)
rimage_build_cmd = ["cmake", "--build", rimage_dir_name]