blob: 4603ef4cc0df5e262e75a7e3b63b480aca9648c9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
all: build
build: octedit.uf2
octedit.uf2: octedit.elf
../elf/elf2uf2 octedit.elf octedit.uf2
objects = setup.o octedit.o uart.o crc.o
octedit.elf: $(objects)
arm-none-eabi-ld -T pico_persist.ld -o octedit.elf $(objects)
./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
|