This repository has been archived on 2026-08-31. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
donglora/Justfile
T
swaits 0e9315280b refactor: drop Heltec V3, enforce standard toolchain, remove dead code
Heltec V3 (ESP32-S3) requires the espup Xtensa toolchain fork, which
violates the standard-toolchain-only principle. Removed until upstream
Rust supports Xtensa targets via stock rustup.

Also removes all #[allow(dead_code)] band-aids — unused items are
deleted rather than suppressed. DESIGN.md updated with standard
toolchain principle (#10) and peripheral model (input/telemetry slots).
2026-03-26 15:29:58 -06:00

33 lines
1.0 KiB
Makefile

set shell := ["bash", "-c"]
rak_4631 := "rak_4631 thumbv7em-none-eabihf nRF52840_xxAA"
# Check all boards compile cleanly
check-all:
just check rak_4631
# Check a single board compiles
check board:
@read -r feat target chip <<< "$(just _info {{board}})"; \
cargo check --target $target --features $feat
# Run clippy on a single board
clippy board:
@read -r feat target chip <<< "$(just _info {{board}})"; \
cargo clippy --target $target --features $feat -- -D warnings
# Build and flash a board via probe-rs
flash board:
@read -r feat target chip <<< "$(just _info {{board}})"; \
cargo build --release --target $target --features $feat; \
probe-rs run --chip $chip --target $target --features $feat
# Show binary size for a release build
size board:
@read -r feat target chip <<< "$(just _info {{board}})"; \
cargo size --release --target $target --features $feat
[private]
_info name:
@if [ "{{name}}" == "rak_4631" ]; then echo "{{rak_4631}}"; \
else echo "Unknown board: {{name}}" >&2; exit 1; fi