File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
examples/arm/executor_runner Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,12 @@ function verify_md5() {
30
30
31
31
function patch_repo() {
32
32
# Patch git repo found in $repo_dir, starting from patch $base_rev and applying patches found in $patch_dir/$name.
33
-
33
+
34
34
# Arg 1: Directory of repo to patch
35
35
# Arg 2: Rev to start patching at
36
36
# Arg 3: Directory 'setup-dir' containing patches in 'setup-dir/$name'
37
37
# Exits with return code 1 if the number of arguments is incorrect.
38
- # Does not do any error handling if the base_rev or patch_dir is not found etc.
38
+ # Does not do any error handling if the base_rev or patch_dir is not found etc.
39
39
40
40
[[ $# -ne 3 ]] \
41
41
&& { echo " [${FUNCNAME[0]} ] Invalid number of args, expecting 3, but got $# " ; exit 1; }
@@ -45,7 +45,7 @@ function patch_repo() {
45
45
local name=" $( basename $repo_dir ) "
46
46
local patch_dir=" ${3} /$name "
47
47
48
- echo -e " [${FUNCNAME[0]} ] Patching ${name} ... "
48
+ echo -e " [${FUNCNAME[0]} ] Patching ${name} repo_dir: ${repo_dir} base_rev: ${base_rev} patch_dir: ${patch_dir} "
49
49
cd $repo_dir
50
50
git fetch
51
51
git reset --hard ${base_rev}
Original file line number Diff line number Diff line change @@ -45,6 +45,8 @@ set(PYTHON_EXECUTABLE
45
45
)
46
46
47
47
# Download ethos_u dependency if needed.
48
+ file (MAKE_DIRECTORY ${ETHOS_SDK_PATH} /../ethos_u )
49
+
48
50
include (FetchContent )
49
51
set (ethos_u_base_rev "24.08" )
50
52
FetchContent_Declare (
@@ -69,7 +71,7 @@ endif()
69
71
70
72
# Always patch the core_platform repo since this is fast enough.
71
73
set (core_platform_base_rev "b728c774158248ba2cad8e78a515809e1eb9b77f" )
72
- set (patch_dir "examples/arm/ethos-u-setup" )
74
+ set (patch_dir "${ET_DIR_PATH} / examples/arm/ethos-u-setup" )
73
75
execute_process (COMMAND bash -c "pwd && source backends/arm/scripts/utils.sh && patch_repo ${ETHOS_SDK_PATH} /core_platform ${core_platform_base_rev} ${patch_dir} "
74
76
WORKING_DIRECTORY ${ET_DIR_PATH}
75
77
COMMAND_ECHO STDOUT
You can’t perform that action at this time.
0 commit comments