zephyr/samples/tfm_integration
Torsten Rasmussen b671cf7279 cmake: tfm: support for custom CMake args when building TF-M
This commit allows a subsystem to specify additional CMake flags to be
given to the TF-M build.

The additional CMake flags can be provided through the TFM_CMAKE_OPTIONS
property on the zephyr_property_target.
Using the zephyr_property_target allows Zephyr modules to append extra
TFM_CMAKE_OPTIONS regardless of the CMake processing order.

It splits the ExternalProject_Add into a two step process with the CMake
invocation executed using add_custom_target() and the build process
using ExternalProject_Add(). The reason for this split is because CMake
generator expressions passed through ExternalProject_Add to CMake will
quoted so that `$<TARGET_PROPERTY:<tgt>,<prop>>` becomes
`"-DFOO=bar -DBAR=foo"` instead of `-DFOO=bar -DBAR=foo` which again
results in CMake failures.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2021-05-07 13:09:54 +02:00
..
psa_level_1 boards: arm: Add Laird Connectivity BL5340 DVK platform 2021-05-07 09:06:27 +02:00
tfm_ipc boards: arm: Add Laird Connectivity BL5340 DVK platform 2021-05-07 09:06:27 +02:00
tfm_psa_test samples: Add a sample for running PSA tests 2021-04-20 16:13:40 +02:00
tfm_regression_test boards: arm: Add Laird Connectivity BL5340 DVK platform 2021-05-07 09:06:27 +02:00
tfm_integration.rst cmake: tfm: support for custom CMake args when building TF-M 2021-05-07 13:09:54 +02:00