From 1666b1be96849c5bedaed984889da9f498ea83c2 Mon Sep 17 00:00:00 2001 From: Pedro de Oliveira Date: Thu, 23 Mar 2017 10:46:49 +0000 Subject: [PATCH] Adds the toolchain dir to a variable --- Makefile | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) 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