+ifneq (,$(findstring $(board),stm32f4discovery))
+GCC = arm-none-eabi-gcc
+CC = arm-none-eabi-gcc
+LD = arm-none-eabi-ld -v
+AR = arm-none-eabi-ar
+AS = arm-none-eabi-as
+CP = arm-none-eabi-objcopy
+OD = arm-none-eabi-objdump
+CFLAGS = -I./ -Iinclude/ -c -fno-common -O1 -g -mcpu=cortex-m3 -mthumb
+AFLAGS = -ahls -mapcs-32
+LFLAGS = -Ttmplink.cmd -nostartfiles
+CPFLAGS = -Obinary
+ODFLAGS = -S
+LDFLAGS =
+
+mcu ?= stm32f407
+platform := stm32f4discovery
+config = monitor
+endif
+