Skip to content

Commit a33d174

Browse files
committed
modules: CMSIS_6: fix path and use it for TF-M
What is the change? Fix the path for module CMSIS_6 and use CMSIS_6 module for TF-M. Why do we need this change? After Zephyr updated TF-M to v2.1.0, bb037d4469842c96f5872b271490aceb0734d965 added a local copy of CMSIS_6 to stop Zephyr's TF-M from downloading the CMSIS_6 from upstream. The correct way would be to have CMSIS_6 as a module in Zephyr (which we have now) and pass the path of this module to TF-M. A fork of the upstream CMSIS_6 was added to Zephyr however, the path in west.yml makes it a lib and not a module. Fixing the path generates the ZEPHYR_CMSIS_6_MODULE_DIR symbol which can now be used to pass to TF-M and the copy in TF-M would no longer be required. Signed-off-by: Sudan Landge <[email protected]>
1 parent ed9bed1 commit a33d174

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

modules/trusted-firmware-m/CMakeLists.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ if (CONFIG_BUILD_WITH_TFM)
289289
${TFM_CMAKE_ARGS}
290290
$<GENEX_EVAL:$<TARGET_PROPERTY:zephyr_property_target,TFM_CMAKE_OPTIONS>>
291291
-DMBEDCRYPTO_PATH=$<IF:$<BOOL:$<TARGET_PROPERTY:zephyr_property_target,TFM_MBEDCRYPTO_PATH>>,$<TARGET_PROPERTY:zephyr_property_target,TFM_MBEDCRYPTO_PATH>,${ZEPHYR_MBEDTLS_MODULE_DIR}>
292-
-DCMSIS_PATH=${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}/platform/ext/cmsis
292+
-DCMSIS_PATH=${ZEPHYR_CMSIS_6_MODULE_DIR}
293293
${ZEPHYR_TRUSTED_FIRMWARE_M_MODULE_DIR}
294294
WORKING_DIRECTORY ${TFM_BINARY_DIR}
295295
COMMAND_EXPAND_LISTS

west.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,10 @@ manifest:
129129
path: modules/lib/cmsis-nn
130130
- name: cmsis_6
131131
repo-path: CMSIS_6
132-
revision: 783317a3072554acbac86cca2ff24928cbf98d30
133-
path: modules/lib/cmsis_6
132+
revision: pull/3/head
133+
path: modules/hal/cmsis_6
134+
groups:
135+
- hal
134136
- name: edtt
135137
revision: b9ca3c7030518f07b7937dacf970d37a47865a76
136138
path: tools/edtt
@@ -358,7 +360,7 @@ manifest:
358360
groups:
359361
- tee
360362
- name: trusted-firmware-m
361-
revision: e2288c13ee0abc16163186523897e7910b03dd31
363+
revision: pull/132/head
362364
path: modules/tee/tf-m/trusted-firmware-m
363365
groups:
364366
- tee

0 commit comments

Comments
 (0)