Skip to content

Commit 2d5a810

Browse files
tejlmandkartben
authored andcommitted
cmake: add tfm / tfa image information to build info
Support for list of images in build info was added with commit 4061311 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 <[email protected]>
1 parent f12ba46 commit 2d5a810

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

modules/trusted-firmware-a/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ if (CONFIG_BUILD_WITH_TFA)
88

99
include(ExternalProject)
1010

11+
set(tfa_image_info MAP "name: tfa, source-dir: ${ZEPHYR_TRUSTED_FIRMWARE_A_MODULE_DIR}")
12+
build_info(images VALUE ${tfa_image_info})
13+
1114
ExternalProject_Add(
1215
tfa
1316
SOURCE_DIR ${ZEPHYR_TRUSTED_FIRMWARE_A_MODULE_DIR}

modules/trusted-firmware-m/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -315,6 +315,9 @@ if (CONFIG_BUILD_WITH_TFM)
315315
# threads. Which is num_cores+2 on Ninja and MAKEFLAGS with Make.
316316
endif()
317317

318+
set(tfm_image_info MAP "name: tfm, source-dir: ${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}")
319+
build_info(images VALUE ${tfm_image_info})
320+
318321
ExternalProject_Add(
319322
tfm
320323
SOURCE_DIR ${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}

0 commit comments

Comments
 (0)