From e6437f975b3e64dbd85d3939ae07893cf816a992 Mon Sep 17 00:00:00 2001 From: jaseg Date: Fri, 1 Sep 2017 20:26:05 +0200 Subject: UART magic seems to be working now --- fw/Makefile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'fw/Makefile') diff --git a/fw/Makefile b/fw/Makefile index b873ab5..f86df47 100644 --- a/fw/Makefile +++ b/fw/Makefile @@ -47,8 +47,14 @@ cmsis_exports.c: $(CMSIS_DEV_PATH)/Include/stm32f030x6.h $(CMSIS_PATH)/Include/c %.dot: %.elf r2 -a arm -qc 'aa;agC' $< 2>/dev/null >$@ + +sources.tar.xz: main.c transpose.c transpose.h + tar -caf $@ $^ + +sources.c: sources.tar.xz + xxd -i $< > $@ -main.elf: main.o startup_stm32f030x6.o system_stm32f0xx.o $(HAL_PATH)/Src/stm32f0xx_ll_utils.o base.o cmsis_exports.o transpose.o +main.elf: main.o startup_stm32f030x6.o system_stm32f0xx.o $(HAL_PATH)/Src/stm32f0xx_ll_utils.o base.o cmsis_exports.o transpose.o bus_addr.o $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $^ $(LIBS) $(OBJCOPY) -O ihex $@ $(@:.elf=.hex) $(OBJCOPY) -O binary $@ $(@:.elf=.bin) -- cgit