aboutsummaryrefslogtreecommitdiff
path: root/fw/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'fw/Makefile')
-rw-r--r--fw/Makefile8
1 files changed, 7 insertions, 1 deletions
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)