Skip to content

Allow setting the toolchain prefix for cross-compilation#3

Merged
rwols merged 1 commit intomainfrom
feature/INS-14641-variable-toolchain-prefix
May 16, 2025
Merged

Allow setting the toolchain prefix for cross-compilation#3
rwols merged 1 commit intomainfrom
feature/INS-14641-variable-toolchain-prefix

Conversation

@rwols
Copy link
Collaborator

@rwols rwols commented May 15, 2025

This allows build hosts like macOS to use a cross-compiler sitting in ~/Downloads to cross-compile pinata sources.

For example, if you have an ARM cross compiler downloaded in

~/Downloads/arm-gnu-toolchain-13.3.rel1-darwin-arm64-arm-none-eabi

You should configure cmake with

cmake -DPREFIX=~/Downloads/arm-gnu-toolchain-13.3.rel1-darwin-arm64-arm-none-eabi/bin/arm-none-eabi- -DCMAKE_TOOLCHAIN_FILE=./gcc-arm-none-eabi.toolchain.cmake ..

This allows build hosts like macOS to use a cross-compiler sitting
in ~/Downloads to cross-compile pinata sources.

For example, if you have an ARM cross compiler downloaded in

	~/Downloads/arm-gnu-toolchain-13.3.rel1-darwin-arm64-arm-none-eabi

You should configure cmake with

	cmake -DPREFIX=~/Downloads/arm-gnu-toolchain-13.3.rel1-darwin-arm64-arm-none-eabi/bin/arm-none-eabi- -DCMAKE_TOOLCHAIN_FILE=./gcc-arm-none-eabi.toolchain.cmake ..
@rwols rwols merged commit fbcd1bd into main May 16, 2025
1 check passed
@rwols rwols deleted the feature/INS-14641-variable-toolchain-prefix branch May 16, 2025 13:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants