doc: tfm: Document how to pass list arguments to the TF-M build system

Document how to pass list arguments to the TF-M build system.

fixes: #53556

Signed-off-by: Joakim Andersson <joakim.andersson@nordicsemi.no>
This commit is contained in:
Joakim Andersson 2023-01-06 14:16:55 +01:00 committed by Stephanos Ioannidis
parent 4c90d05452
commit cc8493c3ba
1 changed files with 12 additions and 0 deletions

View File

@ -122,6 +122,18 @@ following CMake snippet in your CMakeLists.txt file.
options. Also CMake generator expressions are supported, such as
``$<1:-DFOO=bar>``
Since ``TFM_CMAKE_OPTIONS`` is a list argument it will be expanded before it is
passed to the TF-M build system.
Options that have list arguments must therefore be properly escaped to avoid
being expanded as a list.
.. code-block:: cmake
set_property(TARGET zephyr_property_target
APPEND PROPERTY TFM_CMAKE_OPTIONS
-DFOO="bar\\\;baz"
)
Footprint and Memory Usage
**************************