allow use of different cross-compiler on the command line
authorNathael Pajani <nathael.pajani@ed3l.fr>
Sun, 7 Dec 2014 21:05:01 +0000 (22:05 +0100)
committerNathael Pajani <nathael.pajani@ed3l.fr>
Tue, 8 Nov 2022 16:03:04 +0000 (17:03 +0100)
Makefile

index 4fb0aba..fea7b34 100644 (file)
--- 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)