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

presets: Add core type



We require CMAKE_SYSTEM_PROCESSOR to be set so CMake can discover our
platform files. The platform files set architecture and ABI specific
options per language and toolchain. The ARMClang toolchain support in
CMake actually always required this variable: it was used to apply the
`--cpu` option for the ARMClang compiler.

Previously we set CMAKE_SYSTEM_PROCESSOR somewhere in MCU-Driver-HAL's
toolchain files. Now our default toolchain files don't set this variable
for simplicity and so they can remain generic for all cortex-m variants.
Users may set CMAKE_SYSTEM_PROCESSOR in a custom toolchain file for
their own convenience.

We set CMAKE_SYSTEM_PROCESSOR with our supported core types in our CMake
presets. This is for our own convenience when testing our current HAL
implementations.

Signed-off-by: Rob Walton's avatarRobert Walton <rob.walton@arm.com>
parent 18c33cac
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