aboutsummaryrefslogtreecommitdiff
path: root/fw/Makefile
diff options
context:
space:
mode:
authorjaseg <git@jaseg.net>2017-09-01 20:26:05 +0200
committerjaseg <git@jaseg.net>2017-09-01 20:26:05 +0200
commite6437f975b3e64dbd85d3939ae07893cf816a992 (patch)
tree60502e4537e248260ebb0badd0b650a8d14f2ae4 /fw/Makefile
parent6b40626a1bbb08968d3c615023f04fedff9254af (diff)
download7seg-e6437f975b3e64dbd85d3939ae07893cf816a992.tar.gz
7seg-e6437f975b3e64dbd85d3939ae07893cf816a992.tar.bz2
7seg-e6437f975b3e64dbd85d3939ae07893cf816a992.zip
UART magic seems to be working now
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)