Hi,

 

I worked out a patch to make the Manifest Tool (tfm_parse_manifest_list.py) aware of the Secure Partition status when building.

Currently, the tool generates everything and then the Build System picks up the files needed.

With the development of FF-M 1.1 feature, we need the tool to be aware of the Secure Partition enabled status to generate SPM configurations.

 

The patch make use of the feature of CMake command configure_file which substitutes variable values referenced as @VAR@ or ${VAR}.

It requires the “conditional” attributes in manifest lists to be surrounded by “@” for “${}”.

Then when you disable some Partition for building, the tool will not generate anything for that Partition such as PID/SID and TF-M Partition load info.

 

So please out of tree Secure Partition manifest lists do the corresponding change to make the tool aware of that any Partitions are DISABLED.

The tool currently only takes conditional value “OFF” or “FALSE” as Partitions being disabled, all other values are treated as enabled.

This means if you do not make the change in the manifest list, the tool treats all the partitions as enabled always.

 

Best Regards,

Kevin