Skip to content

Commit 06847b5

Browse files
wearyzenkartben
authored andcommitted
modules: tf-m: fix Ethos-U Cmake warnings
This is to fix the below compiler warning from TF-M builds that don't use the Ethos-U driver. ``` CMake Warning: Manually-specified variables were not used by the project: ETHOS_DRIVER_PATH ``` Signed-off-by: Sudan Landge <sudan.landge@arm.com>
1 parent 413c06b commit 06847b5

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

modules/trusted-firmware-m/CMakeLists.txt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,9 @@ if (CONFIG_BUILD_WITH_TFM)
253253

254254
list(APPEND TFM_CMAKE_ARGS -DTFM_TESTS_REVISION_CHECKS=OFF)
255255

256-
list(APPEND TFM_CMAKE_ARGS -DETHOS_DRIVER_PATH=${CONFIG_TFM_ETHOS_DRIVER_PATH_LOCAL})
256+
if(CONFIG_TFM_ETHOS_DRIVER_PATH_LOCAL)
257+
list(APPEND TFM_CMAKE_ARGS -DETHOS_DRIVER_PATH=${CONFIG_TFM_ETHOS_DRIVER_PATH_LOCAL})
258+
endif()
257259

258260
file(MAKE_DIRECTORY ${TFM_BINARY_DIR})
259261
add_custom_target(tfm_cmake

modules/trusted-firmware-m/Kconfig.tfm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -312,6 +312,7 @@ endchoice
312312

313313
config TFM_ETHOS_DRIVER_PATH_LOCAL
314314
string "Path to a locally available Ethos-U driver or an empty string"
315+
depends on SOC_SERIES_MPS3
315316
default "${ZEPHYR_HAL_ETHOS_U_MODULE_DIR}"
316317
help
317318
Path to a locally available Ethos-U driver to be used for TF-M builds or

0 commit comments

Comments
 (0)