From: Nathael Pajani Date: Sun, 7 Dec 2014 21:05:01 +0000 (+0100) Subject: allow use of different cross-compiler on the command line X-Git-Url: http://git.techno-innov.fr/?a=commitdiff_plain;h=5eab59440bd60dce1fb2da1a226dde227efe5c36;p=soft%2Flpc122x%2Fcore allow use of different cross-compiler on the command line --- diff --git a/Makefile b/Makefile index 4fb0aba..fea7b34 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ LPC = lpc1224 CPU = cortex-m0 ARCH = armv6-m -CROSS_COMPILE = arm-linux-gnueabi- +CROSS_COMPILE ?= arm-linux-gnueabi- CC = $(CROSS_COMPILE)gcc FOPTS = -fno-builtin -ffunction-sections -fdata-sections -ffreestanding CFLAGS = -Wall -O2 -mthumb -mcpu=$(CPU) $(FOPTS)