Hello,

 

I want to bring community attention to a bug fix in build script for NS application:

In the original design we shall have a single CMake target 'tfm_api_ns' prepared and exported by SPE for building NSPE with consistent configuration. At some moment 2 extra targets 'tfm_api_ns_tz' and 'tfm_api_ns_mailbox' were introduced for different S-NS communication methods to be linked to tfm_api_ns on NS side. This created unnecessary NS dependency on SPE configuration and disallows creating NS application working with all platforms.

 

This patch is fixing the issue:

https://review.trustedfirmware.org/c/TF-M/trusted-firmware-m/+/29005

Ideally, we should remove these redundant targets but that will break projects already adjusted and using them. There are 2 approaches to address the issue:

  1. Preferred. Remove the targets and ask dependent projects for adjustment.  (effectively, is 1 line change to stop linking to them).
  2. Keep those targets as empty dummies for compatibility, polluting the code.

 

Please comment and object the removal (approach 1) if it’s critical for your project. I would appreciate your feedback within 2 weeks to make the right decision.

 

Thanks,

Anton