From 570f7117aeacbe21f9ac415b130aa846d4f576d9 Mon Sep 17 00:00:00 2001 From: Mason Tran Date: Tue, 28 May 2024 14:22:18 -0400 Subject: [PATCH] [slc] use daemon-mode for generation This provides a small speed-up when working with SLC Also, remove the `--clear-cache` option to leverage SLC's SDK component cache --- script/generate | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/script/generate b/script/generate index 606e4c94..4691db1c 100755 --- a/script/generate +++ b/script/generate @@ -91,7 +91,7 @@ trust_sdk_and_extensions() set -x # Trust the Gecko SDK submodule - run_slc -v 1 signature trust --sdk "${sdk_dir}" -data "${openthread_slc_data}" + run_slc --daemon -v 1 signature trust --sdk "${sdk_dir}" -data "${openthread_slc_data}" # Ensure GSDK extension folder exists mkdir -p "${sdk_dir}/extension" @@ -138,7 +138,7 @@ trust_sdk_and_extensions() fi # Trust the extension - run_slc -v 1 signature trust --sdk "${sdk_dir}" -extpath "${extension_symlink}" -data "${openthread_slc_data}" + run_slc --daemon -v 1 signature trust --sdk "${sdk_dir}" -extpath "${extension_symlink}" -data "${openthread_slc_data}" done ls -alh "${sdk_dir}/extension" @@ -215,10 +215,9 @@ generate() echo "======================================================================" set -x - run_slc -v 1 generate \ + run_slc --daemon -v 1 generate \ -data "${openthread_slc_data?}" \ --sdk="${sdk_dir?}" \ - --clear-cache \ --project-file="${slcp}" \ --project-name="${project_name}" \ --output-type=makefile \