Skip to content

Commit 2c4b950

Browse files
authored
Arm backend: Fix error message if toolchain is bad (#13275)
Fixes #12858 Fixes #12859 Signed-off-by: Zingo Andersen <[email protected]>
1 parent b9bb00b commit 2c4b950

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

backends/arm/scripts/build_executor_runner.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,11 @@ help() {
4747
echo " --output=<FOLDER> Output folder Default: <MODEL>/<MODEL>_<TARGET INFO>.pte"
4848
echo " --et_build_root=<FOLDER> Build output root folder to use, defaults to ${et_build_root}"
4949
echo " --ethosu_tools_dir=<FOLDER> Path to your Ethos-U tools dir if you not using default: ${ethosu_tools_dir}"
50-
echo " --toolchain=<TOOLCHAIN> Toolchain can be specified (e.g. bare metal as arm-none-eabi-gcc or zephyr as arm-zephyr-eabi-gcc"
50+
echo " --toolchain=<TOOLCHAIN> Toolchain can be specified (e.g. bare metal as arm-none-eabi-gcc or zephyr as arm-zephyr-eabi-gcc Default: ${toolchain}"
5151
echo " --select_ops_list=<OPS> Comma separated list of portable (non delagated) kernels to include Default: ${select_ops_list}"
5252
echo " NOTE: This is used when select_ops_model is not possible to use, e.g. for semihosting or bundleio."
5353
echo " See https://docs.pytorch.org/executorch/stable/kernel-library-selective-build.html for more information."
54-
exit 0
54+
exit 0
5555
}
5656

5757
for arg in "$@"; do
@@ -80,7 +80,7 @@ if [[ ${toolchain} == "arm-none-eabi-gcc" ]]; then
8080
elif [[ ${toolchain} == "arm-zephyr-eabi-gcc" ]]; then
8181
toolchain_cmake=${et_root_dir}/examples/zephyr/x86_64-linux-arm-zephyr-eabi-gcc.cmake
8282
else
83-
echo "Error: Invalid toolchain selection, provided: ${tolchain}"
83+
echo "Error: Invalid toolchain selection, provided: ${toolchain}"
8484
echo " Valid options are {arm-none-eabi-gcc, arm-zephyr-eabi-gcc}"
8585
exit 1;
8686
fi

backends/arm/scripts/build_executorch.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ help() {
2929
echo " --build_type=<TYPE> Build with Release, Debug or RelWithDebInfo, default is ${build_type}"
3030
echo " --devtools Build Devtools libs"
3131
echo " --etdump Adds Devtools etdump support to track timing, etdump area will be base64 encoded in the log"
32-
echo " --toolchain=<TOOLCHAIN> Toolchain can be specified (e.g. bare metal as arm-none-eabi-gcc or zephyr as arm-zephyr-eabi-gcc"
32+
echo " --toolchain=<TOOLCHAIN> Toolchain can be specified (e.g. bare metal as arm-none-eabi-gcc or zephyr as arm-zephyr-eabi-gcc Default: ${toolchain}"
3333
exit 0
3434
}
3535

@@ -51,7 +51,7 @@ if [[ ${toolchain} == "arm-none-eabi-gcc" ]]; then
5151
elif [[ ${toolchain} == "arm-zephyr-eabi-gcc" ]]; then
5252
toolchain_cmake=${et_root_dir}/examples/zephyr/x86_64-linux-arm-zephyr-eabi-gcc.cmake
5353
else
54-
echo "Error: Invalid toolchain selection, provided: ${tolchain}"
54+
echo "Error: Invalid toolchain selection, provided: ${toolchain}"
5555
echo " Valid options are {arm-none-eabi-gcc, arm-zephyr-eabi-gcc}"
5656
exit 1;
5757
fi

backends/arm/scripts/build_portable_kernels.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# This source code is licensed under the BSD-style license found in the
55
# LICENSE file in the root directory of this source tree.
66

7-
echo "DEPRECATED: build_portable_kernels.sh is deprecated and will be removed. The kernel registration library is now built directly with the arm_executor_runner."
7+
echo "DEPRECATED: build_portable_kernels.sh is deprecated and will be removed. The kernel registration library is now built directly with the arm_executor_runner."

examples/arm/run.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ function help() {
6565
echo " NOTE: If given, this option must match the given target. This option also sets timing adapter values customized for specific hardware, see ./executor_runner/CMakeLists.txt."
6666
echo " --config=<FILEPATH> System configuration file that specifies system configurations (vela.ini)"
6767
echo " --memory_mode=<MODE> Memory mode to select from the Vela configuration file (see vela.ini), e.g. Shared_Sram/Sram_Only. Default: 'Shared_Sram' for Ethos-U55 targets, 'Sram_Only' for Ethos-U85 targets"
68+
echo " --toolchain=<TOOLCHAIN> Toolchain can be specified (e.g. bare metal as arm-none-eabi-gcc or zephyr as arm-zephyr-eabi-gcc Default: ${toolchain}"
6869
echo " --et_build_root=<FOLDER> Executorch build output root folder to use, defaults to ${et_build_root}"
6970
echo " --scratch-dir=<FOLDER> Path to your Ethos-U scrach dir if you not using default ${ethos_u_scratch_dir}"
7071
exit 0
@@ -106,7 +107,7 @@ if [[ ${toolchain} == "arm-none-eabi-gcc" ]]; then
106107
elif [[ ${toolchain} == "arm-zephyr-eabi-gcc" ]]; then
107108
toolchain_cmake=${et_root_dir}/examples/zephyr/x86_64-linux-arm-zephyr-eabi-gcc.cmake
108109
else
109-
echo "Error: Invalid toolchain selection, provided: ${tolchain}"
110+
echo "Error: Invalid toolchain selection, provided: ${toolchain}"
110111
echo " Valid options are {arm-none-eabi-gcc, arm-zephyr-eabi-gcc}"
111112
exit 1;
112113
fi

0 commit comments

Comments
 (0)