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

Fix CROSS_COMPILE when using ccache #21

Merged
merged 1 commit into from Jan 19, 2017
Merged

Conversation

wom-bat
Copy link
Contributor

@wom-bat wom-bat commented Jan 19, 2017

If you use ccache, then the path to arm-none-eabi-gcc will be
/usr/lib/ccache/arm-none-eabi-gcc

The code to find CROSS_COMPILE already assumes that arm-none-eabi-gcc
is in your PATH. It also assumes that arm-none-eabi-objcopy and
arm-none-eabi-objdump are in the same place. This is not true: the
latter are both in /usr/bin (or somewhere else) in your PATH.

So strip off the path before using the variables. (It'd actually be simpler just to hard-code arm-none-eabi- )

If you use ccache, then the path to arm-none-eabi-gcc wil lbe
/usr/lib/ccache/arm-none-eabi-gcc

The code to find CROSS_COMPILE already assumes that arm-none-eabi-gcc
is in your PATH.  It also assumes that arm-none-eabi-objcopy and
arm-none-eabi-objdump are in the same place.  This is not true: the
latter are both in /usr/bin (or somewhere else) in your PATH.

So rather than do a complex regex, just hardcode the CROSS_COMPILE
variable.
@mithro mithro merged commit 4e4e5e5 into im-tomu:master Jan 19, 2017
@mithro
Copy link
Member

mithro commented Jan 19, 2017

@wom-bat You can get your Tomu from Unit 9 now, or find me at LCA tomorrow :-)

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.

None yet

2 participants