Skip to content
Commit 0b1329dc authored by Lingkai Dong's avatar Lingkai Dong Committed by Rob Walton
Browse files

TF-M: Use FetchContent for fetching



Previously, we used `ExternalProject` to both fetch and build TF-M, and
fetching happened at build time. Now we switch to `FetchContent` for the
fetching step, because
* it fetches code during configuration instead of build, and no time is
wasted contacting the git server on every rebuild
* a local copy of a component can be used, saving time and disk space
and allowing a modified version to be used

To use a local copy of TF-M, pass

    -D FETCHCONTENT_SOURCE_DIR_TF-M=<path-to-local-TF-M>

This has been added to the documentation.

Signed-off-by: Lingkai Dong's avatarLingkai Dong <lingkai.dong@arm.com>
parent b8cf4811
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment