diff --git a/Makefile b/Makefile index de44485..a13ab04 100644 --- a/Makefile +++ b/Makefile @@ -54,11 +54,13 @@ ASM_SOURCES = \ ####################################### # binaries ####################################### -CC = arm-none-eabi-gcc -AS = arm-none-eabi-gcc -x assembler-with-cpp -CP = arm-none-eabi-objcopy -AR = arm-none-eabi-ar -SZ = arm-none-eabi-size + +TOOLCHAIN=/mnt/wd/toolchain/gcc-arm-none-eabi-6-2017-q1-update/install-native/bin +CC = ${TOOLCHAIN}/arm-none-eabi-gcc +AS = ${TOOLCHAIN}/arm-none-eabi-gcc -x assembler-with-cpp +CP = ${TOOLCHAIN}/arm-none-eabi-objcopy +AR = ${TOOLCHAIN}/arm-none-eabi-ar +SZ = ${TOOLCHAIN}/arm-none-eabi-size HEX = $(CP) -O ihex BIN = $(CP) -O binary -S