aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 3a94707ca49d8e48d864755241557e1af96bd3f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
all: build

build: blink.uf2

# convert ELF file to UF2 file
blink.uf2: blink.elf
	elf2uf2 blink.elf blink.uf2

# compile
blink.elf: blink.o
	arm-none-eabi-ld -T pico_ram_only.ld -o blink.elf blink.o

blink.o: blink.s
	arm-none-eabi-as -o blink.o blink.s

# flash: build/blink.uf2
# 	cp build/blink.uf2 /Volumes/RPI-RP2

clean:
	rm blink.elf blink.uf2 blink.o