/
Justfile
30 lines (22 loc) · 847 Bytes
/
Justfile
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
set windows-shell := ["powershell.exe", "-c"]
[private]
default:
@just --list --unsorted
build-library:
@cargo build --release
list-examples:
@python3 ./scripts/list-examples.py
build-example example:
@cargo build --release --example {{example}}
@#@arm-none-eabi-objdump target/armv7a-none-eabi/release/examples/{{example}} -S > temporary/disassembly/{{example}}.S
@#@arm-none-eabi-readelf target/armv7a-none-eabi/release/examples/{{example}} -h
debug example: (build-example example)
@arm-none-eabi-gdb -x scripts/run.gdb target/armv7a-none-eabi/release/examples/{{example}}
run-on-board:
@xsct -interactive scripts/run_on_board.tcl
build-all-examples:
@just build-example hello
@just build-example gpio
@just build-example uart_interaction
doc open="--open":
@cargo doc --release {{open}}