Makefile: Add support for overriding PLATFORM
authorAsbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
Thu, 18 Nov 2010 19:05:57 +0000 (19:05 +0000)
committerAsbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>
Thu, 18 Nov 2010 19:05:57 +0000 (19:05 +0000)
Usage:
make PLATFORM=arm-stupid-eabi

Signed-off-by: Asbjørn Sloth Tønnesen <asbjorn@asbjorn.biz>

new_cmsis/Makefile

index d3af0b2..efcf2d9 100644 (file)
@@ -1,5 +1,5 @@
 PROJECT=rapper
-PLATFORM=arm-none-eabi
+PLATFORM ?= arm-none-eabi
 LDFLAGS=--gc-sections -g -T LPC1768-flash.ld
 CFLAGS=-W -Wall -Os --std=gnu99 -fgnu89-inline -mcpu=cortex-m3 -mthumb -ffunction-sections -fdata-sections -I. -g