Hi Tomasz,

 

Any package that is downloaded using fetch_remote_library() has a cmake variable set to “DOWNLOAD”. For example, lib/ext/qcbor/CMakeLists.txt sets QCBOR_PATH to “DOWNLOAD”. If you set that to point to a pre-downloaded package, it should skip the download step. I don’t know whether that helps with anything ST-specific, but it should help with all the platform-independent stuff.

 

Chris

 

From: Tomasz Jastrzębski via TF-M <tf-m@lists.trustedfirmware.org>
Sent: Tuesday, February 27, 2024 12:45 PM
To: tf-m@lists.trustedfirmware.org
Subject: [TF-M] Build without re-downloading packages?

 

Caution: This e-mail originated outside Infineon Technologies. Do not click on links or open attachments unless you validate it is safe.

 

Hi All,

 

Since ST platform seems to be supported only passively, I try to adapt tf-m for the new ST U5Axx and U5Gxx MPUs with 4MB flash on my own.
It does not come easy since some things are hardcoded and new HAL version is required while breaking HAL changes have been introduced, but this is not the reason why I make this post.

 

Is there any easy way, I mean, some cmake switch, which would allow for a full rebuild without redownloading the required packages?

Since clean rebuild from scratch takes time and I need to do it frequently while my Internet connection currently is not super-fast and stable such option would be the most helpful.

 

Kind regards,

Tomasz