You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -183,6 +189,11 @@ An Mbed OS (NSPE) target must contain the following attributes (in addition to o
183
189
The supported values are `ARMCLANG` and `GNUARM`.
184
190
*`tfm_delivery_dir`: The directory to which TF-M binaries will be copied.
185
191
*`TFM_OUTPUT_EXT`: Optional attribute that indicates the output extension of the TF-M secure binary.
192
+
*`post_binary_hook`:
193
+
*`function`: The target's post binary hook ([class].[method]) in `tools/targets/__init__.py` for image signing, required if the TF-M bootloader support is supported.
194
+
*`secure_image_filename`: The file name of the TF-M secure binary, to be signed by the post binary hook.
195
+
196
+
**Note**: When `inherits` is used, some of attributes are set by the PSA generic target.
186
197
187
198
The following example shows a PSA enabled dual-core target, `PSoC64`:
188
199
@@ -272,8 +283,14 @@ and [porting targets](../porting/porting-the-hal-apis.html)):
272
283
273
284
*`inherits`: PSA generic target `PSA_V8_M`, unless the target has to inherit from
274
285
one of its family targets.
286
+
*`extra_labels`: `TARGET_`[label] paths to enable.
287
+
*`TFM_LATEST`: If the latest release of TF-M is supported by the target.
288
+
*`TFM_V`[major]`_`[minor]: If a legacy release of TF-M supported.
289
+
*`macros_add`: C/C++ macros that are globally set during compilation.
290
+
*`BL2`: If the TF-M bootloader is supported by the target.
291
+
*`MCUBOOT_IMAGE_NUMBER=2`: If the secure and non-secure images are in two separate bootloader slots.
275
292
*`tfm_target_name`: Target name in TF-M.
276
-
*`tfm_bootloader_supported`: If TF-M bootloader is supported by the target.
293
+
*`tfm_bootloader_supported`: If the TF-M bootloader is supported by the target.
@@ -285,6 +302,11 @@ and [porting targets](../porting/porting-the-hal-apis.html)):
285
302
286
303
*`tfm_delivery_dir`: The directory to which TF-M binary will be copied.
287
304
*`TFM_OUTPUT_EXT`: Optional attribute that indicates the output extension of the TF-M secure binary.
305
+
*`post_binary_hook`:
306
+
*`function`: The target's post binary hook ([class].[method]) in `tools/targets/__init__.py` for image signing, required if the TF-M bootloader support is supported.
307
+
*`secure_image_filename`: The file name of the TF-M secure binary, to be signed by the post binary hook.
308
+
309
+
**Note**: When `inherits` is used, some of attributes are set by the PSA generic target.
288
310
289
311
The following example shows a PSA-enabled Armv8-M PSA target, `ARM_MUSCA_A1`:
0 commit comments