mirror of
https://github.com/solokeys/solo2.git
synced 2026-06-20 13:16:13 -07:00
53 lines
1.1 KiB
Makefile
53 lines
1.1 KiB
Makefile
RUNNER := runners/lpc55
|
|
NRF_RUNNER := runners/nrf52840dk
|
|
|
|
# Repo root mount for pc-docker (uncle/sibling crates are workspace-patched
|
|
# in via `../<crate>` paths; mount the parent to make them visible).
|
|
SOLO_DIR := $(abspath ..)
|
|
|
|
.PHONY: \
|
|
build-dev \
|
|
build-nrf \
|
|
bacon \
|
|
run-dev \
|
|
jlink \
|
|
mount-fs \
|
|
umount-fs \
|
|
check \
|
|
check-fmt \
|
|
check-clippy
|
|
|
|
build-dev:
|
|
make -C $(RUNNER) build-dev
|
|
|
|
build-nrf:
|
|
make -C $(NRF_RUNNER) build
|
|
|
|
bacon:
|
|
make -C $(RUNNER) bacon
|
|
|
|
run-dev:
|
|
make -C $(RUNNER) run-dev
|
|
|
|
jlink:
|
|
scripts/bump-jlink
|
|
JLinkGDBServer -strict -device LPC55S69 -if SWD -vd
|
|
|
|
mount-fs:
|
|
scripts/fuse-bee
|
|
|
|
umount-fs:
|
|
scripts/defuse-bee
|
|
|
|
check: check-fmt check-clippy
|
|
|
|
check-fmt:
|
|
cargo fmt --all --check
|
|
|
|
check-clippy:
|
|
cargo clippy --all-targets -- -D warnings
|
|
cd runners/lpc55 && cargo clippy --release --features board-lpcxpresso55 -- -D warnings
|
|
cd runners/lpc55 && cargo clippy --release --features board-solo2 -- -D warnings
|
|
cd runners/lpc55 && cargo clippy --release --features board-lpcxpresso55,provisioner-app,admin-app,provisioner-app/test-attestation -- -D warnings
|
|
|