cmake: add tfm / tfa image information to build info
Support for list of images in build info was added with commit
4061311da3
and is used by sysbuild.
Zephyr itself also uses CMake's External Project feature when including
TF-M or TF-A in a Zephyr build.
Populate build info with TF-M / TF-A information when said image is
included in the build.
Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
parent
f12ba46175
commit
2d5a81035a
2 changed files with 6 additions and 0 deletions
|
@ -8,6 +8,9 @@ if (CONFIG_BUILD_WITH_TFA)
|
||||||
|
|
||||||
include(ExternalProject)
|
include(ExternalProject)
|
||||||
|
|
||||||
|
set(tfa_image_info MAP "name: tfa, source-dir: ${ZEPHYR_TRUSTED_FIRMWARE_A_MODULE_DIR}")
|
||||||
|
build_info(images VALUE ${tfa_image_info})
|
||||||
|
|
||||||
ExternalProject_Add(
|
ExternalProject_Add(
|
||||||
tfa
|
tfa
|
||||||
SOURCE_DIR ${ZEPHYR_TRUSTED_FIRMWARE_A_MODULE_DIR}
|
SOURCE_DIR ${ZEPHYR_TRUSTED_FIRMWARE_A_MODULE_DIR}
|
||||||
|
|
|
@ -315,6 +315,9 @@ if (CONFIG_BUILD_WITH_TFM)
|
||||||
# threads. Which is num_cores+2 on Ninja and MAKEFLAGS with Make.
|
# threads. Which is num_cores+2 on Ninja and MAKEFLAGS with Make.
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
set(tfm_image_info MAP "name: tfm, source-dir: ${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}")
|
||||||
|
build_info(images VALUE ${tfm_image_info})
|
||||||
|
|
||||||
ExternalProject_Add(
|
ExternalProject_Add(
|
||||||
tfm
|
tfm
|
||||||
SOURCE_DIR ${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}
|
SOURCE_DIR ${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue