Skip to content

Commit

Permalink
tf-m: Fix Ethos-U git link
Browse files Browse the repository at this point in the history
Patch TF-M to provide an alternative URL to fetch the Ethos dependency.

Signed-off-by: Hugues Kamba-Mpiana <[email protected]>
  • Loading branch information
hugueskamba authored and urutva committed Nov 9, 2023
1 parent 47a6a8c commit 3ea0562
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
26 changes: 26 additions & 0 deletions Middleware/ARM/TF-M/0001-cs310-tfm-Fix-Ethos-U-git-link.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
From 0630849294b790944a1e4897c31a17eca2275b5c Mon Sep 17 00:00:00 2001
From: Hugues Kamba-Mpiana <[email protected]>
Date: Tue, 7 Nov 2023 23:03:34 +0000
Subject: [PATCH] cs310-tfm: Fix Ethos-U git link

Signed-off-by: Hugues Kamba-Mpiana <[email protected]>
---
lib/ext/ethos_u_core_driver/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ext/ethos_u_core_driver/CMakeLists.txt b/lib/ext/ethos_u_core_driver/CMakeLists.txt
index 7a8ad3d50..d23ac2fad 100644
--- a/lib/ext/ethos_u_core_driver/CMakeLists.txt
+++ b/lib/ext/ethos_u_core_driver/CMakeLists.txt
@@ -10,7 +10,7 @@ fetch_remote_library(
LIB_SOURCE_PATH_VAR ETHOS_DRIVER_PATH
LIB_PATCH_DIR ${CMAKE_CURRENT_LIST_DIR}
FETCH_CONTENT_ARGS
- GIT_REPOSITORY https://git.mlplatform.org/ml/ethos-u/ethos-u-core-driver.git
+ GIT_REPOSITORY https://review.mlplatform.org/ml/ethos-u/ethos-u-core-driver.git
GIT_TAG "23.05"
GIT_PROGRESS TRUE
)
--
2.34.1

7 changes: 7 additions & 0 deletions Middleware/ARM/TF-M/cmake/TF-M-build.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ else()
message(FATAL_ERROR "Unsupported compiler: ${CMAKE_C_COMPILER_ID}")
endif()

execute_process(COMMAND git am --abort
COMMAND git am ${CMAKE_CURRENT_SOURCE_DIR}/0001-cs310-tfm-Fix-Ethos-U-git-link.patch
WORKING_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/trusted-firmware-m"
OUTPUT_QUIET
ERROR_QUIET
)

ExternalProject_Add(
tf-m-build

Expand Down

0 comments on commit 3ea0562

Please sign in to comment.