Skip to content

Commit da5a0fd

Browse files
committed
Think I got add example working, need to test on clean install
1 parent 1fa8f55 commit da5a0fd

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

examples/arm/CMakeLists.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
# ~~~
1111

1212
cmake_minimum_required(VERSION 3.19)
13+
set(CMAKE_C_COMPILER "/home/zephyruser/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc")
14+
set(CMAKE_CXX_COMPILER "/home/zephyruser/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++")
15+
set(CMAKE_ASM_COMPILER "/home/zephyruser/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc")
16+
set(CMAKE_LINKER "/home/zephyruser/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-ld")
1317
project(arm_example)
1418

1519
# Option to register op list

examples/arm/executor_runner/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ if(NOT DEFINED ET_PTE_FILE_PATH AND NOT ${SEMIHOSTING})
2121
)
2222
endif()
2323

24-
set(CMAKE_C_COMPILER arm-zephyr-eabi-gcc)
25-
set(CMAKE_CXX_COMPILER arm-zephyr-eabi-g++)
24+
set(CMAKE_C_COMPILER "/home/zephyruser/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-gcc")
25+
set(CMAKE_CXX_COMPILER "/home/zephyruser/zephyr-sdk-0.16.0/arm-zephyr-eabi/bin/arm-zephyr-eabi-g++")
2626
# Example ExecuTorch demo for bare metal Cortex-M based systems
2727
set(ET_DIR_PATH
2828
"../../.."

examples/arm/run.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,6 @@ done
9191
# Default Ethos-u tool folder override with --scratch-dir=<FOLDER>
9292
ethos_u_scratch_dir=$(realpath ${ethos_u_scratch_dir})
9393
setup_path_script=${ethos_u_scratch_dir}/setup_path.sh
94-
toolchain_cmake=${script_dir}/ethos-u-setup/arm-none-eabi-gcc.cmake
9594
toolchain_cmake=${script_dir}/ethos-u-setup/arm-zephyr-eabi-gcc.cmake
9695
_setup_msg="please refer to ${script_dir}/setup.sh to properly install necessary tools."
9796

0 commit comments

Comments
 (0)