Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make GCC_PREFIX overridable via environment variable #328

Merged
merged 1 commit into from
Oct 21, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions build/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,15 @@ make

This will then build the firmware as before, with the result placed in `build\core-firmware.bin`.

Specifying custom toolchain
---------------------------

Custom compiler prefix can be used via an environment variable `GCC_PREFIX`.

For example when you have installed a custom toolchain under
`/opt/gcc-arm-embedded-bin` you can use invoke make using that toolchain
like this:

```
GCC_PREFIX="/opt/gcc-arm-embedded-bin/bin/arm-none-eabi-" make
```
2 changes: 1 addition & 1 deletion build/tools.mk
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Define the compiler/tools prefix
GCC_PREFIX = arm-none-eabi-
GCC_PREFIX ?= arm-none-eabi-

# Define tools
CC = $(GCC_PREFIX)gcc
Expand Down