Skip to content

Commit

Permalink
[slc] use daemon-mode for generation
Browse files Browse the repository at this point in the history
This provides a small speed-up when working with SLC

Also, remove the `--clear-cache` option to leverage SLC's SDK component cache
  • Loading branch information
lmnotran committed Jun 26, 2024
1 parent 3413673 commit 570f711
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions script/generate
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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"
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit 570f711

Please sign in to comment.