Merge pull request #193 from sej7278/master
Add easier ccache workaround for Fedora
This commit is contained in:
commit
70af7d49ec
1 changed files with 13 additions and 9 deletions
|
@ -24,12 +24,16 @@ Then compile. This will create a binary and source RPM:
|
||||||
|
|
||||||
Fedora's AVR compilers use ccache, so you may have to override some of the paths to the AVR tools in your sketch's Makefile, for example:
|
Fedora's AVR compilers use ccache, so you may have to override some of the paths to the AVR tools in your sketch's Makefile, for example:
|
||||||
|
|
||||||
OVERRIDE_EXECUTABLES = 1
|
```Makefile
|
||||||
CC = /usr/lib64/ccache/$(CC_NAME)
|
OVERRIDE_EXECUTABLES = 1
|
||||||
CXX = /usr/lib64/ccache/$(CXX_NAME)
|
CC = /usr/lib64/ccache/$(CC_NAME)
|
||||||
AS = /usr/bin/$(AS_NAME)
|
CXX = /usr/lib64/ccache/$(CXX_NAME)
|
||||||
OBJCOPY = /usr/bin/$(OBJCOPY_NAME)
|
AS = /usr/bin/$(AS_NAME)
|
||||||
OBJDUMP = /usr/bin/$(OBJDUMP_NAME)
|
OBJCOPY = /usr/bin/$(OBJCOPY_NAME)
|
||||||
AR = /usr/bin/$(AR_NAME)
|
OBJDUMP = /usr/bin/$(OBJDUMP_NAME)
|
||||||
SIZE = /usr/bin/$(SIZE_NAME)
|
AR = /usr/bin/$(AR_NAME)
|
||||||
NM = /usr/bin/$(NM_NAME)
|
SIZE = /usr/bin/$(SIZE_NAME)
|
||||||
|
NM = /usr/bin/$(NM_NAME)
|
||||||
|
```
|
||||||
|
|
||||||
|
Or if you don't want to use ccache, then just set ```AVR_TOOLS_PATH=/usr``` and none of the above will be necessary.
|
||||||
|
|
Loading…
Reference in a new issue