diff --git a/examples/Makefile-nrf52840 b/examples/Makefile-nrf52840 index e4c31c10c..1e78aede2 100644 --- a/examples/Makefile-nrf52840 +++ b/examples/Makefile-nrf52840 @@ -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 diff --git a/examples/platforms/nrf52840/README.md b/examples/platforms/nrf52840/README.md index f394f317b..f1d681d2a 100644 --- a/examples/platforms/nrf52840/README.md +++ b/examples/platforms/nrf52840/README.md @@ -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.