Skip to content
Commit d21538d0 authored by Rob Walton's avatar Rob Walton Committed by Jaeden Amero
Browse files

Fetch IoT SDK toolchain files



IoT SDK provides some default toolchain files in the `sdk/toolchain.git`
repository. Fetch these files before our top level project is declared
so they can be used when configuring CMake. CMake will only attempt to
find and parse toolchain files when the `project` call is reached. If we
fetch the files before the project is declared, they will be found when
passed to the `--toolchain` option. The `--toolchain` option can be
given a path relative to the build directory.

We place the toolchain files in a `toolchains` folder in the current
build directory. Users can build the SDK using our default toolchains
using either of the following commands.

To build with the arm-none-eabi-gcc toolchain

```
cmake -S . -B __build
--toolchain=toolchains/toolchain-arm-none-eabi-gcc.cmake <iotsdk
configure-options>
```

To build with the armclang toolchain
```
cmake -S . -B __build
--toolchain=toolchains/toolchain-armclang.cmake <iotsdk
configure-options>
```

Signed-off-by: Rob Walton's avatarRobert Walton <rob.walton@arm.com>
parent 0eeaa7b4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment