From 280dca92b587c38617a888ab00dd80875b91a762 Mon Sep 17 00:00:00 2001 From: Marc Herbert Date: Tue, 6 Dec 2022 20:47:20 +0000 Subject: [PATCH] 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 --- scripts/xtensa-build-zephyr.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/xtensa-build-zephyr.py b/scripts/xtensa-build-zephyr.py index 694aa2467..c193dbd79 100755 --- a/scripts/xtensa-build-zephyr.py +++ b/scripts/xtensa-build-zephyr.py @@ -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]