Skip to content

Commit e7e78cb

Browse files
theotherjimmymbolivar-nordic
authored andcommitted
tfm: Kconfig: Configure MCUBOOT_DATA_SHARING explicitly
Previously, MCUBOOT_DATA_SHARING was enabled when BL2 was built and when the firmware update partition was present. This is not the only situation that you might be interested in this data sharing. The data sharing now has it's own Kconfig. Further, use of the firmware update partition requires data sharing, so it selects it. Signed-off-by: Jimmy Brisson <[email protected]>
1 parent dd8260c commit e7e78cb

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

modules/trusted-firmware-m/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ if (CONFIG_BUILD_WITH_TFM)
227227
list(APPEND TFM_CMAKE_ARGS -DMCUBOOT_PATH=${ZEPHYR_MCUBOOT_MODULE_DIR})
228228
endif()
229229

230-
if(CONFIG_TFM_BL2 AND CONFIG_TFM_PARTITION_FIRMWARE_UPDATE)
230+
if(CONFIG_TFM_MCUBOOT_DATA_SHARING)
231231
list(APPEND TFM_CMAKE_ARGS -DMCUBOOT_DATA_SHARING=ON)
232232
endif()
233233

modules/trusted-firmware-m/Kconfig.tfm

+6
Original file line numberDiff line numberDiff line change
@@ -234,6 +234,12 @@ config TFM_MCUBOOT_PATH_DOWNLOAD
234234

235235
endchoice
236236

237+
config TFM_MCUBOOT_DATA_SHARING
238+
bool "Share app-specific data between TF-M and MCUBoot"
239+
help
240+
Add sharing of application specific data using the same
241+
shared data area as for the measured boot.
242+
237243
endif # TFM_BL2
238244

239245
config TFM_IPC

modules/trusted-firmware-m/Kconfig.tfm.partitions

+1
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ config TFM_PARTITION_AUDIT_LOG
7676

7777
config TFM_PARTITION_FIRMWARE_UPDATE
7878
bool "Include the secure parition 'Firmware Update'"
79+
select TFM_MCUBOOT_DATA_SHARING
7980
default n
8081
help
8182
Setting this option will cause '-DTFM_PARTITION_FIRMWARE_UPDATE'

0 commit comments

Comments
 (0)