File tree Expand file tree Collapse file tree 3 files changed +27
-0
lines changed
Expand file tree Collapse file tree 3 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ et_root_dir=$(cd ${script_dir}/../../.. && pwd)
1515et_root_dir=$( realpath ${et_root_dir} )
1616toolchain_cmake=${script_dir} /../../../examples/arm/ethos-u-setup/arm-none-eabi-gcc.cmake
1717toolchain_cmake=$( realpath ${toolchain_cmake} )
18+ setup_path_script=${et_root_dir} /examples/arm/ethos-u-scratch/setup_path.sh
19+ _setup_msg=" please refer to ${et_root_dir} /examples/arm/setup.sh to properly install necessary tools."
1820
1921et_build_root=" ${et_root_dir} /arm_test"
2022build_type=" Release"
@@ -43,6 +45,13 @@ for arg in "$@"; do
4345 esac
4446done
4547
48+ # Source the tools
49+ # This should be prepared by the setup.sh
50+ [[ -f ${setup_path_script} ]] \
51+ || { echo " Missing ${setup_path_script} . ${_setup_msg} " ; exit 1; }
52+
53+ source ${setup_path_script}
54+
4655et_build_dir=" ${et_build_root} /cmake-out"
4756
4857# Used for flatcc host excutable if Devtools is used
Original file line number Diff line number Diff line change @@ -10,6 +10,8 @@ script_dir=$(cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd)
1010et_root_dir=$( cd ${script_dir} /../../.. && pwd)
1111et_root_dir=$( realpath ${et_root_dir} )
1212toolchain_cmake=${et_root_dir} /examples/arm/ethos-u-setup/arm-none-eabi-gcc.cmake
13+ setup_path_script=${et_root_dir} /examples/arm/ethos-u-scratch/setup_path.sh
14+ _setup_msg=" please refer to ${et_root_dir} /examples/arm/setup.sh to properly install necessary tools."
1315
1416pte_file=" "
1517target=" ethos-u55-128"
@@ -66,6 +68,13 @@ for arg in "$@"; do
6668 esac
6769done
6870
71+ # Source the tools
72+ # This should be prepared by the setup.sh
73+ [[ -f ${setup_path_script} ]] \
74+ || { echo " Missing ${setup_path_script} . ${_setup_msg} " ; exit 1; }
75+
76+ source ${setup_path_script}
77+
6978pte_file=$( realpath ${pte_file} )
7079ethosu_tools_dir=$( realpath ${ethosu_tools_dir} )
7180ethos_u_root_dir=" $ethosu_tools_dir /ethos-u"
Original file line number Diff line number Diff line change @@ -15,6 +15,8 @@ et_root_dir=$(cd ${script_dir}/../../.. && pwd)
1515et_root_dir=$( realpath ${et_root_dir} )
1616toolchain_cmake=${script_dir} /../../../examples/arm/ethos-u-setup/arm-none-eabi-gcc.cmake
1717toolchain_cmake=$( realpath ${toolchain_cmake} )
18+ setup_path_script=${et_root_dir} /examples/arm/ethos-u-scratch/setup_path.sh
19+ _setup_msg=" please refer to ${et_root_dir} /examples/arm/setup.sh to properly install necessary tools."
1820
1921
2022et_build_root=" ${et_root_dir} /arm_test"
@@ -41,6 +43,13 @@ for arg in "$@"; do
4143 esac
4244done
4345
46+ # Source the tools
47+ # This should be prepared by the setup.sh
48+ [[ -f ${setup_path_script} ]] \
49+ || { echo " Missing ${setup_path_script} . ${_setup_msg} " ; exit 1; }
50+
51+ source ${setup_path_script}
52+
4453et_build_dir=${et_build_root} /cmake-out
4554
4655cd " ${et_root_dir} "
You can’t perform that action at this time.
0 commit comments