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).
33 lines
1.0 KiB
Makefile
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
|