aboutsummaryrefslogtreecommitdiff
path: root/flashstub/Makefile
diff options
context:
space:
mode:
authorGareth McMullin2015-03-08 13:35:07 -0700
committerGareth McMullin2015-03-19 07:48:57 -0700
commit437aedda11a112407af7b3f7884090023944faef (patch)
tree77f04bd2c8c06b12d3272cd33931cc227a46f913 /flashstub/Makefile
parentc2462a6788c119edd9995fa46f1316a9c0431e0b (diff)
Rewrote stm32f1 stub in C and call with parameters in registers.
Diffstat (limited to 'flashstub/Makefile')
-rw-r--r--flashstub/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/flashstub/Makefile b/flashstub/Makefile
index cb6f693..eeb1803 100644
--- a/flashstub/Makefile
+++ b/flashstub/Makefile
@@ -11,7 +11,11 @@ endif
CFLAGS=-mcpu=cortex-m3 -mthumb -I../libopencm3/include
ASFLAGS=-mcpu=cortex-m3 -mthumb
-all: lmi.stub stm32.stub stm32f4.stub nrf51.stub
+all: lmi.stub stm32f4.stub nrf51.stub stm32f1.stub
+
+stm32f1.o: stm32f1.c
+ $(Q)echo " CC $<"
+ $(Q)$(CC) $(CFLAGS) -DSTM32F1 -o $@ -c $<
%.o: %.s
$(Q)echo " AS $<"