-
Notifications
You must be signed in to change notification settings - Fork 199
Expand file tree
/
Copy pathMakefile
More file actions
166 lines (158 loc) · 8.36 KB
/
Copy pathMakefile
File metadata and controls
166 lines (158 loc) · 8.36 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
TINYGO=tinygo
smoketest: smoketest-tinygo smoketest-linux smoketest-windows
smoketest-tinygo:
# Test all examples (and some boards)
$(TINYGO) build -o test.hex -size=short -target=pca10040-s132v6 ./examples/advertisement
@md5sum test.hex
$(TINYGO) build -o test.uf2 -size=short -target=circuitplay-bluefruit ./examples/advertisement
@md5sum test.hex
# beacon-lowpower calls EnableDCSupply and SetTxPower, so build it for each
# SoftDevice and for a board that uses the stubs.
$(TINYGO) build -o test.hex -size=short -target=pca10056-s140v7 -serial=none ./examples/beacon-lowpower
@md5sum test.hex
$(TINYGO) build -o test.hex -size=short -target=pca10040-s132v6 ./examples/beacon-lowpower
@md5sum test.hex
$(TINYGO) build -o test.hex -size=short -target=microbit-v2-s113v7 ./examples/beacon-lowpower
@md5sum test.hex
$(TINYGO) build -o test.uf2 -size=short -target=nano-rp2040 ./examples/beacon-lowpower
@md5sum test.uf2
$(TINYGO) build -o test.uf2 -size=short -target=circuitplay-bluefruit ./examples/circuitplay
@md5sum test.hex
$(TINYGO) build -o test.hex -size=short -target=circuitplay-bluefruit ./examples/connparams
@md5sum test.hex
$(TINYGO) build -o test.uf2 -size=short -target=circuitplay-bluefruit ./examples/discover
@md5sum test.hex
$(TINYGO) build -o test.hex -size=short -target=pca10040-s132v6 ./examples/heartrate
@md5sum test.hex
$(TINYGO) build -o test.hex -size=short -target=reelboard-s140v7 ./examples/ledcolor
@md5sum test.hex
$(TINYGO) build -o test.hex -size=short -target=pca10040-s132v6 ./examples/nusclient
@md5sum test.hex
$(TINYGO) build -o test.hex -size=short -target=pca10040-s132v6 ./examples/nusserver
@md5sum test.hex
# Both pairing examples link in crypto/ecdh for LE Secure Connections,
# whose P-256 tables need more RAM than the nRF52832 has.
$(TINYGO) build -o test.hex -size=short -target=pca10056-s140v7 ./examples/pairing-justworks
@md5sum test.hex
$(TINYGO) build -o test.hex -size=short -target=microbit-v2-s113v7 ./examples/pairing-justworks
@md5sum test.hex
$(TINYGO) build -o test.hex -size=short -target=pca10056-s140v7 ./examples/pairing-passkey
@md5sum test.hex
$(TINYGO) build -o test.hex -size=short -target=microbit-v2-s113v7 ./examples/pairing-passkey
@md5sum test.hex
$(TINYGO) build -o test.hex -size=short -target=pca10040-s132v6 ./examples/scanner
@md5sum test.hex
$(TINYGO) build -o test.hex -size=short -target=pca10040-s132v6 ./examples/stop-advertisement
@md5sum test.hex
# usbvbus calls USBVBusPresent, so build it for each nRF52840 SoftDevice and
# for a board that uses the stub.
$(TINYGO) build -o test.hex -size=short -target=pca10056-s140v7 ./examples/usbvbus
@md5sum test.hex
$(TINYGO) build -o test.uf2 -size=short -target=pca10056-s140v6-uf2 ./examples/usbvbus
@md5sum test.uf2
$(TINYGO) build -o test.uf2 -size=short -target=nano-rp2040 ./examples/usbvbus
@md5sum test.uf2
# flash calls Adapter.Flash, so build it for each nRF52 SoftDevice and for
# a board that uses the stub.
$(TINYGO) build -o test.hex -size=short -target=pca10056-s140v7 ./examples/flash
@md5sum test.hex
$(TINYGO) build -o test.uf2 -size=short -target=pca10056-s140v6-uf2 ./examples/flash
@md5sum test.uf2
$(TINYGO) build -o test.hex -size=short -target=pca10040-s132v6 ./examples/flash
@md5sum test.hex
$(TINYGO) build -o test.hex -size=short -target=microbit-v2-s113v7 ./examples/flash
@md5sum test.hex
$(TINYGO) build -o test.uf2 -size=short -target=nano-rp2040 ./examples/flash
@md5sum test.uf2
# Test some more boards that are not tested above.
$(TINYGO) build -o test.hex -size=short -target=pca10056-s140v7 ./examples/advertisement
@md5sum test.hex
$(TINYGO) build -o test.hex -size=short -target=microbit-s110v8 ./examples/nusserver
@md5sum test.hex
$(TINYGO) build -o test.hex -size=short -target=microbit-v2-s113v7 ./examples/nusserver
@md5sum test.hex
$(TINYGO) build -o test.uf2 -size=short -target=nano-rp2040 ./examples/discover
@md5sum test.hex
$(TINYGO) build -o test.uf2 -size=short -target=arduino-nano33 ./examples/discover
@md5sum test.hex
$(TINYGO) build -o test.uf2 -size=short -target=pyportal ./examples/discover
@md5sum test.hex
$(TINYGO) build -o test.uf2 -size=short -target=nano-rp2040 ./examples/advertisement
@md5sum test.hex
$(TINYGO) build -o test.uf2 -size=short -target=circuitplay-express -tags="hci hci_uart" ./examples/advertisement
@md5sum test.hex
$(TINYGO) build -o test.uf2 -size=short -target=pico-w ./examples/discover
@md5sum test.hex
$(TINYGO) build -o test.uf2 -size=short -target=badger2040-w ./examples/advertisement
@md5sum test.hex
$(TINYGO) build -o test.bin -size=short -target=xiao-esp32c3 ./examples/advertisement
@md5sum test.bin
$(TINYGO) build -o test.bin -size=short -target=xiao-esp32c3 ./examples/discover
@md5sum test.bin
$(TINYGO) build -o test.bin -size=short -target=xiao-esp32s3 ./examples/advertisement
@md5sum test.bin
$(TINYGO) build -o test.bin -size=short -target=xiao-esp32s3 ./examples/discover
@md5sum test.bin
$(TINYGO) build -o test.bin -size=short -target=esp32-mini32 ./examples/advertisement
@md5sum test.bin
$(TINYGO) build -o test.bin -size=short -target=esp32-mini32 ./examples/discover
@md5sum test.bin
smoketest-hci:
# Test the four HCI transports, for a faster loop than the whole matrix.
# ninafw
$(TINYGO) build -o test.uf2 -size=short -target=nano-rp2040 ./examples/discover
@md5sum test.uf2
$(TINYGO) build -o test.uf2 -size=short -target=nano-rp2040 ./examples/advertisement
@md5sum test.uf2
$(TINYGO) build -o test.uf2 -size=short -target=arduino-nano33 ./examples/discover
@md5sum test.uf2
$(TINYGO) build -o test.uf2 -size=short -target=pyportal ./examples/discover
@md5sum test.uf2
# hci over a plain UART
$(TINYGO) build -o test.uf2 -size=short -target=circuitplay-express -tags="hci hci_uart" ./examples/advertisement
@md5sum test.uf2
# cyw43439
$(TINYGO) build -o test.uf2 -size=short -target=pico-w ./examples/discover
@md5sum test.uf2
$(TINYGO) build -o test.uf2 -size=short -target=badger2040-w ./examples/advertisement
@md5sum test.uf2
# espradio
$(TINYGO) build -o test.bin -size=short -target=xiao-esp32c3 ./examples/discover
@md5sum test.bin
$(TINYGO) build -o test.bin -size=short -target=xiao-esp32s3 ./examples/advertisement
@md5sum test.bin
$(TINYGO) build -o test.bin -size=short -target=esp32-mini32 ./examples/advertisement
@md5sum test.bin
# The bledebug build of the hci package is not covered anywhere else.
$(TINYGO) build -o test.uf2 -size=short -target=nano-rp2040 -tags=bledebug ./examples/discover
@md5sum test.uf2
$(TINYGO) build -o test.uf2 -size=short -target=pico-w -tags=bledebug ./examples/discover
@md5sum test.uf2
smoketest-linux:
# Test on Linux.
GOOS=linux go build -o /tmp/go-build-discard ./examples/advertisement
GOOS=linux go build -o /tmp/go-build-discard ./examples/beacon-lowpower
GOOS=linux go build -o /tmp/go-build-discard ./examples/connparams
GOOS=linux go build -o /tmp/go-build-discard ./examples/heartrate
GOOS=linux go build -o /tmp/go-build-discard ./examples/heartrate-monitor
GOOS=linux go build -o /tmp/go-build-discard ./examples/nusserver
GOOS=linux go build -o /tmp/go-build-discard ./examples/scanner
GOOS=linux go build -o /tmp/go-build-discard ./examples/discover
smoketest-windows:
# Test on Windows.
GOOS=windows go build -o /tmp/go-build-discard ./examples/beacon-lowpower
GOOS=windows go build -o /tmp/go-build-discard ./examples/scanner
GOOS=windows go build -o /tmp/go-build-discard ./examples/discover
GOOS=windows go build -o /tmp/go-build-discard ./examples/heartrate-monitor
GOOS=windows go build -o /tmp/go-build-discard ./examples/advertisement
GOOS=windows go build -o /tmp/go-build-discard ./examples/heartrate
smoketest-macos:
# Test on macos.
GOOS=darwin CGO_ENABLED=1 go build -o /tmp/go-build-discard ./examples/scanner
GOOS=darwin CGO_ENABLED=1 go build -o /tmp/go-build-discard ./examples/discover
GOOS=darwin CGO_ENABLED=1 go build -o /tmp/go-build-discard ./examples/nusclient
GOOS=darwin CGO_ENABLED=1 go build -o /tmp/go-build-discard ./examples/heartrate-monitor
gen-uuids:
# generate the standard service and characteristic UUIDs
go run ./tools/gen-service-uuids/main.go
go run ./tools/gen-characteristic-uuids/main.go