-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (25 loc) · 1.59 KB
/
Makefile
File metadata and controls
31 lines (25 loc) · 1.59 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
clean:
@rm -rf build
FMT_PATHS = ./
fmt-check:
@unformatted=$$(gofmt -l $(FMT_PATHS)); [ -z "$$unformatted" ] && exit 0; echo "Unformatted:"; for fn in $$unformatted; do echo " $$fn"; done; exit 1
pio-test:
go test ./rp2-pio
smoke-test:
@mkdir -p build
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/blinky
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/i2s
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/pulsar
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/parallel/hub40screen
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/parallel/tufty
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/ws2812b
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/blinky
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/i2s
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/pulsar
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/rxfifoput
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/rxfifoputget
tinygo build -target pico-w -size short -o build/test.uf2 ./rp2-pio/examples/parallel/hub40screen
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/parallel/tufty
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/ws2812b
tinygo build -target pico2 -size short -o build/test.uf2 ./rp2-pio/examples/ws2812bfourpixels
test: clean fmt-check pio-test smoke-test