diff options
author | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-06-04 19:28:25 -0500 |
---|---|---|
committer | Jacques Comeaux <jacquesrcomeaux@protonmail.com> | 2024-06-04 19:28:25 -0500 |
commit | f2f186c3594a922e51abf25b24052c61f833a2bf (patch) | |
tree | a4cd5bb88adc8b94582ed40a8a7ad04235a9db69 /octedit/Makefile | |
parent | b38a844ed9f6ad17d58db3e143ebc0c858762ec6 (diff) |
Rename stage 0 editor
Diffstat (limited to 'octedit/Makefile')
-rw-r--r-- | octedit/Makefile | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/octedit/Makefile b/octedit/Makefile new file mode 100644 index 0000000..26601c8 --- /dev/null +++ b/octedit/Makefile @@ -0,0 +1,22 @@ +all: build + +build: octedit.uf2 + +octedit.uf2: octedit.elf + ../elf/elf2uf2 octedit.elf octedit.uf2 + +objects = uart.o main.o octedit.o + +octedit.elf: $(objects) + arm-none-eabi-ld -T pico_persist.ld -o octedit.elf $(objects) ../setup/setup.so + ./checksum_pico_elf.py octedit.elf + +$(objects): %.o: %.s + arm-none-eabi-as -o $@ $< + +clean: + rm octedit.elf octedit.uf2 *.o + +flash: octedit.uf2 + [ -h /dev/disk/by-label/RPI-RP2 ] || sleep 3s + cat octedit.uf2 > /dev/disk/by-label/RPI-RP2 |