common.mk: add headless csv build rule

This commit is contained in:
Zack Buhman 2024-01-01 00:58:10 +08:00
parent e8aea009c6
commit 0b6c650ebd
5 changed files with 12 additions and 1 deletions

1
.gitignore vendored
View File

@ -13,3 +13,4 @@ __pycache__
scramble
cdi4dc
tools/ttf_outline
*.blend1

View File

@ -130,6 +130,9 @@ audio.pcm:
%.data.o: %.data
$(BUILD_BINARY_O)
regs/%.csv: regs/%.ods
libreoffice --headless -convert-to csv:"Text - txt - csv (StarCalc)":44,34,76,,,,true --outdir regs/ $<
maple/maple_bus_commands.hpp: regs/maple_bus_commands.csv regs/gen/maple_bus_commands.py
python regs/gen/maple_bus_commands.py $< > $@

View File

@ -249,3 +249,10 @@ SERIAL_TRANSFER_OBJ = \
example/serial_transfer.elf: LDSCRIPT = $(LIB)/alt.lds
example/serial_transfer.elf: $(START_OBJ) $(SERIAL_TRANSFER_OBJ)
INTERRUPT_OBJ = \
example/interrupt.o \
serial.o
example/interrupt.elf: LDSCRIPT = $(LIB)/alt.lds
example/interrupt.elf: $(START_OBJ) $(INTERRUPT_OBJ)

Binary file not shown.

Binary file not shown.