modules: avoid fetching external repo in TF-M
What is changed? - Use the updated TF-M that is compatible with the Zephyr's latest Ethos-U driver repo. - Change the default behavior of TF-M builds to use Ethos driver locally fetched by Zephyr, using west update, instead of downloading it from external repo. Why is this change required? - This is to be inline with Zephyr's rules to not fetch code from external repo. Fixes #81656 Signed-off-by: Sudan Landge <sudan.landge@arm.com>
This commit is contained in:
parent
ab25fdf1a9
commit
9b0623e63a
@ -253,6 +253,8 @@ if (CONFIG_BUILD_WITH_TFM)
|
||||
|
||||
list(APPEND TFM_CMAKE_ARGS -DTFM_TESTS_REVISION_CHECKS=OFF)
|
||||
|
||||
list(APPEND TFM_CMAKE_ARGS -DETHOS_DRIVER_PATH=${CONFIG_TFM_ETHOS_DRIVER_PATH_LOCAL})
|
||||
|
||||
file(MAKE_DIRECTORY ${TFM_BINARY_DIR})
|
||||
add_custom_target(tfm_cmake
|
||||
DEPENDS ${TFM_BINARY_DIR}/CMakeCache.txt
|
||||
|
||||
@ -310,6 +310,17 @@ config TFM_MCUBOOT_PATH_DOWNLOAD
|
||||
|
||||
endchoice
|
||||
|
||||
config TFM_ETHOS_DRIVER_PATH_LOCAL
|
||||
string "Path to a locally available Ethos-U driver or an empty string"
|
||||
default "${ZEPHYR_HAL_ETHOS_U_MODULE_DIR}"
|
||||
help
|
||||
Path to a locally available Ethos-U driver to be used for TF-M builds or
|
||||
an empty string to allow TF-M to automatically fetch the Ethos-U
|
||||
driver from an external repository at build time.
|
||||
By default Zephyr's Ethos-U driver will be used. It is present in
|
||||
the hal_ethos_u module.
|
||||
Alternatively, applications can point to their own paths for Ethos-U driver.
|
||||
|
||||
config TFM_QCBOR_PATH
|
||||
string
|
||||
prompt "Path to QCBOR or DOWNLOAD to fetch automatically"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user