-
Notifications
You must be signed in to change notification settings - Fork 12
/
laze-project.yml
883 lines (782 loc) · 21.2 KB
/
laze-project.yml
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
contexts:
# base context that all other contexts inherit from
- name: default
env:
bindir: "${build-dir}/bin/${builder}/${app}"
# base context for all RIOT-rs applications
- name: riot-rs
parent: default
selects:
- executor-default
- ?critical-section
- ?defmt
env:
RUSTFLAGS:
- --cfg builder=\"${builder}\"
- --cfg context=\"${builder}\"
- --cfg context=\"riot-rs\"
FEATURES:
- riot-rs-boards/${BOARD}
SCRIPTS: ${relroot}/scripts
# laze doesn't know the concept of "export" as make does, so each variable
# that needs to be passed via environment needs to be listed in that rule
# or task's command list.
# "CARGO_ENV" is used for that.
CARGO_ENV:
- >-
OPENOCD_ARGS="${OPENOCD_ARGS}"
SCRIPTS=${SCRIPTS}
CONFIG_BOARD=${builder}
CARGO_BUILD_TARGET=${RUSTC_TARGET}
${CARGO_TARGET_PREFIX}_RUNNER=${CARGO_RUNNER}
${CARGO_TARGET_PREFIX}_RUSTFLAGS="${RUSTFLAGS}"
CARGO_TARGET_DIR=${relroot}/${build-dir}/bin/${builder}/${app}/cargo
BOARD: ${builder}
PROFILE: release
riot_binary: ${app}
QEMU_SYSTEM_ARM: >-
qemu-system-arm
-machine ${QEMU_MACHINE}
-nographic
-serial mon:stdio
-semihosting-config enable=on,target=native
-kernel
PROBE_RS_PROTOCOL: swd
var_options:
# this turns ${FEATURES} from a list to "--features=feature1,feature2"
FEATURES:
start: --features=
joiner: ","
LOG:
joiner: ","
# this prefixes `--protocol=` to `PROBE_RS_PROTOCOL`
PROBE_RS_PROTOCOL:
start: --protocol=
rules:
- name: LINK
description: CARGO ${out}
pool: console
always: true
cmd: >-
cd ${relpath} && ${CARGO_ENV} cargo ${CARGO_TOOLCHAIN} ${CARGO_ARGS} build --${PROFILE} ${FEATURES}
&& cp ${relroot}/${build-dir}/bin/${builder}/${app}/cargo/${RUSTC_TARGET}/${PROFILE}/${riot_binary} ${relroot}/${out}
- name: GIT_DOWNLOAD
cmd: "D=$$(dirname ${out}); rm -rf $$D && git clone ${url} $$D -n && git -C $$D reset --hard ${commit} && touch ${out}"
tasks:
exec:
build: false
cmd:
- ${CARGO_ENV}
cargo:
cmd:
- cd ${relpath} && ${CARGO_ENV} cargo ${CARGO_TOOLCHAIN} ${CARGO_ARGS}
build: false
run:
build: false
cmd:
- cd ${appdir} && ${CARGO_ENV} cargo ${CARGO_TOOLCHAIN} ${CARGO_ARGS} run --${PROFILE} ${FEATURES}
cargo-test:
cmd:
- cd ${relpath} && ${CARGO_ENV} cargo test --${PROFILE} --features=riot-rs-boards/${builder},riot-rs-rt/debug-console --manifest-path ${app}/Cargo.toml
build: false
debug:
cmd:
- cd ${appdir} && ${CARGO_ENV} cargo ${CARGO_TOOLCHAIN} ${CARGO_ARGS} run --${PROFILE} ${FEATURES}
build: false
ignore_ctrl_c: true
gdb:
cmd:
- arm-none-eabi-gdb -ex "target extended-remote localhost:1337" ${out}
build: false
ignore_ctrl_c: true
bloat:
cmd:
- cd ${appdir} && ${CARGO_ENV} cargo ${CARGO_TOOLCHAIN} ${CARGO_ARGS} bloat --${PROFILE} ${FEATURES}
build: false
tree:
cmd:
- cd ${appdir} && ${CARGO_ENV} cargo ${CARGO_TOOLCHAIN} ${CARGO_ARGS} tree ${FEATURES}
build: false
flash:
cmd:
- >-
_flash () { openocd
${OPENOCD_ADAPTER_INIT}
${OPENOCD_ARGS}
-c 'init'
-c 'targets'
-c 'reset halt'
-c "flash write_image erase \"${1}\" 0 elf"
-c "verify_image \"${1}\" 0 elf"
-c 'reset run'
-c 'shutdown' ; } ;
_flash ${out}
flash-riotboot:
required_vars:
- FLASH_OFFSET
cmd:
- riotboot-genhdr generate ${out} $$(date +%s) $(${FLASH_OFFSET} + ${FLASH_SLOT_OFFSET}) ${FLASH_SLOT_OFFSET} - > ${out}.hdr.bin
- ${OBJCOPY} -Obinary ${out} ${out}.bin
- cat ${out}.hdr.bin ${out}.bin > ${out}.riotboot.bin
- _flash () { openocd
${OPENOCD_ARGS}
-c 'init'
-c 'targets'
-c 'reset halt'
-c "flash write_image erase \"${1}.riotboot.bin\" ${FLASH_OFFSET} bin"
-c "verify_image \"${1}.riotboot.bin\" ${FLASH_OFFSET} bin"
-c 'reset run'
-c 'shutdown' ; } ;
_flash ${out}
reset:
build: false
cmd:
- >-
openocd
${OPENOCD_ARGS}
-c 'init'
-c 'targets'
-c 'reset'
-c 'shutdown'
size:
cmd:
- llvm-size ${out}
objdump:
cmd:
- rust-objdump -S ${out}
- name: nrf
help: Nordic MCU support (based on embassy-nrf)
parent: riot-rs
selects:
- ?probe-rs
env:
RUSTFLAGS:
- --cfg context=\"nrf\"
tasks:
flash-erase-all:
help: Erases the whole chip including user data. Unlocks it if locked.
build: false
required_vars:
- PROBE_RS_CHIP
cmd:
- probe-rs erase --chip ${PROBE_RS_CHIP} --allow-erase-all
flash-rs:
help: Flashes the target using probe-rs
required_vars:
- PROBE_RS_CHIP
cmd:
- probe-rs download ${out} --chip ${PROBE_RS_CHIP}
- probe-rs reset --chip ${PROBE_RS_CHIP}
debug-rs:
help: Starts a probe-rs gdb server
required_vars:
- PROBE_RS_CHIP
cmd:
- probe-rs gdb --chip ${PROBE_RS_CHIP}
- name: nrf51
parent: nrf
selects:
- thumbv6m-none-eabi
- name: microbit-base
# this is a context, not a builder, to be used as parent by "microbit" and
# "microbit-qemu"
parent: nrf51
selects:
- "microbit disabled due to missing nrf51 support in embassy"
env:
# override "${builder}"
BOARD: microbit
OPENOCD_ARGS:
- "-f board/nordic_nrf52_dk.cfg"
- name: nrf52
parent: nrf
selects:
- thumbv7em-none-eabi # actually eabihf, but riot-rs doesn't support hard float yet
env:
CARGO_RUNNER:
- ${SCRIPTS}/debug-openocd.sh
OPENOCD_ARGS:
- "-f board/nordic_nrf52_dk.cfg"
PROBE_RS_CHIP: nrf52832_xxAA
RUSTFLAGS:
- --cfg context=\"nrf52\"
- name: nrf5340
parent: nrf
selects:
- thumbv8m.main-none-eabi # actually eabihf, but riot-rs doesn't support hard float yet
env:
PROBE_RS_CHIP: nrf5340_xxAA
RUSTFLAGS:
- --cfg context=\"nrf5340\"
- name: nrf52832
parent: nrf52
env:
RUSTFLAGS:
- --cfg context=\"nrf52832\"
- name: nrf52833
parent: nrf52
env:
RUSTFLAGS:
- --cfg context=\"nrf52833\"
PROBE_RS_CHIP: nrf52833_xxAA
- name: nrf52840
parent: nrf52
env:
RUSTFLAGS:
- --cfg context=\"nrf52840\"
PROBE_RS_CHIP: nrf52840_xxAA
- name: rp
help: Raspberry Pi pico MCU support (based on embassy-rp)
parent: riot-rs
selects:
- rp-link-arg
- thumbv6m-none-eabi
env:
RUSTFLAGS:
- --cfg context=\"rp\"
- name: rp2040
parent: rp
selects:
- ?probe-rs
env:
RUSTFLAGS:
- --cfg context=\"rp2040\"
PROBE_RS_CHIP: RP2040
CARGO_RUNNER:
- ${SCRIPTS}/debug-openocd.sh
OPENOCD_ARGS:
- "-f interface/cmsis-dap.cfg -f target/rp2040.cfg"
tasks:
debug-rs:
cmd:
- probe-rs debug --chip ${PROBE_RS_CHIP} --exe ${out}
- name: esp
parent: riot-rs
selects:
- ?debug-console
env:
RUSTFLAGS:
- --cfg context=\"esp\"
# linkall first
- -Clink-arg=-Tlinkall.x
# this might be needed for backtraces
# - -C force-frame-pointers
CARGO_ARGS:
- -Zbuild-std=core,alloc
CARGO_RUNNER: '"espflash flash --monitor ${ESPFLASH_LOG_FORMAT}"'
- name: esp32c3
parent: esp
selects:
- riscv
env:
RUSTFLAGS:
- --cfg context=\"esp32c3\"
RUSTC_TARGET: riscv32imc-unknown-none-elf
CARGO_TARGET_PREFIX: CARGO_TARGET_RISCV32IMC_UNKNOWN_NONE_ELF
- name: esp32c6
parent: esp
selects:
- riscv
env:
RUSTFLAGS:
- --cfg context=\"esp32c6\"
RUSTC_TARGET: riscv32imac-unknown-none-elf
CARGO_TARGET_PREFIX: CARGO_TARGET_RISCV32IMAC_UNKNOWN_NONE_ELF
- name: esp32s3
parent: esp
selects:
- xtensa
env:
CARGO_TOOLCHAIN: +esp
RUSTFLAGS:
- --cfg context=\"esp32s3\"
RUSTC_TARGET: xtensa-esp32s3-none-elf
CARGO_TARGET_PREFIX: CARGO_TARGET_XTENSA_ESP32S3_NONE_ELF
- name: stm32
help: STM32 support (based on embassy-stm32)
parent: riot-rs
selects:
- ?probe-rs
env:
OPENOCD_ARGS: foo
RUSTFLAGS:
- --cfg context=\"stm32\"
- name: stm32f401retx
parent: stm32
selects:
- thumbv7em-none-eabi # actually eabihf, but riot-rs doesn't support hard float yet
env:
PROBE_RS_CHIP: STM32F401RETx
PROBE_RS_PROTOCOL: swd
RUSTFLAGS:
- --cfg context=\"stm32f401retx\"
CARGO_ENV:
# This ISR is unused on a naked board. Configured here for testing.
- CONFIG_SWI=USART2
- name: stm32wb55rgvx
parent: stm32
selects:
- thumbv7em-none-eabi # actually eabihf, but riot-rs doesn't support hard float yet
env:
PROBE_RS_CHIP: STM32WB55RGVx
PROBE_RS_PROTOCOL: swd
RUSTFLAGS:
- --cfg context=\"stm32wb55rgvx\"
CARGO_ENV:
# This ISR is unused on a naked board. Configured here for testing.
- CONFIG_SWI=LPUART1
- name: stm32h755zitx
parent: stm32
selects:
- thumbv7em-none-eabi # actually eabihf, but riot-rs doesn't support hard float yet
env:
PROBE_RS_CHIP: STM32H755ZITx
PROBE_RS_PROTOCOL: swd
RUSTFLAGS:
- --cfg context=\"stm32h755zitx\"
- --cfg capability=\"hw/stm32-dual-core\"
CARGO_ENV:
# This ISR is unused on a naked board. Configured here for testing.
- CONFIG_SWI=UART5
modules:
- name: cortex-m
env:
global:
OBJCOPY: arm-none-eabi-objcopy
RUSTFLAGS:
- -Clink-arg=--nmagic
- -Clink-arg=${LINK_ARG_PREFIX}--no-eh-frame-hdr
- -Clink-arg=-Tlinkme.x
- -Clink-arg=-Tlink.x
- -Clink-arg=-Tdevice.x
- -Clink-arg=-Tisr_stack.x
- --cfg context=\"cortex-m\"
- name: thumbv6m-none-eabi
depends:
- cortex-m
env:
global:
RUSTC_TARGET: thumbv6m-none-eabi
CARGO_TARGET_PREFIX: CARGO_TARGET_THUMBV6M_NONE_EABI
RUSTFLAGS:
- --cfg armv6m
- name: thumbv7em-none-eabi
depends:
- cortex-m
env:
global:
RUSTC_TARGET: thumbv7em-none-eabi
CARGO_TARGET_PREFIX: CARGO_TARGET_THUMBV7EM_NONE_EABI
RUSTFLAGS:
- --cfg armv7m
- name: thumbv7m-none-eabi
depends:
- cortex-m
env:
global:
RUSTC_TARGET: thumbv7m-none-eabi
CARGO_TARGET_PREFIX: CARGO_TARGET_THUMBV7M_NONE_EABI
RUSTFLAGS:
- --cfg armv7m
- name: thumbv8m.main-none-eabi
depends:
- cortex-m
env:
global:
RUSTC_TARGET: thumbv8m.main-none-eabi
CARGO_TARGET_PREFIX: CARGO_TARGET_THUMBV8M_MAIN_NONE_EABI
RUSTFLAGS:
- --cfg armv8m
- name: thumbv7em-none-eabihf
depends:
- cortex-m
env:
global:
RUSTC_TARGET: thumbv7em-none-eabihf
CARGO_ENV_TARGET: CARGO_TARGET_THUMBV7EM_NONE_EABIHF
RUSTFLAGS:
- --cfg armv7m
- name: xtensa
env:
global:
RUSTFLAGS:
- --cfg context=\"xtensa\"
- name: riscv
env:
global:
RUSTFLAGS:
- --cfg context=\"riscv\"
- name: rp-link-arg
help: helper module that ensures link-rp.x is added behind cortex-m ld scripts
env:
global:
RUSTFLAGS:
- "-Clink-arg=-Tlink-rp.x"
- name: release
selects:
- ?lto
- name: debug-console
context: riot-rs
env:
global:
FEATURES:
- riot-rs/debug-console
- name: defmt
help: Enable use of defmt
context: riot-rs
env:
global:
FEATURES:
- riot-rs/defmt
RUSTFLAGS:
- -Clink-arg=-Tdefmt.x
ESPFLASH_LOG_FORMAT: '--log-format defmt'
CARGO_ENV:
# For some reason, `sccache` makes the build not realize changes to
# `DEFMT_LOG`. Painful as it is, hard-disable `sccache` here.
- RUSTC_WRAPPER=""
- DEFMT_LOG=info,${LOG}
- name: silent-panic
context: riot-rs
env:
global:
FEATURES:
- riot-rs/silent-panic
- name: lto
context: riot-rs
env:
global:
RUSTFLAGS:
- -Cembed-bitcode=yes
- -Clto=fat
- -Ccodegen-units=1
- name: inline225
context: riot-rs
env:
global:
RUSTFLAGS:
- -Cllvm-args=-inline-threshold -Cllvm-args=225
- name: build_std
context: riot-rs
env:
global:
CARGO_ARGS:
- -Zbuild-std
- name: no_overflow_checks
context: riot-rs
env:
global:
RUSTFLAGS:
- -Coverflow-checks=off
- name: opt_speed
context: riot-rs
env:
global:
RUSTFLAGS:
- -Copt-level=3
# note: this overrides CFLAGS_OPT in riot-rs context
CFLAGS_OPT: -O3
- name: opt_size
context: riot-rs
env:
global:
RUSTFLAGS:
- -Copt-level=z
# note: this overrides CFLAGS_OPT in riot-rs context
CFLAGS_OPT: -Oz
- name: thread_info
# enable thread names & stack info
context: riot-rs
env:
global:
FEATURES:
- riot-rs/thread_info
- name: cross-language-lto
# use clang/lld to link, enables cross-language LTO.
# This requires rustc's llvm and clang's llvm version to match.
context: riot-rs
depends:
- lto
env:
global:
RUSTFLAGS:
- "-Clinker-plugin-lto"
- "-Clinker=clang"
- "-Clink-arg=-fuse-ld=lld"
- "-Clink-arg=--target=${RUSTC_TARGET}"
- "-Clink-arg=-v"
LINK_ARG_PREFIX: -Wl,
- name: riotboot
context: nrf52840
env:
global:
FLASH_OFFSET: "0x2000"
FLASH_SLOT_OFFSET: "0x400"
CARGO_ENV:
- NRF52840_FLASH_OFFSET=${FLASH_OFFSET}
- NRF52840_FLASH_SLOT_OFFSET=${FLASH_SLOT_OFFSET}
- NRF52840_FLASH_SLOT=0
- name: probe-rs
help: use probe-rs as runner
selects:
- ?debug-console
env:
global:
CARGO_RUNNER: "'probe-rs run ${PROBE_RS_PROTOCOL} --chip ${PROBE_RS_CHIP}'"
- name: probe-rs-run
help: "deprecated alias for `probe-rs`"
selects:
- probe-rs
- name: network
selects:
- network_device
- name: sw/storage
context:
- rp2040
- nrf52840
- nrf5340
env:
global:
FEATURES:
- riot-rs/storage
RUSTFLAGS:
- -Clink-arg=-Tstorage.x
- name: sw/threading
conflicts:
- executor-single-thread
selects:
- ?multi-core
env:
global:
FEATURES:
- riot-rs/threading
- name: wifi-cyw43
context:
- rpi-pico-w
provides_unique:
- network_device
env:
global:
FEATURES:
- riot-rs/wifi-cyw43
- name: usb-ethernet
provides_unique:
- network_device
selects:
- hw/usb-device-port
env:
global:
FEATURES:
- riot-rs/usb-ethernet
- name: hw/usb-device-port
help: provided if a device has a USB device port wired up
context:
- nrf5340dk
- nrf52840dk
- rpi-pico
- rpi-pico-w
- particle-xenon
- st-nucleo-h755zi-q
- st-nucleo-wb55
env:
global:
RUSTFLAGS:
- --cfg capability=\"hw/usb-device-port\"
- name: hwrng
help: The board's peripherals are suitable for passing into riot_rs_random::construct_rng.
context:
# these are precisely those for which the hwrng feature of
# riot-rs-embassy builds, which would fail if the big if(context=...)
# doesn't have an entry in the cfg(feature = "hwrng") part of init_task
- nrf51
- nrf52
- rp
- stm32h755zitx
- stm32wb55rgvx
env:
global:
FEATURES:
- riot-rs/hwrng
- name: random
help: A system-wide RNG is available (through the riot_rs::random module).
As the riot_rs::random module will refuse operation at run time if not
properly initialized, this depends on sources of original entropy.
depends:
# could later alternatively depend on mutable config storage
- hwrng
env:
global:
FEATURES:
- riot-rs/random
- name: sw/benchmark
help: provided if a target supports `benchmark()`
# Currently there's only one implementation based on Systick, so Cortex-M only.
context:
- nrf
- rp
- stm32
- esp
- name: wifi-esp
context:
- esp
provides_unique:
- network_device
env:
global:
RUSTFLAGS:
- -Clink-arg=-Trom_functions.x
FEATURES:
- riot-rs/wifi-esp
- name: executor-thread
help: use embassy executor within riot-rs-threads thread
provides_unique:
- executor
env:
global:
FEATURES:
- riot-rs/executor-thread
- name: executor-single-thread
help: use Embassy executor within single "thread mode" thread
context:
- esp
provides_unique:
- executor
env:
global:
FEATURES:
- riot-rs/executor-single-thread
# Enabled for architectures that provide a dedicated software interrupt (SWI),
# and thus do not require to sacrifice another, arbitrarily-chosen peripheral
# interrupt.
- name: executor-interrupt
help: use the Embassy interrupt executor
context:
- nrf
- rp
provides_unique:
- executor
env:
global:
FEATURES:
- riot-rs/executor-interrupt
- name: executor-default
help: executor preference
selects:
# This is order dependent.
# Unless otherwise selected (by application, context, on cli, or by other
# dependencies), the interrupt executor is preferred.
- ?executor-interrupt
- ?executor-single-thread
- ?executor-thread
- name: single-core
help: usage platform as single-core system
provides_unique:
- critical-section
env:
global:
FEATURES:
- riot-rs/single-core
- name: multi-core
help: usage platform as multi-core system
context:
- rp
- esp32s3
provides_unique:
- critical-section
env:
global:
FEATURES:
- riot-rs/multi-core
builders:
# host builder (for housekeeping tasks)
- name: host
rules:
# currently, laze requires a LINK rule for every context/builder
# that gets an application configured.
# so, provide a dummy one for `host`
- name: LINK
description: "HOST LINK (no-op)"
cmd: "true"
tasks:
install-toolchain:
build: false
cmd:
- rustup target add thumbv6m-none-eabi
- rustup target add thumbv7m-none-eabi
- rustup target add thumbv7em-none-eabi
- rustup target add thumbv7em-none-eabihf
- rustup target add thumbv8m.main-none-eabi
- rustup target add riscv32imc-unknown-none-elf
- rustup target add riscv32imac-unknown-none-elf
- rustup component add rust-src
install-c2rust:
build: false
cmd:
- echo "Installing c2rust..."
- 'echo "WARNING: This uses *a lot* of memory!"'
- cargo install c2rust
- name: nrf52dk
parent: nrf52832
- name: nrf52840dk
parent: nrf52840
- name: dwm1001
parent: nrf52832
- name: nrf52840-mdk
parent: nrf52840
env:
OPENOCD_ADAPTER_INIT:
- " -c 'source [find interface/cmsis-dap.cfg]'"
- name: microbit
parent: microbit-base
env:
CARGO_RUNNER:
- ${relroot}/${SCRIPTS}/debug-openocd.sh
OPENOCD_ARGS:
- "-f board/nordic_nrf52_dk.cfg"
- name: microbit-qemu
parent: microbit-base
env:
CARGO_RUNNER:
- '"qemu-system-arm -machine microbit -nographic -semihosting-config enable=on,target=native -s -S -kernel"'
QEMU_MACHINE: microbit
tasks:
qemu:
build: true
cmd:
- ${QEMU_SYSTEM_ARM} ${out}
disables:
- periph_rtt
- name: microbit-v2
parent: nrf52833
- name: particle-xenon
parent: nrf52840
- name: rpi-pico
parent: rp2040
env:
BOARD: rpi-pico
- name: rpi-pico-w
parent: rpi-pico
env:
BOARD: rpi-pico-w
- name: ai-c3
parent: esp32c3
- name: espressif-esp32-c6-devkitc-1
parent: esp32c6
- name: espressif-esp32-s3-wroom-1
parent: esp32s3
- name: nrf5340dk
parent: nrf5340
- name: st-nucleo-f401re
parent: stm32f401retx
- name: st-nucleo-h755zi-q
parent: stm32h755zitx
- name: st-nucleo-wb55
parent: stm32wb55rgvx
apps:
# define a dummy host application so the host tasks work
- name: host
context: host
subdirs:
- examples
- src
- tests