[nrf52840] Add CCPREFIX variable to nRF52840 Makefile (#3182)

This commit is contained in:
e-rk
2018-10-22 21:22:42 -07:00
committed by Jonathan Hui
parent 71d4ad3e77
commit ad610d8db8
2 changed files with 12 additions and 3 deletions
+3 -3
View File
@@ -29,10 +29,10 @@
.NOTPARALLEL:
AR = arm-none-eabi-ar
CCAS = arm-none-eabi-gcc
CCAS = $(CCPREFIX) arm-none-eabi-gcc
CPP = arm-none-eabi-cpp
CC = arm-none-eabi-gcc
CXX = arm-none-eabi-g++
CC = $(CCPREFIX) arm-none-eabi-gcc
CXX = $(CCPREFIX) arm-none-eabi-g++
LD = arm-none-eabi-ld
STRIP = arm-none-eabi-strip
NM = arm-none-eabi-nm
+9
View File
@@ -57,6 +57,15 @@ Please see [nRF52840 Dongle Programming][nrf52840-dongle-programming] for more d
[nrf52840-dongle-programming]: https://infocenter.nordicsemi.com/index.jsp?topic=%2Fcom.nordic.infocenter.nrf52%2Fdita%2Fnrf52%2Fdevelopment%2Fnrf52840_dongle%2Fprogramming.html&cp=2_0_4_4
## Prefixing compiler command
You can prefix compiler command using CCPREFIX parameter. This is useful when you utilize tools like [ccache][ccache-website] to speed up compilation. Example usage:
[ccache-website]: https://ccache.samba.org/
```
$ make -f examples/Makefile-nrf52840 USB=1 CCPREFIX=ccache
```
## Native SPI Slave support
You can build the libraries with support for native SPI Slave.